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.


All times are GMT. The time now is 02:28 PM.

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.03168 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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