PDA

View Full Version : [How] $newposts[count] in Navbar on all pages?


SCRIPT3R
04-17-2005, 01:26 AM
is there an easier way to get a New Post Count to appear in the NavBar on all forum pages (rather then edit each php file)? this is where i'm at thus far, but obviously the $newposts[count] is only appearing on index.php.



forumrootdirectory/index.php

// ######################### REQUIRE BACK-END ############################

require_once('./global.php');

require_once('./includes/functions_bigthree.php');

require_once('./includes/functions_forumlist.php');

$newposts = $DB_site->query_first("

SELECT COUNT(*) AS count

FROM ".TABLE_PREFIX."post

WHERE dateline > '".$bbuserinfo['lastvisit']."'

");

breadcrumbs...

navbar

<if condition="$indexpage">

<a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts]</a>: $newposts[count]<br />

</if>

sabret00the
04-17-2005, 02:52 PM
use the phpinclude_start :)

SCRIPT3R
04-18-2005, 03:12 AM
use the phpinclude_start :)
easy as pie, thank you soo much!

defcon_420
04-29-2006, 04:12 AM
i want to do this but i dont understand what you mean by "use the phpinclude_start"

what would the statement look like? sorry i'm not a coder :(

nvm i found a plugin to do it here https://vborg.vbsupport.ru/showthread.php?p=962809&posted=1#post962809