View Full Version : including forum info in misc php file
Wordplay
10-09-2004, 11:49 AM
okey, so i've got this php file which is supposed to open up in an iframe that i would like to include the following info in:
Members: $numbermembers
Total Posts: $totalposts | Total Threads: $totalthreads
Welcome to our newest member, $newusername
You Last Visited: $pmbox[lastvisitdate] $pmbox[lastvisittime]
how do i make it look up all that stuff? meaning how do i link that iframe to the board?
Dean C
10-09-2004, 12:04 PM
Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you :)
Thanks,
- Dean
Wordplay
10-09-2004, 12:11 PM
thanks! sorry about the trouble... but because it wasn't directly a vbulletinboard question but rather a mere coding question, i figured it had to go there.
Colin F
10-09-2004, 01:40 PM
You'll have to querie the database for some information. Check out the index.php file, I think most of what you want is in there already.
Wordplay
10-09-2004, 01:51 PM
sorry but i'm clueless. how do i querie the database?
Dean C
10-09-2004, 02:03 PM
Take a look at Zachery's tutorial in modification hints and tips to create a vBulletin powered page. Then just put the code you have above in your template and you should be good to go as all that information is made available on all pages IIRC :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.