Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod Favourite Recipes
- » Vary module by referer
Vary module by referer
Vary module by referer
/* was the referer Kudzu? */
if ( $core_genius->check( "referer starts with http://www.kudzu/" )) {
/* show the module */
return 119; /* module id to return */
}
/* was the referer logged in Angie's List? */
elseif ( $core_genius->check( "referer starts with http://my.angieslist/" )) {
/* show the module */
return XXX; /* module id to return */
}
/* was the referer Vertical Search Works? */
elseif ( $core_genius->check( "referer starts with http://www.verticalsearchworks/" )) {
/* show the module */
return XXX; /* module id to return */
}
/* was the referer Service Magic? */
elseif ( $core_genius->check( "referer starts with http://www.servicemagic/" )) {
/* show the module */
return XXX; /* module id to return */
}
else return XXX;
Re: Vary module by referer
The PHP code above is just an example - in this case, 119 would be the module ID of the module to use if the referrer was a particular URL. You would replace XXX with the module id to use for each of the other URLs.
Stephen
- Index
- » MetaMod
- » MetaMod Favourite Recipes
- » Vary module by referer
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7645
- Newest User:
- foocd90
- Members Online:
- 2
- Guests Online:
- 168
- Online:
- melton7386, foocd90
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked