Points on click to external url

More
2 years 10 months ago - 2 years 10 months ago #45596 by ourblok
I have a fabrik form that generates 3 URLs based on a parameter in the form's url.

Example:

someone goes to xyz.com/index.php/reviews?&reviews___member_id=456

The form generates 3 URLs based on the reviews___member_id (userid) parameter that look like this: The person looking at the form can click these links.
I would like to assign points to the person on the form clicking those links.

If it helps, I can give a class or an id to those links, but it looks like the links themselves ready have a parameter that can be referenced in _GET

What do you think is the best way to do this?
Last edit: 2 years 10 months ago by ourblok.

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #45597 by ourblok
In case it helps, here's what I've tried so far:
Code:
$gURL = '{reviews___googleurl}'; $fURL = '{reviews___facebook_url}'; $yURL = '{reviews___yelp_url}'; if (empty($gURL) || $gURL === "https://search.google.com/local/writereview?placeid=") { $gIMG = ""; } else { $gIMG = "<a href=\"".$gURL."\" target=\"_blank\"><img src=\"https://www.networkinaction.com/images/stars/google.png\" /></a><br /><br />"; }; if (empty($fURL)) { $fIMG = "" ; } else { $fIMG = "<a href=\"".$fURL."\" target=\"_blank\" ><img src=\"https://www.networkinaction.com/images/stars/facebook.png\" /></a><br /><br />"; }; if (empty($yURL)) { $yIMG = ""; } else { $yIMG = "<a href=\"".$yURL."\" target=\"_blank\" ><img src=\"https://www.networkinaction.com/images/stars/yelp.png\" /></a><br />"; }; $reviewMessage = "<h2>Please Post Your Review To One Of The Following</h2><br />".$gIMG.$fIMG.$yIMG.""; return $reviewMessage; if($_GET['placeid']){ $api_AUP = JPATH_SITE.'/components/com_altauserpoints/helper.php'; if ( file_exists($api_AUP)) { require_once $api_AUP; AltaUserPointsHelper::newpoints( 'plgaup_tapgoogle' ); } }

Please Log in or Create an account to join the conversation.

Time to create page: 0.321 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.