The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Newbie question returning a var to the postbit template
bare with me here guys I've never used PHP strictly perl by trade and I've never hacked VBulletin ether so I'm not sure where to start what I'm trying to do should be simple
Code:
my @types = qw/lscripts presets plugins models/; my %typeset; foreach $type (@types) { my $sth = $dbh->prepare("SELECT COUNT(*) FROM $type\_download WHERE $type\_author_id=?"); $sth->execute("$user{'userid'}"); $typeset{"$type"} = $sth->fetchrow; } As i say my PHP is limited and my knowledge of VBulletin is basically non existent, can someone point me in the right direction. Thanks guys. |
#2
|
||||
|
||||
you have to edit admin/functions.php and add the code into the getpostbit section.
but i wouldn't do it, because one query per post extra isn't a good hack... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|