Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 08:43 am EST

Geeklog Forums

Static Pages using site_url


Status: offline

etegration

Forum User
Full Member
Registered: 02/20/02
Posts: 179
See example site here

On that page "others, share it via ITCoW! We'll be glad to add it in! Contact us!" See the contact Us link, i am using:

Text Formatted Code
<a href="{site_url}/profiles.php?uid=2">Contact us</a>!</p>
 


How ever, the {site_url} gets parsed but still it's displayed again as "{site_url}" why so?

I hope to convert as much of my site to using all these logical links to enable me to migrate easily. Is there something to set in php.ini? or is it just some errors on my part or is it static pages plugin?
http://www.etegration.com.sg
http://www.itcow.com
http://www.ministryofhosting.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You can't use variables in static pages.

You could either write PHP code that creates the page (where you could then use Geeklog's $_CONF['site_url'] config variable) or you could simply use a URL without the domain name, i.e.href="/users.php...".

bye, Dirk
 Quote

All times are EST. The time is now 08:43 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