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.

 

New MetaMod not displaying...

New MetaMod not displaying...

Joomla! 2.5.3 Stable [ Ember ] 15-March-2012 14:00 GMT

MetaMod v3.9, 2012-03-12
MetaMod Pro plugin v3.9, 2012-03-12 is installed and enabled.
JomGenius v13 is provided by MetaMod

http://www.sp-test.stockpinger.com/

The SP site has a public menu (Public Data) viewing which I only want to display to un-registered users

The subscriber menus I would like to show relevant to subscribers subscription are:-

Bronze
Silver
Gold
Platinum

I have set up the id for the Public Data module and to show only to un-registered users, however it is not showing in the selected position, Left.

If you could explain how to set these up I would be grateful.

Pinger
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: New MetaMod not displaying...

1 - prepare your "target" module(s), the module(s) that you want to display conditionally. Keep them published, but set them to "no menus". It doesn't matter what module position they are set to.

2 - prepare your MetaMod. This must be published and set to the "left" position. It must also be set to publish on some or all menu items.

3 - To test that your MetaMod is working, you can set the MetaMod to Debug mode. This will then display some debug info inside the "left" position on every page (menu item) that the MetaMod is assigned to.

4 - In the MetaMod, click on the radio button for "display quick modules to: non-logged-in users only". Then enter the module id of your target module into the "Quick module id or position include" box, and save the MetaMod.

That should now display the target module ONLY for non-logged-in users.

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
3328 Posts
User info in posts
Administrator has disabled public posting

Re: New MetaMod not displaying...

Many thanks for that Stephen, the Public data is doing what it should do, but the subscription levels are not.

What I've done:-

Set up user groups:- Bronze, Silver, Gold & Platinum under the Parent - Subscription Access Level

Show Quick module(s) to - Logged in Users only

Auto-enable included modules? - Modules specified by ID

Quick module position or id include - 213,222

PHP - if ( $user->usertype == "Super Administrator" || $user->usertype == "Platinum" ) return 213;

Exactly the same for Silver, but with PHP code - if ( $user->usertype == "Super Administrator" || $user->usertype == "Silver" ) return 219;

This works ok for Platinum login, but with Sliver login you also see the Platinum menu.

Question - is there a certain way I should set up the User Groups and Access Control Levels please?

Pinger
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: New MetaMod not displaying...

Ok, sure, if you want to combine the 2 things in 1 MetaMod then you have to set it up a little differently.

1: Show Quick module(s) to "all users"

2: Leave the "Quick module position or id include" box completely blank

3: use the following PHP:

// handle non logged in users:
if ($user->id == 0) return "213, 222";
// handle superadmin, guessing that you want him to see both?
if ($core_genius->check("groups = Super Administrator")) return "213, 219";
// handle platinum
if ($core_genius->check("groups = Platinum")) return "213";
// handle silver
if ($core_genius->check("groups = Silver")) return "219";


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
3328 Posts
User info in posts
Administrator has disabled public posting

Re: New MetaMod not displaying...

Many thanks for your help Stephen

Pinger
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1686
Total Polls:
6
Total Posts:
5933
Total Posts Today:
7
User Info:
 
Total Users:
4432
Newest User:
kinggambling14
Members Online:
0
Guests Online:
145

Online: 
There are no members online

Forum Legend:

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