I have a site where I need to display a module based on the URL which the user has typed into their browser.

If the user types in thisdomain.co.uk they will be redirected to thenewdomain.co.uk/camps where I want a pop up/lightbox to be shown.

If they land directly on thenewdomain.co.uk/camps the pop up should not be shown.

Can this be done through jQuery or PHP and how can I load the module based on this?

1 Answer 1


You should be able to do it with Nonumber's Advanced Module Manager Pro version, as it allows adding custom PHP to determine if a module will be loaded or not:


In that PHP check, you'd use $_SERVER['HTTP_REFERER'];. You have an example that involves that variable here:


More info about that variable here:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.