The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Remove forum from $newposts search
Remove forum from $newposts search.
In the welcomeback module on my CMPS page I want to exclude my RSS forums from the "$newposts" next to the "New posts:" I am using: Code:
$vbulletin->GPC['exclude'] .= '78,79,81,83,84,85'; This seems to work great to remove the forums from the actual search. But doesn't help in changing the value next to the "New posts:" Any ideas? Thanks dreck |
#2
|
||||
|
||||
I think I found the query, but am not sure how I can exclude the forums?
Code:
// New posts if ($mod_options['portal_welcome_newposts']) { if (strlen($vbulletin->session->vars['newposts']) > 0 AND !$vbulletin->options['threadmarking']) { $newposts = number_format($vbulletin->session->vars['newposts']); } else { $getnewposts = $db->query_first(" SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post AS post " . iif($vbulletin->options['threadmarking'], 'LEFT JOIN ' . TABLE_PREFIX . 'threadread AS threadread ON (threadread.threadid = post.threadid AND threadread.userid = ' . $vbulletin->userinfo['userid'] . ')') . " WHERE dateline >= " . $vbulletin->userinfo['lastvisit'] . iif($vbulletin->options['threadmarking'], ' AND dateline > IF(threadread.readtime IS NULL, ' . (TIMENOW - ($vbulletin->options['markinglimit'] * 86400)) . ', threadread.readtime)') ); $db->query_write("UPDATE " . TABLE_PREFIX . "session SET newposts = '$getnewposts[count]' WHERE userid = '" . $vbulletin->userinfo['userid'] . "'"); $newposts = vb_number_format($getnewposts['count']); } } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|