Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] Show a login module based on...
[solved] Show a login module based on previous site a user was on?
[solved] Show a login module based on previous site a user was on?
I need to show a login module based on the site a user has just come from.
For example, if a user comes from a specific page on client's Intranet, I want to show them the Login module -- otherwise, the Login module is not displayed.
How can I do this with MetaMod Pro? I see I could show a menu item using the Referrer in Chameleon, but I don't see a Referrer option in MetaMod
Re: [solved] Show a login module based on previous site a user was on?
Found this in the Recipes, and tweaked it so it works for me:
if ( $core_genius->check( "referer starts with http://www.example.com/full-path-to-pag … from" )) {
/* ... and show the module */
return XXX; /* replace XXX with module id to return */
}
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] Show a login module based on...
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8026
- Newest User:
- rivas48750
- Members Online:
- 1
- Guests Online:
- 95
- Online:
- rivas48750
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked