[Tip] Login and Register links at top bar

 
Petri Kosunen
 
Avatar
 
 
Petri Kosunen
Total Posts:  66
Joined  05-11-2014
 
 
 
11 November 2014 15:22
 

If you want to use straight links for registration or login -pages on your forum, you might think modifying top_bar.html?

Find the original code (top_bar.html):

{if logged_out}
   
<li class="dropdown">
    <
a href="#" class="dropdown-toggle" data-toggle="dropdown">{lang:welcome} <class="caret"></b></a>
    <
ul class="dropdown-menu">
     <
li><a href="{path:login}"><class="fa fa-unlock fa-fw"></i>&nbsp;&nbsp;{lang:login}</a></li>
     <
li><a href="{path:register}"><class="fa fa-pencil fa-fw"></i>&nbsp;&nbsp;{lang:register}</a></li>
    </
ul>            
   </
li>           
   
{/if} 

..and clean that up to this:

{if logged_out}
   
     
<li><a href="{path:login}"><class="fa fa-unlock fa-fw"></i>&nbsp;&nbsp;{lang:login}</a></li>
     <
li><a href="{path:register}"><class="fa fa-pencil fa-fw"></i>&nbsp;&nbsp;{lang:register}</a></li>
          
   
{/if} 

And then you have those 2 important links right on top of your forum page, see attached image.
(IMPORTANT: This is not official method, and I have tested this only with Chrome and IE on computer and with iPhone4 on mobile).

Cheers!

Image Attachments
 
login-register-on-top-bar.jpg