By Andy on Thursday, 23 November 2017
Posted in Vanilla
Likes 0
Views 855
Votes 0
Hello. I can't work out how to show the 'LOGIN' button when a user is not logged in.

I want it to appear exactly where the topesmenu / topnotification positions are (to the right of the search bar)

Can you advise the best way to achieve this? Would it be a module or a code hack somewhere?

It seems like important basic functionality to have a login button nice and clear on the screen.
Hi Andy,

Actually the position topesmenu was hidden to guest/public user where you need to customize/edit the template file:
.../templates/vanilla/features/topesbar.php
and remove the checking http://take.ms/vDSYy
and also we have did some module override for (easysocial dropdown menu) where you need to rename the module in the folder:
.../templates/vanilla/html/...
and it will shows the exact easysocial dropdown fuctionality on that position http://take.ms/GfgLk

You're suggested to backup the file that you want to customize beforehand for precaution
·
Thursday, 23 November 2017 11:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Fadhli... Thank you so much for your help here....

I've done the first bit with success (removing the IF statement in the topesbar.php file)..

Can you just help clarify what I need to do for the second step... are you saying just to remove that override file by renaming the folder to something else? So I change templates/vanilla/html/mod_easysocial_dropdown_menu to /somethingelse

...If I've understood that right do I lose any other benefits that you guys may have added into the default.php file in that folder? I'm wondering if I should change a bit of code in there instead of renaming the folder.

Thanks!
·
Friday, 24 November 2017 04:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah I think I've got it now... the Vanilla module override default.php doesn't have the code that generates the login / register buttons which is near the end of the file... so I've taken it from the core module default.php and added it in to the Vanilla default.php

All seems to work perfect now.. I have a Vanilla template which DOES show login / register buttons to guest users...

Happy to help anyone else implement this as I suspect it will be a very common wish! Thanks again Fadhli for helping me get this far.
·
Friday, 24 November 2017 06:48
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Andy Glad to hear your issue has resolved.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.

Have a nice day ahead
·
Friday, 24 November 2017 10:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post