Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

[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

Edited By: metamodguy
18-Jun-13 06:04:57

paurray
Paul
Beginner Modder
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Simple Hide Menu Login/Register Confusion

I do not mean to be pushy... Anybody?

paurray
Paul
Beginner Modder
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Simple Hide Menu Login/Register Confusion

Weekend maybe someone has time?

Like I actually bought this plugin!

Me, myself and I.

paurray
Paul
Beginner Modder
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Simple Hide Menu Login/Register Confusion

Bruce? Tell me is this just me or are there only the 2 of us in here?

paurray
Paul
Beginner Modder
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Simple Hide Menu Login/Register Confusion

Great thanks Stephan

paurray
Paul
Beginner Modder
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1698
Total Polls:
6
Total Posts:
5944
Dormant:
User Info:
 
Total Users:
5595
Newest User:
gary099231
Members Online:
1
Guests Online:
526

Online: 
gary099231

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked