View Full Version : Miscellaneous Hacks - Thread & Forum Ignore System
nerbert
10-19-2011, 10:00 PM
New Version 2.0
I've completely overhauled this product. The earlier version cheated by marking ignored threads and forums as read before executing the get new query, so it worked only for New Posts set to get new. The way the new version works is still not elegant owing to lack of hook locations available but it gets the job done for New Posts, Today's Posts and in the Forum Home Page and Forum Display.
Other New Features:
Users can set where the Ignore System is enabled in their User Settings. It can be enabled for New Posts, Today's posts and Forum Home & Forum Display.
Ignored threads used to be listed in the User Settings by threadid, or the order in which the threads were first posted. All new additions to the ignore lists will show at the end of the list.
No template edits in this version. If you have already edited SHOWTHREAD and FORUMDISPLAY you can just leave the changes in place, JavaScript will set them to display:none.
When I developed the older version I had the database fields set with a character limit that limited how many threads could be ignored. In this version the number is unlimited.
This version has its own setting group and doesn't require any restrictions on Thread/Forum Read Marking Type.
Using the Ignore System
You can set a thread to ignored in the Thread Tools menu and unignore it there later if you can navigate back to it. Similarly you can ignore forums in Forum Tools menu. Thread and forum ignore lists can be edited in UserSettings.
Installation:
Upload the product XML file in Product Manager. If you have the old version, set to overwrite existing files. No edits or files to upload.
Mellow
10-20-2011, 02:00 PM
Thanks!.. seems to be working great so far.
I have another forum-filter mod so I did not perform that template edit, just the thread ignore.
nerbert
10-20-2011, 11:38 PM
The only problem with that is the panel in user settings won't work to unignore forums.
Kyoshokid
10-22-2011, 11:37 AM
A small suggestion / request if i may.
I would like to see a feature where i could pick default forums that i would like to ignore for everyone.
Or a stream line mod where it just ignores the forum of my choosing for all my users on the site.
Basically i want to ignore one forum I've made on my site from showing up for my users, its there if they wish to access it but its on the ignore list so it doesn't spam there new posts etx.
Thanks in advance.
nerbert
10-23-2011, 01:02 AM
That would be a very difficult feature -- the adminCP setting would be $vbulletin->options['f_default'] but to work it would have to place the forumid string into $vbulletin->userinfo['f_ignore'], which would require an update query for all users every time you change it. In fact it would be difficult to write code that wouldn't do that every time you change any setting.
I doubt many people would get any use out of such a setting anyway.
sticky
11-07-2011, 08:21 AM
Have been waiting for something like this, thanks!
sticky
11-07-2011, 08:36 AM
Will I have to do these changes every time I upgrade?
nerbert
11-07-2011, 09:58 PM
Will I have to do these changes every time I upgrade?
No changes will be needed until vB5 as far as I can predict.
sticky
11-07-2011, 10:12 PM
No changes will be needed until vB5 as far as I can predict.
But I have to make these changes on every style?
nerbert
11-07-2011, 11:51 PM
You mean the template changes? You should have one default style that all other styles are children style of. If you change the templates in Default, all the child styles should inherit it unless their templates have been changed previously.
Gamelobby
12-06-2011, 03:29 AM
A small suggestion / request if i may.
I would like to see a feature where i could pick default forums that i would like to ignore for everyone.
Or a stream line mod where it just ignores the forum of my choosing for all my users on the site.
Basically i want to ignore one forum I've made on my site from showing up for my users, its there if they wish to access it but its on the ignore list so it doesn't spam there new posts etx.
Thanks in advance.
This would be great for the "vBCms Comments" section.!! :D
nerbert
12-06-2011, 05:11 AM
As far as I know you can add "&exclude=50" (or whatever the forumid is) to the end of the New Posts link in the navbar and it will ignore that forum in searches. That will work with or without T&FIS
englishtalk
01-16-2012, 03:55 PM
doesnt seem to work. I enabled the product, changed the template. I can see where it says "ignore thread" and I can select it. It just doesn't seem to do anything (I can still see the threads)
MoreLinux
02-19-2012, 09:34 PM
Works fine in VB4.1.10. Thanks Nerbert
kisanjong
03-12-2012, 11:20 AM
doesnt seem to work. I enabled the product, changed the template. I can see where it says "ignore thread" and I can select it. It just doesn't seem to do anything (I can still see the threads)
Same thing here using 4.1.11.
installed fine, can select / deselect the options but nothing is ignored and still showing?
EDIT: After looking into this with more detail, i noticed that the enable / disable mod in general setting does say..
"This allows users to ignore selected threads and forums in New Posts. Threads and forums can be set to ignore in their tools menus. Thread/Forum Read Marking Type must be set to Database (automatic forum marking) for this product to work."
Once i done this it worked.
My Mistake ;)
ekool
03-29-2012, 01:08 AM
Is there a limit of 28 forums max that can be ignored?
MattGarner
01-13-2013, 02:28 PM
Anyone confirm this is working in 4.2.0 Patch Level 3?
dennisuello
01-28-2013, 03:57 PM
Very cool, just what I've been looking for.
The only issue I have, is that it doesn't affect Recent Threads module on the vbAdvanced CMPS page. I will look into a solution for this, but if anyone else resolved this already, post up.
dennisuello
01-28-2013, 03:58 PM
Anyone confirm this is working in 4.2.0 Patch Level 3?
This is working for me.
furnival
02-03-2013, 09:30 PM
Working for me on VB 4.2 PL3 too. Does anyone know if this excludes posts from the "What's New?" activity stream too, please?
Expat
02-07-2013, 07:36 AM
Installed, and am getting the following error when users select threads from the forum:
Parse error: syntax error, unexpected '*', expecting T_VARIABLE or '$' in /home/expatko/public_html/bbs/includes/class_core.php(4627) : eval()'d code on line 299
Edit: I repaired the issue by restoring the default template
Phaedrus
02-13-2013, 03:43 AM
Do they see the ignored thread at all? Basically, if they ignore a thread will it show up in the forum as ignored like the post of somebody they ignored?
Can you make it so that it automatically ignores the threads started by somebody you've ignored?
attroll
03-13-2013, 04:01 PM
This is sort of what I have been looking for. If you could just get it to do a true Ignore Thread so it does not show up for the user at all then this would be an ideal addon. Otherwise is is really almost useless.
huskermax
05-20-2013, 04:38 PM
Can you set this up by user group? It sounds like it but not sure. Have a paid board so I would only want my paid user group to use this.
huskermax
06-11-2013, 02:44 PM
I have this installed and it is not working in Version 4.2.0
I see the link to ignore the thread or forum in thread tools but when I ignore something it still shows up on the board.
I even see the thread I selected in my settings menu.
kvv-dvk
10-05-2013, 10:36 AM
Installed, and am getting the following error when users select threads from the forum:
Parse error: syntax error, unexpected '*', expecting T_VARIABLE or '$' in /home/expatko/public_html/bbs/includes/class_core.php(4627) : eval()'d code on line 299
Edit: I repaired the issue by restoring the default template
Is this the only way? I get this message and also to restore the whole thing quite well again I is not waiting.
dougdirac
12-06-2013, 06:31 PM
Anyone know if this works on vB 4.2.2 using php 5.5?
Skedoozy
02-22-2014, 01:57 AM
How does this ignore the thread? It doesn't even hide it from the user? Pretty worthless without this feature. Sad. :/
Chippiewall
04-03-2014, 06:20 PM
Just like to point out there is a serious SQL injection vulnerability with this plugin. I'm currently reviewing the code to find a fix.
Edit: Code removed by Staff, code would hint at exploit vector although I noted the issue in the quarantine thread ;).
TheLastSuperman
06-24-2014, 04:36 PM
I'm assuming nerbert is just busy therefor I've made a change to the product thereby fixing the exploit noted by Chippiewall. Please download and install (select to overwrite) the new version attached. The file name remains product-thread_forum_ignore.xml however it is the new, patched file that is now available for download as of 1:35pm GMT-5 today.
stevieb
06-25-2014, 11:06 PM
Does it work on vb 4.2 (pl2)?
TheLastSuperman
06-26-2014, 02:50 AM
Does it work on vb 4.2 (pl2)?
I can only speculate that it will, I have not installed this mod I only decided to help out nerbert and patch the mod so all of you could download and use it.
You can try the edits but please note: Look at the top of this mod, see all the little flags (checks before them showing what this mods does to your site when installing) especially the one titled "DB Changes" that means it alters your database so when you see that on ANY mod unless you're well versed in vBulletin it's a safe bet to run a quick database backup before installing the actual product file ;).
tbworld
06-26-2014, 04:01 AM
How does this ignore the thread? It doesn't even hide it from the user?
As written by the author:
This product eliminates ignored threads in the New Posts listings only, they are still listed in Today's Posts and in their forums.
and yes, I do know I am answering an old post. I just thought this was needed in the thread. :)
MarkFL
07-06-2014, 03:29 PM
I am using vBulletin 4.2.1.
On my local server, I made the template edits, downloaded and imported the product file and it works flawlessly. I have recommended this to my fellow admins on our live site. :up:
furnival
07-06-2014, 10:18 PM
Is there a limit of 28 forums max that can be ignored?
It's true that this modification is designed in a way that could be problematic for anyone with a user who tries to ignore more than a few forums or threads. The DB field the modification references is limited to 100 characters and each forum or thread is a 4 digit string, separated by a comma, so I understand why eKool asked if there was a 28 forum ignore limit. I think this needs to be addressed in any new version.
Skedoozy
07-11-2014, 12:43 AM
As written by the author:
This product eliminates ignored threads in the New Posts listings only, they are still listed in Today's Posts and in their forums.
and yes, I do know I am answering an old post. I just thought this was needed in the thread. :)
Yeah, I realized that later. :/ I wanted it to hide in forum display, not in new posts. Oh well. Works as labeled though.
huskermax
09-19-2014, 05:55 PM
Yeah, I realized that later. :/ I wanted it to hide in forum display, not in new posts. Oh well. Works as labeled though.
If you could add hide from forum display this would be very helpful. Even set it up so each ignored thread will expire from the list in settings so that gives the ignored thread time to drop off the new listings and the main page of forum display. Allow admins to set that, so the list of ignored threads do not blow up the database.
vBStu
09-23-2014, 08:56 AM
I can only speculate that it will, I have not installed this mod I only decided to help out nerbert and patch the mod so all of you could download and use it.
You can try the edits but please note: Look at the top of this mod, see all the little flags (checks before them showing what this mods does to your site when installing) especially the one titled "DB Changes" that means it alters your database so when you see that on ANY mod unless you're well versed in vBulletin it's a safe bet to run a quick database backup before installing the actual product file ;).
The following error occurred when attempting to evaluate this template:
Invalid Tag Nesting
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
causes this error on a thread
Parse error: syntax error, unexpected '*', expecting T_VARIABLE or '$' in /home/sites/sc/forum.smartcanucks.ca/includes/class_core.php(4633) : eval()'d code on line 239
nerbert
01-17-2015, 08:59 PM
I've overhauled this product so it now works in New Posts, Today's Posts, Forum Display and Forum Home. Users can choose where it is active. See the opening Post for details
blah100
05-21-2015, 06:23 PM
Any chance of this causing the forums/threads that have been ignored to also not show up in a activity stream sideblock? I tried it with the sideblock here https://vborg.vbsupport.ru/showthread.php?t=283800 but the posts/threads/forum updates that were ignored still show for members.
nerbert
05-21-2015, 07:44 PM
As best I can recall I tried making it active in Activity Stream but couldn't begin to figure out how to do it; I don't think there were hook locations available to modify the search. Kinda hard to remember now. Sorry.
Mellow
07-30-2015, 10:14 AM
Nice thanks.. I noticed when you Mark Forums Read, it won't marks your ignored forums Read...
I also use Display Unread Posts mod (Thread & Forum Ignore Lists) and it reflects the number of unread posts (I know that's not an issue with this mod and something that I'll need to address on that thread) so that's how I see the Mark Forums Read only marking non-ignored forums Read.
Anyway, just a thought and I guess the argument could be taken both ways - mark forums read meaning marking Visible forums read or marking ALL forums read... thoughts?
Am I missing something or can you not ignore categories? This is a great little add-on and works as specified, it's just when you want to hide a category completely it appears you cannot and will end up with the category title showing as empty.
watchsteve
01-04-2016, 02:11 PM
Could anyone tell me if this works on vB 4.2.3?
akz645
01-04-2016, 04:31 PM
Could anyone tell me if this works on vB 4.2.3?
Yes, it worked for me on vBulletin 4.2.3.
I honestly don't see why you need to ask. Somebody just reported it worked on vB 4.2.2 right above. (https://vborg.vbsupport.ru/showpost.php?p=2549547&postcount=42)
Hence it will work on vB 4.2.3. If it doesn't, then it's an issue YOU will just have.
Hence the best way to test, is to test yourself on a test forum. Working for others, doesn't automatically mean it will work for you.
Scott W
01-04-2016, 06:48 PM
Doesn't seem to work for sub forums within different forums.....sigh.
There is a forum that many of my users don't like seeing new post for, but it also have a good dozen sub forums in it. Be quite obnoxious if they had to go within every single sub forum and click ignore.
Elixar
02-17-2016, 02:48 AM
I have two requests:
1. Anyway to also hide threads from displaying in Forum Blocks, such as Forum Threads/Posts? Currently as it stands it shows, and though it doesn't appear on the index page, it shows on the Forum Threads Block.
2. Allow Admins to place topics/forums on ignore for users, with the ability to not allow members to change it? :)
Duke49th
02-19-2016, 10:58 AM
Thanks a lot for this usefull Plugin :)
I did translate all phrases to German language. The only thing I've changed from original is:
"Forum Home & Forum Display"->"Portal Home & Forum Display"
Same for description. And of course I named it like that in german.
"If you leave the "Portal Home and Forum Display" option unchecked, ignored forums will display in Portal Home and as subforums......." -> "Wenn Du bei der "Portal Hauptseite & Forum Anzeige" Option kein H?ckchen setzt, werden ignorierte Foren auf der Portal Hauptseite und die Unterforen......."
Thats because we use vBadvanced.
I hope I did download phrases correctly. (Include Custom Phrases & Just fetch phrases)
@nerbert: Feel free to use and include them (dont forget to change the above mentioned phrases back to "Portal Home" -> "Forum Home" and (german) "Portal Hauptseite" -> "Forum Hauptseite" :)
Or do whatever you want with it haha :D
Elixar
02-24-2016, 04:31 AM
I have two requests:
1. Anyway to also hide threads from displaying in Forum Blocks, such as Forum Threads/Posts? Currently as it stands it shows, and though it doesn't appear on the index page, it shows on the Forum Threads Block.
2. Allow Admins to place topics/forums on ignore for users, with the ability to not allow members to change it? :)
Bump.
gobears20
09-20-2016, 02:30 PM
Couple of questions.
Is there a way to only slow certain user groups to use this feature?
Also is this hard on the sever?
MarkFL
09-20-2016, 02:44 PM
Couple of questions.
Is there a way to only slow certain user groups to use this feature?
Also is this hard on the sever?
No, the only option is to enable/disable the product. It is coded efficiently to rely on existing query modifiers and I would say doesn't appreciably add to server strain at all.
moonclamp
10-16-2016, 11:36 AM
Unfortunately not working on the tapatalk app, but I don't know if anyone could ever get around that.
Thank you.
dany_danay
05-25-2018, 06:06 AM
Would be perfect a modification to ignore prefix
Very handy feature! Would definitely donate to have the ability to apply this to select usergroups (paid subscribers) as an extra perk. I think someone mentioned the same above.
MarkFL
10-08-2018, 04:05 AM
Very handy feature! Would definitely donate to have the ability to apply this to select usergroups (paid subscribers) as an extra perk. I think someone mentioned the same above.
I am attaching a modified version of this product that allows you to select which usergroups can use this product. :)
This is awesome! Tested and works with 4.2.5!
Irishnotsane
05-21-2020, 06:58 PM
Is anyone able to update this to include activity stream being included? As this currently only works for getnew and getdaily.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.