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] 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

smallbiz
Beginner Modder
ranks
useravatar
Offline
12 Posts
Administrator has disabled public posting

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 */
}

smallbiz
Beginner Modder
ranks
useravatar
Offline
12 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1675
Total Polls:
6
Total Posts:
5917
Posts this week:
6
User Info:
 
Total Users:
11577
Newest User:
owens65784
Members Online:
0
Guests Online:
149

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