PDA

View Full Version : displaying links count


Lionel
11-25-2004, 11:50 AM
I placed this in vb global.php

$alllinks = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "links WHERE valid = 1");

and $allinks[count] in my navbar.
The result is fine as per first thumbnail. But why wouldn't it display link count when viewing any links page?

I also tried to include it in links_globals

Brian
11-25-2004, 11:54 AM
In your /forum/includes/functions_links.php file look for:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;


Right below that add:
global $alllinks;

And that should allow the variable to be displayed on your links pages as well.

Our Sponsors
 

Lionel
11-25-2004, 12:03 PM
Thank you Brian. I would have never been able to fix that one without you.