Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases

Reply
 
Thread Tools
Ignore Thread Details »»
Ignore Thread
Version: 1.00, by zetetic zetetic is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

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.

Comments
  #12  
Old 04-03-2005, 04:07 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Casparian
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.
Reply With Quote
  #13  
Old 04-09-2005, 06:02 AM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

<else />
--------------------------------------------------------

At the very bottom, add:
--------------------------------------------------------
</if>
--------------------------------------------------------
Reply With Quote
  #14  
Old 05-16-2005, 02:12 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Casparian
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.

-Raymond
Reply With Quote
  #15  
Old 08-19-2005, 03:43 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sross
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 got the same error...

I don't think this is right:
Code:
<if condition="in_array($lastpostinfo[lastthreadid], $ignoredthreads)">
I think it is supposed to be more like:
Code:
<if condition="in_array($lastpostinfo[lastthreadid], array($ignoredthreads))">
Reply With Quote
  #16  
Old 01-14-2006, 02:33 AM
Fofer Fofer is offline
 
Join Date: Aug 2005
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone tried this on 3.5.x?
Reply With Quote
  #17  
Old 01-19-2006, 11:54 PM
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Location: London
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fofer
Anyone tried this on 3.5.x?
I would love this to be ported
Reply With Quote
  #18  
Old 04-20-2006, 11:30 PM
Hicksatpd Hicksatpd is offline
 
Join Date: Nov 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any updates? This would be great if I could have it for 3.5.4!
Reply With Quote
  #19  
Old 04-22-2006, 06:47 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 04-26-2006, 11:29 AM
dknelson dknelson is offline
 
Join Date: Oct 2004
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is something that I am eagerly awaiting also.
Reply With Quote
  #21  
Old 05-12-2006, 12:06 AM
dknelson dknelson is offline
 
Join Date: Oct 2004
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well folks...is this one a dead issue? Does anybody know of anything else like this?

Thanks,
Don
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:20 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.04709 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete