vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Thread & Forum Ignore System (https://vborg.vbsupport.ru/showthread.php?t=272375)

nerbert 10-19-2011 10:00 PM

Thread & Forum Ignore System
 
1 Attachment(s)
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

Quote:

Originally Posted by sticky (Post 2265267)
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

Quote:

Originally Posted by nerbert (Post 2265501)
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

Quote:

Originally Posted by Kyoshokid (Post 2260113)
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

Quote:

Originally Posted by englishtalk (Post 2288604)
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

Quote:

Originally Posted by MattGarner (Post 2396616)
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

Quote:

Originally Posted by Expat (Post 2402576)
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

Quote:

Originally Posted by stevieb (Post 2503771)
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

Quote:

Originally Posted by Skedoozy (Post 2482959)
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

Quote:

Originally Posted by ekool (Post 2314531)
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

Quote:

Originally Posted by tbworld (Post 2503804)
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

Quote:

Originally Posted by Skedoozy (Post 2506310)
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

Quote:

Originally Posted by TheLastSuperman (Post 2503797)
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 ;).

Quote:

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
Quote:

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.


All times are GMT. The time now is 09:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01351 seconds
  • Memory Usage 1,827KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete