![]() |
Custom Pages/Template Help
Thanks for taking a few moments,
I understand how to create basic templates & external vb pages and include vb vars into those templates/pages. What I am now strugling with is how to create more advanced templates to be able to take advantage of some of the more advanced vb internals. If you could assist me with a simple example I will likely be able to gain the knowledge I need to move forward. Here's my basic example; Template Code:
<!-- logged-in users --> PHP file PHP Code:
Currently Active Users: ( members and guests) The data is empty as if I am not including the proper files, however no error or anything suggesting a solution. The problem is likely obvious to the pro's. I just can't seem to figure out how to take advantage of the vb vars such as $totalonline, etc. I believe the issue is likely related to a missing require file, but it has not been made clear to me yet. You're help with this simple example would be greatly apprecaited. Thank you. |
Take a look at lines 336-425 in your index.php file.
|
Thank you, I appreciate your help.
|
The data is empty because your not actually extracting it anywhere - all your file does is display the template, therefore '$totalonline' has nothing in it.
|
Be sure to check these out..
https://vborg.vbsupport.ru/showthrea...ustom+php+page https://vborg.vbsupport.ru/showthread.php?t=92203 |
Thanks guys, got this figured out shortly after posting it.
I appreciate all the help! |
All times are GMT. The time now is 08:54 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:
|