Adding register link to navbar

Posted by chris_huh 
Adding register link to navbar
February 11, 2007 07:38AM
Is there a way that you can add a Register link next to the login link so that people don't have to click on login then on register me. Obviously this should only show up when they are not logged in.

Thanks
Re: Adding register link to navbar
February 11, 2007 08:25AM
Yes, edit the templates for that, with something like:
{IF NOT LOGGEDIN}
  ...link code for registration page...
{/IF}


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Adding register link to navbar
February 11, 2007 08:33AM
Which file under the templates folder should that be in. Or does it need to be done on several
Re: Adding register link to navbar
February 11, 2007 09:00AM
It's in several files.

I was thinking if a dirty hack could help to implement this in an easy way. Try changing the include/lang/english.php (or whatever language file you are using) so the LogIn language string looks like this:
   "LogIn" => "Log In</a>&bull;<a href=\"register.php\">Register",
This will automatically show the register link at all places there "Log In" is displayed. I don't think the LogIn language string is used in other places than the menu. If it isn't then you're fine like this.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Adding register link to navbar
February 11, 2007 10:26AM
Yeah, that worked fine. Thank you
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

Click here to login