![]() |
Possible template issue
Hi there, had a good look around the articles area before deciding to post this asking for help.
Looked at the 'how to add custom vbulletin page for VB4' done the new template named it, done the php file and added a nice little dropdown box to link it to. However, when i try to add content to the page i have my major issue: Presently i have the custom page content in the actual php page, resulting in said content being at the very top of the page. The content is php code to check if a server(s) is online or offline....if i try to put this into the customer template i made, then all i get is what i pasted coughed up on the page, unparsed. That is my problem....putting the php code in the php file makes it work, but it sticks at the top of the page, if i put the code in the template, the format works, but it doesn't parse in php. Page in question: http://flexgaming.net/servers.php Anyone able to help with this? Many thanks! |
You'll need to post your full php page and your template in order for anyone to see what is wrong. Please use the code tags when you do so.
|
Okay here's the template and php code.
Template: Code:
{vb:stylevar htmldoctype} Code:
<?php |
Do not "echo" $data. You need to put the data variable into your template after registering it. You add something like this at the bottom:
Code:
$templater->register('pagetitle', $pagetitle); Code:
<h2 class="blockhead">Title</h2> |
That's done the trick, thank you very much.
Will explore that in better detail so i can learn from it, that had me fuming a good full day, again many thanks Lynne! |
All times are GMT. The time now is 05:27 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:
|