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.

 

Hide metamod in register page

Hide metamod in register page

Hi,
first sorry for my poor english.
I am working with metamodpro and jomsocial. My index page is mydomain.com/inicio and I show here a metamod for unregistered users, but when someone try to register a new account, the page for that is mydomain.com/inicio/register and I dont want shown the metamod there, but it appears. What can I do to hide in register page?
Thanks.

sursum
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Hide metamod in register page

Hi sursum,

You could use a rule like this:

if ( $core_genius->check("pagetype = none of reset, remind, register, login, user") ) return XX;
// replace XX with the module id of the module you want to hide on those pages.

I've included all the different page types that relate to registration, and you can remove any of these if you need to. (e.g. remind, user, reset).

Best regards,
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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Hide metamod in register page

Hi, thank you for the quick answer, but I have a problem.
This is the error when i try with the code you give me:

Parse error: syntax error, unexpected T_RETURN in /home/.../modules/mod_metamod/helper.php(524) : eval()'d code on line 1

I know that the problem is the sintax, and I tried to change it, but I can´t.
Can you help me?

Thanks you

sursum
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Hide metamod in register page

Did you paste in the code from above, directly, then replace the XX with a module ID number? Perhaps can you copy and paste the exact contents of your PHP box into your reply?

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10746
Newest User:
victor1234
Members Online:
0
Guests Online:
216

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