Version: 1.00, by zetetic
Developer Last Online: May 2015
Version: 3.0.1
Rating:
Released: 09-08-2004
Last Update: Never
Installs: 5
Is in Beta Stage
No support by the author.
This hack adds an "Ignore Thread" option to the thread tools menu and generates a list of threads you have ignored in your UserCP. This code was part of a larger customization job we paid to have written for us, and I did the best I could to cull out this single component for release here.
Yes, I did make sure the author was cool with me releasing the code before we paid for it, and he said we could do whatever we want with it. I'd give him credit here but I'm not sure he wants anyone to know lest they bug him for support.
IMPORTANT: I am new to php and did not write this hack, so don't expect much help if you have problems.
The hack consists of:
1 db modification
3 new phrases
3 new templates
3 templates to edit
7 files to edit
I particularly hope that you expert coders will have a look and make sure I didn't leave anything out or keep anything superfluous in, and/or suggest any possible ways to improve it or make it work with newer vB versions. I have tested it with a clean 3.0.1 install and had no issues.
Good luck!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Don't suppose there's any such thing as an "ignore forum" option? We have a chit-chat forum and some of our users *hate* it, when they hit New Posts they can see a dozen OT posts. This hack would be useful if there was only the occasional one but I don't think it'll be enough
That's a good idea, Casparian. The logic is simple enough: Provide users with a way to select which forums they want to ignore, modify search.php to ignore those forums when returning "new posts", etc.
Unfortunately I'm not knowledgeable enough about hacking (yet) to say exactly how to do it. Maybe you should start a new thread in the modification requests forum.
I have it up and running on 3.0.7 seems really good so far. I did get an error trying to save the forumhome_lastpostby template, but I ignored it, yikes, but i see no errors anywhere on my site. Does anyone know if there is something wrong with the below template code? Thanks!
Quote:
forumhome_lastpostby:
At the very top, add:
--------------------------------------------------------
<if condition="in_array($lastpostinfo[lastthreadid], $ignoredthreads)">
Ignored Thread
Don't suppose there's any such thing as an "ignore forum" option? We have a chit-chat forum and some of our users *hate* it, when they hit New Posts they can see a dozen OT posts. This hack would be useful if there was only the occasional one but I don't think it'll be enough
I am also looking for an "ignore forum" (that would exclude the forum posts from the new posts navbar) and an "ignore user" that does not display any posts by the user, both defined by my members in their user cp and not a system wide setting.
I have it up and running on 3.0.7 seems really good so far. I did get an error trying to save the forumhome_lastpostby template, but I ignored it, yikes, but i see no errors anywhere on my site. Does anyone know if there is something wrong with the below template code? Thanks!
I haven't upgraded my forum to 3.5 yet :blush: but I'll be doing it within the next month or so. If someone hasn't beaten me to the punch I'll take a stab at porting this.