Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Mod: Ignore Post v1.10
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

masterao
Senior Member

Sweden
1678 Posts

Posted - 06 November 2003 :  08:44:16  Show Profile  Visit masterao's Homepage
I noticed this feature on a vBulletin forum, and I thought would be handy to have on my Snitz forum.

In short, this mod allows members to ignore posts made by other members. They cannot ignore moderators, administrators, or themselves.

For the latest updates, check the end of this post

The mod is controlled from the Admin Options (Feature Configuration - Topic Features), so the admin can turn it on / off as needed. If turned off, all ignored posts will appear as normal.

This mod works on access, mysql, and mssql.

An ignored post


Where a member adds someone to her ignorelist


Download: http://www.snitzbitz.com/mods/details.asp?Version=All&mid=156

The zip contains a readme-file which contains all necessary code-changes. There are also demo files included for the altered files (which should not be used for anything else but reference).

If you need help installing this mod, please post in the Help: MOD Implementation forum.

If you find any bugs in the mod, please post them here.

Updates
Security fix: Added check for private forums to pop_viewpost.asp

Latest Updates (11/9/2003)
bug-fix added to topic.asp (multi-pages).
bug-fix added to pop_ignorelist.asp for mysql (just upload over the old one)
New "feature": Added auto-refresh to pop_ignorelist.asp when un-ignoring a user.

More info in readme.html about possible conflicts with other mods and about which databases this mod will work on, eventually .

ZIP-file at http://www.snitzbitz.com has been updated with all changes/additions above.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod

Edited by - masterao on 10 November 2003 08:59:12

dayve
Forum Moderator

USA
5820 Posts

Posted - 06 November 2003 :  10:16:14  Show Profile  Visit dayve's Homepage
what happens when someone that is not ignoring a user, uses the quote feature. does this display the text to a person that was ignoring the person that was quoted? (hope that did not sound too confusing)

Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 06 November 2003 :  11:38:55  Show Profile  Visit masterao's Homepage
Nope, it didn't .

If an un-ignored member quotes text from an ignored user will show up. I didn't think about that when I made the mod. The mod only searches for posts made by the ignored member, not the text written by them. Im not sure if it would be possible to make it parse out text written by ignored members without making it too resource-intensive. Or is it?

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 07 November 2003 :  02:13:18  Show Profile  Send Astralis a Yahoo! Message
Masterao,

This mod seems awesome! Just what I need!

Before I install, how much have you tested it?
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 07 November 2003 :  08:53:37  Show Profile  Visit masterao's Homepage
Thanks, Astralis.

I have tested it on users who have posted a topic (first post) and replies, in open and allowed members (hidden) forums. Topics tested have consisted of one post (topic) only, and of several posts from various users (ignored and un-ignored).

I have only tested this on access, as Im not able to test it on mysql or mssql at the moment.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 07 November 2003 :  09:52:23  Show Profile
Masterao, see your EMail.
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 07 November 2003 :  11:17:22  Show Profile  Visit Ryan's Homepage
Very nice. Thanks for the MOD.

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 07 November 2003 :  19:57:25  Show Profile  Visit masterao's Homepage
You're welcome, Ryan.

Carefree, I've answered your email.

Carefree came with the idea of putting a link for adding users to the ignore list (next to the profile icon and email).
I considered this when I made the mod, but I choose to not use that approach as that made it too simple for a member to ignore others, IMO. Ignoring others should be a last resort, not something as simple as emailing / PM:ing a member. Or should a member be able to add another member directly from topic.asp?

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 07 November 2003 :  22:31:57  Show Profile  Send Astralis a Yahoo! Message
How does one remove a member from the ignore list?

Edited by - Astralis on 07 November 2003 22:39:38
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 07 November 2003 :  22:41:50  Show Profile  Send Astralis a Yahoo! Message
For some reason, once I add someone onto my ignore list, I can still see all their posts. I'm logged in as a normal user.

What did I do wrong?
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 08 November 2003 :  08:41:52  Show Profile  Visit masterao's Homepage
Astralis, when you have added a member to the Ignore list, you should see two links instead of the actual post by that member. The second link is Un-Ignore User.

Make sure that you added the code in the right place in topic.asp, making sure to separate the topic-part from the replies part.

This sounds more like an implementation problem, and if you don't find the errant code, post a link to a text-version of your topic.asp in the Help: MOD Implementation forum, and I'll help you there instead.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 08 November 2003 :  10:35:54  Show Profile  Visit Webbo's Homepage
Hi masterao,


Good MOD idea

I have tested it on a MySql database and everything works well until you try to [Un-ignore] a member when this error throws up:

quote:
Microsoft OLE DB Provider for ODBC Drivers error '80040e09'

[TCX][MyODBC]You have an error in your SQL syntax near 'I where I.I_MEMBERID = 2 AND I.I_IGNOREID = 4' at line 1

/classifieds/pop_ignorelist.asp, line 148



Lines 145-148 in that file read:

quote:
if boolIgnore = True then '# Member exists on the ignorelist, so we delete it.
strSql = "DELETE FROM " & strTablePrefix & "IGNORE_POSTS I where I.I_MEMBERID = " & memberID & _
" AND I.I_IGNOREID = " & intIgnoreID
my_conn.Execute strSql


Any ideas anyone?

Dave

Edited by - Webbo on 08 November 2003 10:36:14
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 08 November 2003 :  16:33:43  Show Profile  Visit masterao's Homepage
Thanks, Dave.

I'll take a look on this, in case no one can directly say where the problem lies.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 08 November 2003 :  17:51:18  Show Profile  Visit richfed's Homepage
Several problems for me on an MS-SQL database, Jan -

It seems ok, until you click on either of the links in an ignored member's blanked out post.

Clicking on "View Post" resulted in:

Microsoft VBScript runtime error '800a01c2'

Wrong number of arguments or invalid property assignment: 'getStar_Level'

/messageboard/pop_viewpost.asp, line 209


Clicking on "Unignore User" resulted in:

Microsoft OLE DB Provider for SQL Server error '80040e14'

Line 1: Incorrect syntax near 'I'.

/messageboard/pop_ignorelist.asp, line 148


Then, I noticed it doesn't work on multiple page topics - past the first page, anyway.

Will have to uninstall this one for the time being.

Edit ----> Forgot I could shut it off in Admin Options, so I didn't need to uninstall. Shutting it off made all ok. If you get to a MS-SQL db & can figure this out, I'll try 'er again! I'll be happy to try out any changes you propose for you.




Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]

Edited by - richfed on 08 November 2003 18:13:41
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 08 November 2003 :  17:59:01  Show Profile
Does MySQL support when you abbreviate the table names within the SQL ?

Webbo, you could try this while masterao is checking other stuff (lines 145-148) :


if boolIgnore = True then '# Member exists on the ignorelist, so we delete it.
strSql = "DELETE FROM " & strTablePrefix & "IGNORE_POSTS where I_MEMBERID = " & memberID & _
" AND I_IGNOREID = " & intIgnoreID
my_conn.Execute strSql



It's just a wild guess by me looking at the error, but I've never used MySQL.
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 08 November 2003 :  18:42:46  Show Profile  Send Astralis a Yahoo! Message
Hi Masterao,

It actually works now and I never modified the code. It seems that after I logged out and logged back in it took effect. Before I logged out refreshing didn't never changed anything. Who knows if that's what it is. But, anyhow, it works and I think this is one of the best mods to come around in a while. Once you get it ready for the SQL DB versions, this should be standard for the next version. Great job!
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07