Hi,

I want to show the referrer of the current connected user in a block.

Does someone have a php snippet that can show this value?

thank you.

Comments

Kuldip Gohil’s picture

hi
i think you can get all info of the current user by

global $user;

print_r ($user);

Best Luck
Kuldip

okday’s picture

Thank you but the user referrer is not shown.

thank you for your reply

okday’s picture

I think that we will need to extract it via a php snippet.

shakethetv’s picture

try this :

    if($_SERVER['HTTP_REFERER'] != ''){
        echo "referer :  <b>".$_SERVER['HTTP_REFERER']."</b>";
    }

find more info here : http://fr.php.net/reserved.variables

shakethetv.com - lyrics - music

okday’s picture

Hi,

I need to show the refferer value taken from the "user referral" module.

My fault :)

thank you for your post.