The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Simple Request for Stats
I want to make a page that simply says:
Threads: XXXX Posts: XXXX Members: XXXX 'XXXX' being the actual variables. I've searched through this whole forum and found nothing like this. Please help. |
#2
|
||||
|
||||
-Make a copy of index.php
-Rename it stats.php or whatever you want. -find Code:
eval('print_output("' . fetch_template('FORUMHOME') . '");'); -change FORUMHOME to STATS -Create a custom template called STATS Within that template, you can now use any of the codes that you can use on the FORUMHOME template. I'm not sure what the code is to disaplay posts/threads, I'm in the middle of switching webhosts. Just look around in forumhome and you will find it. If you need it to be in a different dir than /forum or wherever you have your files stored, just open up config.php and includes/init.php and change all of the require("whatever.php"); to require ("home/yourSite/public_html/forum/whatever.php"); ~Hope that helps |
#3
|
|||
|
|||
Thank you.
|
#4
|
||||
|
||||
@N8_115
That's overkill ... Use this as stats.php PHP Code:
Threads: $stats[threads] Posts: $stats[posts] Members: $userstats[numbermembers] |
#5
|
|||
|
|||
KirbyDE: That doesn't work... blank page.
Do I have to change anything? |
#6
|
||||
|
||||
Hmm, does work just fine for me.
Did you create the template STATS? |
#7
|
|||
|
|||
Oh, it's probably because we have some extra coding for our site. I see. Nevermind. Thanks.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|