PDA

View Full Version : Call $totalposts and other vars from a PHP script


CJ
Fri 10th Nov '00, 5:28pm
How can I call
- $membernumber
- $totalposts
- $totalthreads
from a PHP script on the same server as the vBulletin copy?

I've tried calling a template with these vars, but that doesn't work.

Freddie Bingham
Fri 10th Nov '00, 5:43pm
Those variables are created by functions in index.php

If you want to include them in other pages you will need to duplicate the functions in index.php in your other pages, or place them in a file and include that file in all of your other pages.

TechTalk
Fri 10th Nov '00, 5:44pm
A quick search would bring up every answer you need. I (and many others) have released hacks that allow you to add these features on a non vb page. Check out the Code hacking forum

CJ
Fri 10th Nov '00, 6:30pm
I didn't find a hack for this...

Wayne Luke
Fri 10th Nov '00, 6:39pm
Look for any one post from eva2000 and follow the appropriate link in his signature...

Alternatively search for :

Active Topics
Including information on non Vb Page

Or simply look in the Hacking forum. It is a common topic and probably located within the first two pages of posts.


<<<EDIT>>>
Here is the thread:
http://www.vbulletin.com/forum/showthread.php?threadid=2658
<<</EDIT>>>


[Edited by wluke on 11-10-2000 at 05:42 PM]

CJ
Fri 10th Nov '00, 6:51pm
Thanks wayne for your help!