![]() |
PHP code in custom vbulletin page help needed
1 Attachment(s)
Hello
I'm trying to design one custom page while keeping vbulletin header, navbar and footer on it. I've referred to following topics : https://vborg.vbsupport.ru/showthrea...ight=logicians https://vborg.vbsupport.ru/showthread.php?t=217075 http://www.vbulletin.com/forum/showthread.php?t=197563 Here is the custom page i wanna have headers and footers on. http://www.projectsplanet.org/forums/testverify.php Enter code 1234test to test above page. When i try to put my code as follows in custom template created in Vbulletin admin CP, i'm getting error : Quote:
Code:
The following error occurred when attempting to evaluate this template: Please check attached php file testverify.php Please tell me how do i put vbulletin header, navbar and footer there. Following are the contents of attached testverify.php if you do not wish to download it : Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Detailed instructions are much appreciated. Regards EDIT - I dont wanna use <IFRAME> tag (Even with auto resizing <IFRAME> java script) :p |
Follow the instructions in the article you linked to yourself: https://vborg.vbsupport.ru/showthread.php?t=62164
In vBulletin, any HTML is placed inside templates. Processing is done in PHP, then the template(s) is called upon and echoed to the client. |
Quote:
I've attached the code too... can you please tell me what exactly i'm suppose to write in template? :confused: |
Templates contain no PHP code, apart from variables. The template you posted is "empty", that is, you don't put in the most important bit - your code...
|
Quote:
So all i want to know is how can i have vbulletin header, footer and navbar on any custom page? :o |
Your logic needs to be done and results stored in variables for later use in templates. That's how it is done in vBulletin.
|
Quote:
here is what i understood : i gotta put php logic only in testverify.php which will also contains following code in turn : Quote:
Is that correct? |
Any processing needs to be done before any print_output() calls. Values should be assigned to variables. These variables are used in templates.
The best example I can give you is vBulletin itself. |
Quote:
|
All times are GMT. The time now is 01:10 PM. |
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:
|