PDA

View Full Version : Dynamic IMAGE navbar


Caddyman
02-20-2007, 10:15 PM
im on vb3.6.4 @ talkdelaware.com using cmps v2.2.1. I am using a custom skin from skinworks.

I want a FORUM link while on the HOME

and a HOME link while on the FORUM

dynamic links

i have read thru every thread here i think, i cant find a good "if" statement for a navbar compiled of images that are in the "header" template. Is this possible? im sure it is........

more info

1. i will add a links_forum.gif image to the directory, i can do that.

2. my Forum is forums.php and my Home is index.php both in root directory.

3. Home link from header template:

<td><a href="index.php"><img src="$stylevar[imgdir_misc]/links_home.gif" alt="" width="75" height="39" border="0"></a></td>

4. screenshot:
[IMG]http://i49.photobucket.com/albums/f265/CaddymanLNL/untitled.jpg

Brian
02-21-2007, 05:17 PM
<td>
<if condition="THIS_SCRIPT == 'adv_index'">
<a href="forums.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/links_forum.gif" alt="" width="75" height="39" border="0"></a>
<else />
<a href="index.php"><img src="$stylevar[imgdir_misc]/links_home.gif" alt="" width="75" height="39" border="0"></a>
</if>
</td>

Our Sponsors
 

Caddyman
02-21-2007, 10:11 PM
thanks so much friend, i really appreciate it!

if theres a faq you should add this to it, i have seen this question alot here

EDIT: works absolutely perfect!