Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #2
gaofengzzzz CreditAttribution: gaofengzzzz commentedHi,
You can try to use MODULENAME_preprocess_sharethis to alter variables before passing to theme function.
Thanks.
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commented@gaofengzzz, where is "MODULENAME_preprocess_sharethis" defined. I do not see it in the sharethis module folder.
thanks
Comment #4
Gaofengzzz CreditAttribution: Gaofengzzz commented@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.:)
Comment #5
VladimirAusIssue was inactive for more than 9 years. Closing.
Feel free to reopen if you feel that it is still relevant. ⏳