I'd like to make a menu item to a link that is only visible to user=admin "friends" and invisible to all other users!
Or a menu tab that is given access to certain users and invisible to others..?
ex. I have a blog page that is only to friends but want to make short cut menu item to the blog post that only them friends can see when there logged in.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- LT@latrevino
LT - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- LT@latrevino
LT - 0 likes
- JohnnyD@JohnnyD
JohnnyD - 0 likes
- LT@latrevino
LT - 0 likes
You must log in to post replies.user_is_friend() http://reference.elgg.org/users_8php.html#a0fc0e61d68dadc9750e159eb07ff365e
elgg_register_menu_item() http://reference.elgg.org/engine_2lib_2navigation_8php.html#a344445364078d03607904c44bad36c1c
? ok i'm not a coder so how would i input this and where?
Create your own plugin according to these instructions: http://docs.elgg.org/wiki/Plugin_development
And add the code into the yourplugin_init() function.
Wish i knew how to do all this stuff but not a clue of where to start but thanks for the heads up!
@LT
I felt the same a few months back and have learnt a lot with the help of some great Elggers on here.
I started by by doing this hello world widget tutorial http://docs.elgg.org/wiki/Tutorials/HelloWorld and reading the plugin development pages that Juho linked to.
thanks guess i got some homework to do! lol