Welcome to Geeklog, Anonymous Sunday, September 15 2024 @ 01:55 pm EDT
Geeklog Forums
$_CONF variables in staticpages
Tank
Anonymous
Can you pass a $_CONF variable to a static page? If so, how? I want to display an image on a static page and don't want to hard code the actual URL to it.
9
7
Quote
Status: offline
exaurdon
Forum User
Regular Poster
Registered: 08/13/03
Posts: 107
The $_CONF variable is avaliable in staticpages, all you need to do is import the global variable into your php code.
Use somethig like:
global $_CONF;
echo '<img src="'.$_CONF['site_url'].'/images/foo.png">';
Exaurdon
Use somethig like:
Text Formatted Code
global $_CONF;
echo '<img src="'.$_CONF['site_url'].'/images/foo.png">';
Exaurdon
11
10
Quote
All times are EDT. The time is now 01:55 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content