I'd like to give points to users for sharing content via ShareThis.

Is the following possible (taken from https://drupal.org/comment/5671002#comment-5671002:

Yes but we can implement referrer.

I have the following scenario in mind:
A user click share on a page like this:
http://example.com/node/123

and I want the service link url to be:
http://example.com/referrer/[ref_code]/node/123

The referral function will redirect after referrer cookie is set to:
http://example.com/node/123

I like sharethis.

Is something like this possible?

Comments

SocialNicheGuru’s picture

Issue tags: +add userpoints, +userpoints
gaofengzzzz’s picture

Hi,
You can try to use MODULENAME_preprocess_sharethis to alter variables before passing to theme function.

Thanks.

SocialNicheGuru’s picture

@gaofengzzz, where is "MODULENAME_preprocess_sharethis" defined. I do not see it in the sharethis module folder.

thanks

Gaofengzzz’s picture

@SocialNicheGuru, "MODULENAME_preprocess_sharethis" is a hook. You can implement in your custom module or your template.php file. Here is the introduce : Introduction to Drupal Preprocess & Process Functions .

Hope it helps.:)

VladimirAus’s picture

Status: Active » Closed (outdated)

Issue was inactive for more than 9 years. Closing.
Feel free to reopen if you feel that it is still relevant. ⏳