Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 09:44 am EDT

Geeklog Forums

Passing a path to html in staticpage centerblock - Part II


Status: offline

Turner

Forum User
Chatty
Registered: 04/11/05
Posts: 42
awake
I am trying to pass $_CONF['site_url'] to a staticpage centerblock that has html in it.

I am doing this to display an image.

Can this be done?
-Jeff
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Turner: Can this be done?

If the static page uses PHP - sure. Declare $_CONF as a global variable:

global $_CONF;

bye, Dirk
 Quote

Status: offline

Turner

Forum User
Chatty
Registered: 04/11/05
Posts: 42
Right. I was already doing this, but I was including "require_once ('lib-common.php');" in order to get it work.

My goodness. Sometimes I feel really dumb.

Thanks for this help!
-Jeff
 Quote

All times are EDT. The time is now 09:44 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