|
Post by Mad Madisson on Jul 8, 2015 22:52:00 GMT -8
I'm so in love with this skin. Seriously PHARAOH LEAP, great job. I'm here in hopes of finding someone with the code savy to help me out here. I've been trying to find a way to add the log in/log out button to my Navigation menu. Right now this skin has it on an image you have to mouse over to access. Even though it looks lovely on computers it's not very accesible for everyone [and unless you know to actually look there, it's hard to find]. In an attempt to make it more user friendly I thought of moving it to the naviagtion menu, but all my attempts just seem to break the lovely design. I go in to the wrapper html and try to add it from there, but it seems like the only way it might work is if I go and edit the navigational code directly. I had a look through the Layout Templates but there isn't one for Navigation Menu, unless I'm missing it. At the moment I just have a LOGIN button that I added through the Forum Settings>Navigation. Sadly it just says log in, and doesn't change even if you are logged in. No log out. Any help, ideas or suggestions are greatly appreciated.
|
|
|
Post by PHARAOH LEAP on Jul 9, 2015 5:39:42 GMT -8
Hey, Madisson! I'm glad I popped on here when I did, because I should have a solution to your problem. If you go into your Forum Wrapper layout templates, at the bottom of the whole navigation menu schpeel (line 38 for me, although that's really give or take) you should see a {/foreach} tag. Immediately after that, paste this:
{if $[current_user.is_member]} <td> <li> <a href="$[logout_link.href]"> LOGOUT </a> </li> </td> {else} <td> <li> <a href="$[login_link.href]"> LOGIN </a> </li> </td> <td> <li> <a href="$[register_link.href]"> REGISTER </a> </li> </td>{/if}
That worked for me not only on the Mindcrime skin, but on another test site of mine, so hopefully that should solve your problem!
|
|
|
Post by Mad Madisson on Jul 10, 2015 5:28:54 GMT -8
PHARAOH LEAP, you're a life saver. I think my problem was that I kept trying to insert that before the navigation so it would be the first thing on the list. But hey, this works too. Thanks so much!
|
|