![]() |
New box under "What's going on?" which contains information from another database?
I've really tried to search for help but I couldn't find anything usefull. I haven't really modified any vB pages this way before so now I'm gonna ask you experts! :)
I want to create another box under the "Currently Active Users". It will contain info about how many users are active in our chat. This is how it looks: http://img450.imageshack.us/img450/6885/chat8hn.jpg I tried to add the code below in the forumhome template but it won't work. Anyone have any ideas of how I can make this work? Here's the code I use for the script: PHP Code:
Thanks in advance! :) |
You cannot put php code in templates - you need to create a plugin for the code and just put the output variable in the template.
|
Quote:
Isn't there any easy way to do this? :) Edit: I followed this (https://vborg.vbsupport.ru/showthread.php?t=82625) guide and made a plugin. It works if I place it in the index.php like Brad did in that guide but when I try to add it to the template where I want it, it just says: http://img125.imageshack.us/img125/5559/lolz8ta.jpg Any ideas? :cool: |
No one? Shouldn't be too hard eh? :cool:
|
All times are GMT. The time now is 05:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|