Recent Topics

1 Nov 04, 2015 16:04    

I am running B2Evo version 6.6.5 and in the past was able to keep a widget hidden until a user logged in. I am using the site for press releases and have a link that only members of the press are supposed to see after they login. Unfortunately right now it is visible for anyone who visits that blog to see. How can I set it to only be visible to those who log in? It is a menu link widget that links to an external site. I know it was set in the past to work in that manner, but cannot figure out how to set it now.

Thanks

2 Nov 06, 2015 19:03

@blackfire43 maybe you would like to use this plugin: https://github.com/mgsolipa/b2evolution/commit/8f2714e26c42eeff5f6878456966e965ab53f0e4.

After installing (http://b2evolution.net/man/plugins), it adds a new widget named Private Menu Links that works exaclty as the Menu Links does but its Front-office output is restricted to logged in users only.

You can also download the attached file below.

Please consider that I didn't test it extensively, so let us know how is it going.

Regards!


Attachments:

3 Nov 07, 2015 00:35

If it's just a matter of not seeing the link and it's ok to still have it in the HTML code, it's possible to make in invisible by default and write a CSS rule to reveal it if a user is logged in. Something like:

body.loggedin xyz { 
 display: block;
}

4 Nov 09, 2015 15:18

Thank you for the replies. I did try the private menu links plugin and that seems to be working fine. I did not have a chance to try the CSS option, but plan to so I have options for future use.


Form is loading...