Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 07:13 am EST

Geeklog Forums

Link on static pages


Status: offline

kemal

Forum User
Regular Poster
Registered: 04/05/05
Posts: 103
Location:Turkey
Hi all
How can I make a link on my static page this style : {layout_url}/wanted.url (like header.thtml)
When I clicking on this link, must go to http://geeklog/layout/mylayout/wanted.url
How must write a code???

(p.s.: my staticpage.php activated)
_KEMAL_
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Not sure I understand the question correctly, but you can not use template variables in static pages. What's wrong with a good old-fashioned link?

bye, Dirk
 Quote

Status: offline

kemal

Forum User
Regular Poster
Registered: 04/05/05
Posts: 103
Location:Turkey
If i create a link like this,
when users changed theme, images change too..


for example
i wrote this code:

<img src="{layout_url}/img/img01.jpg">


if user choosed XSilver, static page call
<img src="http://mygeeklog/layout/XSilver/img/img01.jpg>

if user choosed gameserver, static page call
<img src="http://mygeeklog/layout/gameserver/img/img01.jpg>
.....

this is possible with php codes..

But i don't know code..


_KEMAL_
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Template variables are only available in template files (well, obviously). So you can either hard-code the URL in your HTML or use PHP in the static page, where you can then refer to $_CONF['layout_url'].

bye, Dirk
 Quote

Status: offline

kemal

Forum User
Regular Poster
Registered: 04/05/05
Posts: 103
Location:Turkey
happy
hi,

i found a very easy and simple formula by myself..

Text Formatted Code
in header.thml

<base href="{layout_url}">
 


by this way there is no problem! Big Celebration
_KEMAL_
 Quote

Status: offline

kemal

Forum User
Regular Poster
Registered: 04/05/05
Posts: 103
Location:Turkey
oh!
Arrow with this way (only) forum is not work Banging your head
_KEMAL_
 Quote

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