Quote:
|
In the instructions it says I have to open up includes/functions_online.php and edit to enable Who's Online. Isn't that a file?
Sorry if these are stupid questions. |
1 Attachment(s)
I have like 30 lines of php code which I want inside the box instead of Text. How do I make it so that I can have the template read my php code? (Take a look at the template I created), how do I get the php to be executed?
|
Quote:
But what hook do I use? |
I know the global_start hook location works, but I think there is a way around the hook/plugin system.
|
Yeah, I was pretty sure global_start would work but thought there might be a better hook location, don't want the piece of code being executed for every page call....
|
ea, same here. I'm trying to figure out a way to do this without using the hook thing, if I find it, ill let you know, k?
|
Cheers mate, that'd be great.
The powered pages are exactly what I'm after but if I can't include a bunch of PHP code in the actual templated, they are pretty useless to me. |
You dont have to edit any vbulletin php file to make new pages work. Who's online can be done using hooks.
php code is not supposed to be written in templates. Hooks are needed only if you want to insert code into the existing pages. This thread is about creating new pages. The idea is to have a new page. See the countries page on my site for example. For a general explanation of how templates and hooks work, see the vbulletin manual. |
is this what you used http://www.vbulletin.com/docs/html/m..._externalfiles ?
What hook location did you use? Thanks... --------------- Added [DATE]1207200276[/DATE] at [TIME]1207200276[/TIME] --------------- Also, did you create a custom template, like this tutorial? |
All times are GMT. The time now is 10:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|