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_
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_
6
7
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_
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_
4
6
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
bye, Dirk
5
6
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