View Full Version : Vb Stats, outside of vb!
hey. on my http://www.url.com/index.php, i would like to add a small box with
Click 'here' to access
the forums.
Members : x
Posts : x
thats all i want really. Any ideas ?
thanks men!!!
awwwww......come on!!! Theres been 'last post on non vb', why is this one so hard???
SmasherMaster
03-18-2004, 11:09 AM
Ok, here's how you do it (I do this on my site too, it's not hard.)
In your DEFUALT styleo nyour boards, pu tthis under the meta tags in FORUMHOME template:
<meta name="threads" content="$totalthreads" />
<meta name="members" content="$numbermembers" />
<meta name="posts" content="$totalposts" />
<meta name="newmember" content="$newusername" />
Now, in your webpage (MUST be PHP) Put this in. (MAKE SURE to redirect the URL that's in the get_meta_tags to your forum URL.
<?$stats = get_meta_tags("http://www.yoursite.com/forums/index.php?");?>
Threads: <?php print( $stats['threads'] ); // to get the number of threads;?>
Members: <?php print( $stats['members'] ); // to get the number of members ;?>
Posts: <?php print( $stats['posts'] ); // to get the number of posts;?>
Newest Member: <?php print( $stats['newmember'] ); // to get the newest members name;?>
And there you go! :)
Ok, here's how you do it (I do this on my site too, it's not hard.)
In your DEFUALT styleo nyour boards, pu tthis under the meta tags in FORUMHOME template:
<meta name="threads" content="$totalthreads" />
<meta name="members" content="$numbermembers" />
<meta name="posts" content="$totalposts" />
<meta name="newmember" content="$newusername" />
Now, in your webpage (MUST be PHP) Put this in. (MAKE SURE to redirect the URL that's in the get_meta_tags to your forum URL.
<?$stats = get_meta_tags("http://www.yoursite.com/forums/index.php?");?>
Threads: <?php print( $stats['threads'] ); // to get the number of threads;?>
Members: <?php print( $stats['members'] ); // to get the number of members ;?>
Posts: <?php print( $stats['posts'] ); // to get the number of posts;?>
Newest Member: <?php print( $stats['newmember'] ); // to get the newest members name;?>
And there you go! :)
ty ty ty! worked a treat! ty ty ty!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.