PDA

View Full Version : Help with button code


mozik
12-30-2009, 06:03 AM
ok, I need this code here to be changed for when the user is not logged in.


I need one for JOIN NOW when the user isnt logged in and a login in one.

can someone please help.

Its going in the website code for the top nav here. www.levelboosters.com/forum

<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>

Lynne
12-30-2009, 01:59 PM
Just add an <else /> to the statement for the JOIN NOW option:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
<else />
YOUR JOIN NOW option (get registration link from navbar?)
</if>

mozik
12-31-2009, 09:08 PM
Thank you very much.

mozik
01-05-2010, 01:02 AM
How would I do this on a non vb page?