vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Opt-Out Forums from Get New/Get Daily (https://vborg.vbsupport.ru/showthread.php?t=91025)

Andreas 10-05-2005 08:38 PM

Yes.
register_addmember_process
PHP Code:

$userdata->set('excludeforumsgnp''X'); 


dieselpowered 10-05-2005 09:56 PM

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 ;)

dsotmoon 10-05-2005 10:12 PM

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

dsotmoon 10-05-2005 10:28 PM

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

Andreas 10-05-2005 10:31 PM

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?


dsotmoon 10-05-2005 10:36 PM

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?

Andreas 10-05-2005 10:39 PM

Edit the Plugin and add the Forumid to the list.

dsotmoon 10-05-2005 10:52 PM

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:

Andreas 10-05-2005 10:58 PM

*** 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)

Andreas 10-05-2005 11:00 PM

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.


All times are GMT. The time now is 03:37 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.01316 seconds
  • Memory Usage 1,756KB
  • 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
  • (7)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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