How do I move the log out link near the footer up next to the forumleaders link?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    How do I move the log out link near the footer up next to the forumleaders link?

    Once in a while I get asked how to move the " Log out " link that's near the footer up next to the links 'Mark forums read - Forum Leader' in the blue row. Here's how:

    Admin Control Panel > Styles & Templates > Style Manager > dropdown: Edit Templates > select the Forum Home Templates Group and expand it > select the template 'FORUMHOME' and click on customize button to open it.

    Find this code and delete it:
    Code:
    [size=1]    <if condition="!$show['guest']">
            <!-- member logout -->
            <td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
            <!-- end member logout -->
        </if>[/size]

    Now find this code:
    Code:
    [size=1]    <tr>
            <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
            </strong></div></td>
        </tr>[/size]

    And replace it with this code:
    Code:
    [size=1]    <tr>
            <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
                <if condition="!$show['guest']"><!-- member logout -->&nbsp; &nbsp;<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a><!-- end member logout --></if>
            </strong></div></td>
        </tr>[/size]
    And save the template. You're done!
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...