The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
if i wanted to have a number beside the new post link, how would go around doing that?
thanx monstergamer |
|
#2
|
||||
|
||||
|
It requires running a query, and i dont suggest you do it on EVERY page.
Code:
if (THIS_SCRIPT == 'index' AND $bbuserinfo['userid'] != '0')
{
// Posts
$getnewposts = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE visible = 1 AND dateline >= '$bbuserinfo[lastvisit]'");
$newposts = number_format($getnewposts['count']);
}
|
|
#3
|
||||
|
||||
|
thanx, i just want it on one page anyway
but where do i add this |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|