The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi
I am trying to add my own vBulletin-powered pages, but I am new to php and vBulletin. So far I have created a new file "job1.php" and added a new template at AdminCP. So far so good. Now I want to add more pages like "job2.php", "job3.php", on so on. File "job1.php" PHP Code:
The template HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Title</td> </tr> <tr> <td class="alt1">Text</td> </tr> </table> $footer </body> </html> How do I add variables in the php-file when using the same template for all files? All the php-files does have different titles. I am used to ".asp"-programming. Can I add strings like this and how is the php code for strings: In the page "job1.php" #1) in the <title> field: strTitle = "Reception/Office Assistant" #2) in the <body> field: strEmployer = "Opera Software ASA" In the page "job2.php" #1) in the <title> field: strTitle = "Tender Coordinator" #2) in the <body> field: strEmployer = "FMC Kongsberg Subsea AS" My two questions: Question #1) How do I code this in the php files? Question #2) How do I code this in the template? Anyone? ![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|