The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Tried and failed adding php code to a custom page.
I tried and failed to add some php code to a custom page.
Would anyone help? is there a better way to do this? here is what i wanna add to a custom page: PHP Code:
|
#2
|
||||
|
||||
Refer to this thread:
https://vborg.vbsupport.ru/showthread.php?t=174159 |
#3
|
||||
|
||||
I saw that thread, and copied most from it lolz... still couldn't do it. How stupid me with coding...
|
#4
|
||||
|
||||
Are you trying to create a vBulletin custom page? Or is this just a page with no connetion with vBulletin?
|
#5
|
||||
|
||||
Yes, I'm trying to create a vbulletin custom page.
Thanks for replying. |
#6
|
||||
|
||||
Make an php file to do your code and eval the template. That way you can add more sections to the file like they do here on the org with the info.php file. Then make a template and inside the template call a phrase or phrases with the content that you want for the page. I just set up a links page doing it this way.
|
#7
|
||||
|
||||
Please have a look at this article, and try to model your templates without any PHP, only including the variables. Put the PHP, assigning data to variables, in the files.
|
#8
|
||||
|
||||
I guess my explanation was a little off but that is what I meant.
|
#9
|
||||
|
||||
Thanks all! Got it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|