Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 07:46 am EST
Geeklog Forums
Displaying an image in a staticpage centerblock
Turner
Anonymous
I want to do something like below, where html within a staticpage has access to the site url. Is this even possible?
global $_CONF;
?>
. '/image.jpg">
global $_CONF;
?>
. '/image.jpg">
7
8
Quote
Turner
Anonymous
Okay okay. I will register.
8
6
Quote
Turner
Anonymous
So sorry to be such a pita, but before I register I just want to make sure I am clear.
I have a staticpage centerblock with an html image tag. Rather than put in the full path every time I use the staticpage in a site, I just want to pass $_CONF['site_url'] to the html.
Something like this:
?>
<img border = "0" src=' . <?' . $_CONF['site_url'] . '?> . '/image.jpg">
Can it be done?
I have a staticpage centerblock with an html image tag. Rather than put in the full path every time I use the staticpage in a site, I just want to pass $_CONF['site_url'] to the html.
Something like this:
Text Formatted Code
global $_CONF;?>
<img border = "0" src=' . <?' . $_CONF['site_url'] . '?> . '/image.jpg">
Can it be done?
9
8
Quote
Turner
Anonymous
Nevermind. Really simple. Just do the whole thing in php.
6
7
Quote
All times are EST. The time is now 07:46 am.
- 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