Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Hide metamod in register page
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.
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
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
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
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Hide metamod in register page
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7630
- Newest User:
- welch84998
- Members Online:
- 0
- Guests Online:
- 101
- 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