The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
need some help please
I've written a PHP script (unread.php) that collects some info from vB and my mail program. It stores this information in a variable called $unreadmail
If I run the script it collects the information and echo's it from the $unreadmail variable I'd like to be able to place the variable anywhere in the vB templates, probably Postbit. My question is what is the best way to go about making this variable available. I'm assuming I'll need a line something like this require("http://www.mydomain.com/unread.php"); is that correct? where should I put the line? and how do I make the variable global. Thanks in advance for any help you can throw my way. |
#2
|
||||
|
||||
admin/functions.php
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
put the require line into phpincludetemplate would be better
|
#4
|
||||
|
||||
Hi Guys,
thanks for the quick replies. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|