PDA

View Full Version : New posts hack not working


Ogden2k
01-02-2005, 07:45 PM
This isn't an issue with the hack, but with vBa CMPS.

I have this code in the phpinclude_start template:
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM ".TABLE_PREFIX."post WHERE dateline > '$bbuserinfo[lastvisit]'");
Then I place this in the Nav template: $getnewpost[posts]

It worked on vBa 1.1, but does not with vBa CMPS. Why is that?

Brian
01-02-2005, 08:44 PM
/forum/includes/vba_cmps_inlclude_bottom.php - Look for:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;


Replace with:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox, $getnewpost;

Our Sponsors
 

Ogden2k
01-02-2005, 09:06 PM
Great, thank you very much!