Found it - I have removed this from myvbindex.php:
$getnewposts=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$bbuserinfo[lastvisit]'");
$newposts = number_format($getnewposts['count']);
In the "Welcome" templete I changed:
<a href="$bburl/search.php?s=$session[sessionhash]&action=getnew">New Posts</a>: $newposts<br>
to
<a href="$bburl/search.php?s=$session[sessionhash]&action=getnew">Show New Posts</a><br>
If anyone can figure out what is causing this bit to slow things up, do let us all know.
It now loads within one second!
|