NEED HELP PLEASE!

NEED HELP PLEASE!

Hi

I have been searching for something that allows this:

All 300 of my users on my 1.7 site have to go to a particular page, Page A, then they get directed to another page. I need them to once landed on page A, not to allow them to go it it again, therefore the limit == 1.

PLEASE PLEASE can someone tell me which of these compnents to use as well as a little bit of help with what code to write to allow EACH user to only view the page ONCE

Thank you for the great extension!!! Hopefully I will have an answer by tommorrows deadline!!!!

Re: NEED HELP PLEASE!

[moved to MetaMod forum]

You can do this very easily with Chameleon, but with a few lines of code you can do this with (free) MetaMod as well.

With Chameleon:

1 - create a new rule that "detects session variable A" in the conditions (use the dropdown), AND detects the exact page 'A'. This might be via the URL selector, or the menu item selector, or via the article selector that can detect a certain article by id number... whatever works best for you.

2 - In the "SUCCEED action", use the redirect dropdown to redirect to page 'B'.

3 - create a second rule that detects the exact page 'A' using the same selectors in the 1st rule, except don't do the "detect session variable A" thing.

4 - in the SUCCEED action in the 2nd rule, use the dropdown to "Set session variable A".

Ok, so here's how it works: the each time a user views a page, rule 1 gets triggered. It checks to see if the user is on page 'A', AND that session variable A. So if the user is not on that page, or is on that page for the 1st time, it won't redirect, but goes on to the next rule.

Rule 2 checks to see if the user is visiting page 'A'. If s/he is, then the session variable gets set.

Now that the session variable is set, the next time the user goes back to page 'A', it will trigger the redirect.

How to do this with MetaMod:

1 - make a new MetaMod module and assign it to an inconspicuous position e.g. in the footer or someplace like that. It won't have any output, but can sometimes still affect the layout.

2 - in the PHP code of the MetaMod, use the following. This recipe detects the page via URL, but you can change that if you like.