http://vanillaforums.org/addon/addmenuitem-plugin
This addon adds 3 extra menu links. Though they are not viewable to unauthenticated users. How would I go about setting the permissions on these? If not, is there possibly someone who could point me in the right direction to adding a few more menu items myself and allowing them to be viewable to all users/roles?
Thanks
If you want unauthenticated users to see it...
comment this line in default.php
if ($Sender->Menu && $Session->IsValid()) {
add this line
if ($Sender->Menu) {
like so
// if ($Sender->Menu && $Session->IsValid()) {
if ($Sender->Menu) {
let me know if that works for you.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
Answers
peregrine, Thank you very much, that worked perfectly. :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I aim to please. glad you "liked it"
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thank you, I was also looking forward to change this behavior and just show my links to everyone regardless of being logged or not.
Additional info, I also commented the line where the session is grabbed: //$Session = Gdn::Session();
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Made like that :) it's working, thank you for this tip
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •ok, I 'll do it :) thank you
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •