PDA

View Full Version : Footer Template Question


nickchrisless
03-20-2006, 07:49 PM
I looked through the footer template seeing if I could add another link and I see how most are written. However, I'd like to be able to add my own link.

<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>

I believe that is the code to have the Mod link show up IF the condition is met that the user is a mod.

That's beautiful, and exactly what I'm looking for. I have made a usergroup (name: stn writers id: 9) for the writers on my website. My goal is for a link to show up so they can reach the article submission form.

My general idea would be this... and I KNOW this is not the correct way, I'm just showing you the idea...

<if condition="$show['stnwriterslink']"><a href="/forums/article_form.php">$vbphrase[writers]</a> -</if>

I know that doesn't work (I tried it :))

If someone can explain how to do this to me, it'd be much appreciated! Thanks!

Freesteyelz
03-20-2006, 09:38 PM
If you want a specific Usergroup to see the link then use the Usergroup's ID in the conditional. Such as:


<if condition="is_member_of($bbuserinfo, x)">
<a href="/forums/article_form.php">$vbphrase[writers]</a></if>


Where "x" is replace it with the Usergroup's ID. If the ID = 9 then replace "x" with "9". You can also add ID's by adding a ", y" and so forth in the routine.