The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
how do i show the number of current subscribers?
tryed to make an old simple hack work to show the numbers but cant work it out... heres the code i have... any help would be great? Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <plugins> <plugin active="1" product="vbulletin"> <title>Subscriber Count</title> <hookname>global_start</hookname> <phpcode><query_read("SELECT * FROM subscriptionlog WHERE status = 1"); $totalsub = mysql_num_rows($query1);]]></phpcode> </plugin> </plugins> doesnt work tho... just shows blank... |
#2
|
||||
|
||||
![]()
So many things...... you aren't using the correct query syntax - take a look at any vbulletin page. Do you really want to do this query on every single page? That is what will happen if you use the global_start hook. You do a num_rows on $query1 which isn't even defined.
|
#3
|
||||
|
||||
![]() Quote:
LOL that will be why then :P am not a coder.. just was going by what the other plugin xml had inside it. looked simple enough and small but guess its more complicated than i thought ![]() Cheers anyway ![]() Chris |
#4
|
||||
|
||||
![]()
Your XML is incorrectly formed in the first place. You should not edit files by hand, but rather, add/edit plugins through the Admin CP and export them when done.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|