![]() |
Strings in templates?
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] 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? :o |
Variables are coded like this in php:
PHP Code:
Is there a major difference between each of the jobX.php files? You can create subpages within just a single job.php page, see this: See the Creating Subpages section: https://vborg.vbsupport.ru/showthread.php?t=98009 Then you can access each section using the url http://anydomain.com/job.php?do=1 or something like that. |
Thank you very much :)
|
All times are GMT. The time now is 08:23 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:
|