Hi there,

I have tried to use Token Filter module, which allows me to implement the value of token just by any input type. I have tried other token like "[site:name]" and other tokens, in which it works just fine in my custom block.

I tried to use the module with "[user:referral-link]" to show the referral link in a specific place I like, but the result is, the block doesnt show the value of the token, unfortunately it just shows "[user:referral-link]" as what I typed in the block.

My question is how do I know if token is right, but the module doesnt support? or the token name is not correct at first?

All suggestion will be appreciated!

Thank you in advance

Comments

Dave Reid’s picture

Did you try [current-user:referral-link]?

kilenearth’s picture

It works perfectly!

However I have tried to use "referring-user" token such as "[referring-user:name]", but I do not get anything as the expected value.

Does the "referring-user" attribute exist?

or do I have to
1) keep the "current-user" attribute in the hidden field of registration form, so that the referred user get the attribute by hidden field and
2) The data is recorded in the (new) current-user profile.
3) then we can get the value by using "current-user"

I believe that there should be a way to get the "referring-user" filed directly? Please suggest.

Thank you in advance :)

kilenearth’s picture

or anyway to get value from Cookies?

thx

kilenearth’s picture

I just found a cookie token which I can use with the Webform module.

which is
%cookie[referral_data]
which works just fine with the webform module, but not to show the referral data.

are there anyway I can use it show the referer' info/profile field?