The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP function in a template
I have this users.php function code to list online users. I would like to include this on a non-vb page that uses templates.
PHP Code:
That php file works if you include output_UsersOnline() in the file itself. What would be the proper way construct this code in a plugin so I can call it in a template with a variable ie; $onlineusers |
#2
|
|||
|
|||
If you are including global.php already, why making custom functions for already built in functionality? (Fetching templates and parsing them.)
Have you looked at this tutorial? : https://vborg.vbsupport.ru/showthread.php?t=98009 It should point you in the right direction. |
#3
|
|||
|
|||
The template that it's parsing is an html page that puts the users online in clickable link to they're profile.
|
#4
|
|||
|
|||
Anyone have any idea. Surely there's some guru out there that can point me in the right direction
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|