Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » [solved] Simple Hide Menu...
[solved] Simple Hide Menu Login/Register Confusion
[solved] Simple Hide Menu Login/Register Confusion
Hello Support
Please advise what I am doing wrong.
I have 2 menus pages displayed in a menu module called “CB Top”
The menus are called Login & register respectively.
Both are set to Public Access.
After people have either logged or registered I want these menu points to disappear!
I have followed the documentation as well as I could.
http://www.metamodpro.com/chameleon/doc … -rule-form
and applied a rule that I found here :
http://www.metamodpro.com/forums/topic?id=495
But try as I may I can not get it to work!
This is what I am doing....
In the Chameleon Rules Menu :
Name Rule : Hide REG menu on login
Quick Rules : ##ignore’##
Menu Handling : Register
Content and Components :
Page type : Register
Users and Groups :
All logged in
PHP :
if (MM_LOGGED_IN) return true;
TRUE
SUCCEED Actions :
Unpublished Menus :
Register
I am guessing that I am missing something very simple.
My apologies if this has been covered before.
http://finalbug.net/
thanks in advance
Paul
18-Jun-13 06:04:57
Re: [solved] Simple Hide Menu Login/Register Confusion
Sorry Paul, been away overseas and had a very busy weekend. I'm back now! I do really want to help and I'm sorry the service was nowhere near as fast you you expected.
Ok, here's how to do it:
It's going to be a simple rule. Essentially, we are going to do a test to see if the user is logged in or not. If the user is logged in, Chameleon will remove the 2 items in the Succeed action.
So:
1 - disable your current rule and make a new one, just so we can start from blank.
2 - in the Users and Groups section, select "all logged in"
3 - Don't put anything into the Menu or Page Type or PHP sections on the left hand side. These would restrict the rule to only those pages, and that's NOT what you want. You want the menu items to disappear on ALL pages as long as the user is logged in.
4 - in the Succeed action, select the menu items you want to disappear, in the "unpublish menus" selector.
5 - save the rule.
That's all there is to it. Just keep it simple – "If user is logged in, unpublish the menu items!"
Cheers,
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » [solved] Simple Hide Menu...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 1
- Guests Online:
- 130
- Online:
- uistr4qx
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked