Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Opt-Out Forums from Get New/Get Daily Details »»
Opt-Out Forums from Get New/Get Daily
Version: 1.0.3, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-24-2005 Last Update: 09-26-2005 Installs: 254
DB Changes Uses Plugins Template Edits
 
No support by the author.

Description
This Hack allows the Users to select certain Forums they do not want to appear on Get New/Get Daily.
It includes a new Permission, so you can specify which Usergroups can use this feature, which Forums
can't be excluded, etc.

Details
1 Product XML with 3 Plugins, 4 Phrases and 1 SQL Query
1 Bitfield XML
1 Template Edit

History
1.0.0 Initial Version
1.0.1 Added Option "None" for users who don't know about their CTRL Key
1.0.2 Updated for RC1
Note: This Hack does only work for vBulletin 3.5.0 RC1 and up!
1.0.3 Fixed a small Typo and a possible Problem with Forums that contain HTML in Title

Please only click Install if you actually have installed/are using this Hack, and click Uninstall when you don't use it any longer!

This Hack is unsupported! All support requests except proven bugs will be ignored

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
CynamiteCMAG

Comments
  #122  
Old 10-05-2005, 08:38 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes.
register_addmember_process
PHP Code:
$userdata->set('excludeforumsgnp''X'); 
Reply With Quote
  #123  
Old 10-05-2005, 09:56 PM
dieselpowered's Avatar
dieselpowered dieselpowered is offline
 
Join Date: Aug 2004
Location: Arizona
Posts: 661
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Yes.
register_addmember_process
PHP Code:
$userdata->set('excludeforumsgnp''X'); 
Oh crap, I thought that was the answer to my question...glad I checked the other page
Reply With Quote
  #124  
Old 10-05-2005, 10:12 PM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Yes.
register_addmember_process
PHP Code:
$userdata->set('excludeforumsgnp''X'); 
was this the answer to my question or offline?, just want to make sure :nervous: i just want to have one specific forum thats will not show up at all in new posts
Reply With Quote
  #125  
Old 10-05-2005, 10:28 PM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Yes.
register_addmember_process
PHP Code:
$userdata->set('excludeforumsgnp''X'); 

also, is that a template or in the product or xml? i couldnt find a template with that name
Reply With Quote
  #126  
Old 10-05-2005, 10:31 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That was the answer for

Quote:
Originally Posted by offline
Nice work, works great on 3.50 gold. One quick question... Is there a way to set a new user to automatically have a specific forum turned off from the new posts search?
Reply With Quote
  #127  
Old 10-05-2005, 10:36 PM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
That was the answer for
oh, ok, anyway to set this so one specific forum will not show up for any user/usergroup, ie: test forum doesnt show up in new posts for anyone?
Reply With Quote
  #128  
Old 10-05-2005, 10:39 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the Plugin and add the Forumid to the list.
Reply With Quote
  #129  
Old 10-05-2005, 10:52 PM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Edit the Plugin and add the Forumid to the list.
i dont see a forum id list? which exact file? is there a string i can search for to find it? sorry to be a pain :ermm:
Reply With Quote
  #130  
Old 10-05-2005, 10:58 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*** Untested ***

To make this work with the welcome module of CMPS:

In welcomeblock.php
FIND
PHP Code:
$getnewposts $db->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "post WHERE dateline >= " $vbulletin->userinfo['lastvisit']); 
REPLACE that with
PHP Code:
$getnewposts $db->query_first("
    SELECT COUNT(*) AS count FROM " 
TABLE_PREFIX "post AS post
    " 
iif($vbulletin->userinfo['excludeforumsgnp'], "LEFT JOIN " TABLE_PREFIX "thread AS thread ON (thread.threadid=post.threadid)") . "
    WHERE post.dateline >= " 
$vbulletin->userinfo['lastvisit'] . "
    " 
iif($vbulletin->userinfo['excludeforumsgnp'], "AND thread.forumid NOT IN (0," $vbulletin->userinfo['excludeforumsgnp'] . ")") . "
"
); 
(The query might need some optimization though)
Reply With Quote
  #131  
Old 10-05-2005, 11:00 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dsotmoon
i dont see a forum id list? which exact file? is there a string i can search for to find it? sorry to be a pain :ermm:
PHP Code:
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' $vbulletin->userinfo['excludeforumsgnp']); 
That's the line which (re)defines the comma-separated list of excluded forums - add your ID to it.
Reply With Quote
Reply


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 12:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.15522 seconds
  • Memory Usage 2,330KB
  • 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
  • (7)bbcode_php
  • (7)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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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