![]() |
Quick Question - Defining Variables
I've been trying this for several days before I decided to seek help. Myself and my partner have put a lot of work into the board/site and I don't want to ruin it by messing up one file.
Basically I would like to use my custom template ( custom_template ) by calling the variable $custom Where would I go or how would I define that variable so it would work everywhere on my board including myVBindex and custom php pages made. Thanks, :classic: |
you have to create it within global.php where $header and $footer are defined :)
|
Could you tell me how... ;)
|
Do I find
Quote:
Quote:
|
If so...that gives me the following error...
Quote:
|
PHP Code:
|
Heres a piece of my global.php file after the changes.
Quote:
Quote:
|
AFAIK $468x60 is no valid varname
php varialbes have to start with an letter as far as i know.. |
Thanks -- Works like a charm.
|
you're welcome :)
|
All times are GMT. The time now is 01:01 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:
|