The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help
Help me with Creating Custon Sub-Pages.
I've asked here but nobody answered me.(https://vborg.vbsupport.ru/showthrea...stpost&t=98009) I want to create a sub-custom page - I read here but did not understand Quote:
How I create subpages in AdminCP (Templates)? Get the Link to Subpages? ...test.php?page=2 ??? |
#2
|
|||
|
|||
let's say you named your script "test.php"
PHP Code:
|
#3
|
|||
|
|||
Thanks harmor19
Now I want to add custom template e.x.: in my template test_mytesttemplate1, there I add $customtemp then i add a new temp. called customtemp now what I have to add in my test.php script? |
#4
|
|||
|
|||
Use
eval('$customtemp = "' . fetch_template('customtemp') . '";'); Place this in the same subpage where the template where you would like the html of "customtemp" to be. In this case you want to place the new template function in this section. PHP Code:
PHP Code:
[COLOR=Red]eval('$customtemp = "' . fetch_template('customtemp') . '";'); The "$customtemp" variable is what you put in another template file. So in the "test_mytesttemplate1" template you should have the variable "$customtemp". The text in side the "fetch_template" function (which is "customtemp") is the template it's getting the html from. |
#5
|
|||
|
|||
thank you harmor again
I need a code for my custom page, which connects to phpmyadmin and gets the term of a post (e.x. id of post 1) can you help me? - sorry for my bad english thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|