The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
A little php help please to get this working correctly
I'm working on making a hit counter for the forumhome and so far, have gotten this far with the code:
Plugin Hook location: forumhome_start PHP Code:
Code:
$db->hide_errors(); $db->query_write('CREATE TABLE IF NOT EXISTS `'.TABLE_PREFIX.'usml_fhcounter`( `count` VARCHAR(6) NOT NULL DEFAULT "", PRIMARY KEY (`count`) ) TYPE=MyISAM; '); $db->query_write('INSERT INTO `'.TABLE_PREFIX.'usml_fhcounter` ( VALUES (0); '); $db->show_errors(); Code:
Visitors: %1$s Thanks in advance for the help |
#2
|
||||
|
||||
I think you want to use construct_phrase:
construct_phrase($vbphrase['counter'], $counter) So something like: PHP Code:
|
#3
|
||||
|
||||
Just tried that, an now no characters show. Just:
Code:
Visitors: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|