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.

 

How to Detect a phrase or tree words on a page - please help

How to Detect a phrase or tree words on a page - please help

Hi,
I am using
if ($core_genius->check("url contains mypage/news")
to detect refferal urls, but  now I need to identify a set of words on a page.  When a user ads a certain product and select a variation of that product, they are redirected to a checkout page and these words are printed on the page.

Example:
The selected Gender - Male
They selected age group - 20-29
So on the checkout page (HIKASHOP)  I: am getting
                     T-short Male Green 20-29
and i want to display a certain message for them.
------ My question - how do i detect:
Male
20-29
------and show a module only to them?
I tried something like: if ($core_genius->check("page contains Male 20-29")
and cannot make it work. Could you please correct?
Looking forward.
Thank you

alexmartin
Junior Modder
ranks
useravatar
Offline
31 Posts
Administrator has disabled public posting

Re: How to Detect a phrase or tree words on a page - please help

Hi Alex,

unfortunately core_genius doesn't have a mode where it detects page output. That's for complicated reasons, but basically it's because the page has to get rendered before you can get hold of the rendered contents. Modules (e.g. MetaMod) can generally get hold of the rendered content, but sometimes there's a catch-22 situation where the page has to render the module as part of the contents, so the overall rendered content is not ready in time for the module to reference it.

There's a recipe here that can get hold of rendered content in most cases. Try this and see how you get on:

http://www.metamodpro.com/metamod/recip … escription

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Total Posts Today:
2
User Info:
 
Total Users:
4371
Newest User:
kajha63871
Members Online:
1
Guests Online:
139

Online: 
dotcommz

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked