Pay with Social

Hi,

Extension is working good but I have to pass through an URL parameter in the link of the download button. The URL parameter is passed tot the page where Pay with social is on and normally I can use <?php echo $_GET?> to get the parameter.

Tried to use this in the link:

{paysoc}281|||tweet|http://www.website.com/betalen50?<?php echo $_GET?>|nl_NL{/paysoc}

But the PHP code is not evaluated and given as parameter as in: www.website.com/betalen50?<?php echo $_GET?>

Can anyone tell me where I can change this please?

Regards, Peter.
10 years 10 months ago #1 by Peter Pruimboom

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

  • Posted by TemplatePlazza (5263) Offline
Hi Peter, Pay with Social is a content plugin, so it won't execute any php code you type inside the article content. Can you tell me what you're trying to achieve?
10 years 10 months ago #2 by TemplatePlazza

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

PWS is on a page that is calle with an URL parameter. This parameter must be added to the link PWS is going to when the button is made active after a tweet has been made.

I think paywithsocial.php must be altered but I do have little knowledge of PHP.
10 years 10 months ago #3 by Peter Pruimboom

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

  • Posted by TemplatePlazza (5263) Offline
I'm not really sure about this but you can try to change lines 270 in paywithsocial.php from :
$download_url 	= $this->params->get('download_url');
to
$download_url 	= $this->params->get('download_url') . $_GET['teamcode'];
10 years 10 months ago #4 by TemplatePlazza

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

You were close but actually it is the $path variable on line 325 in paywithsocial.php that was to be modified. Works like a charm.

Thanks for the help.
10 years 10 months ago #5 by Peter Pruimboom

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

  • Posted by TemplatePlazza (5263) Offline
ok, glad it helps ;)
10 years 10 months ago #6 by TemplatePlazza

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

Powered by Kunena Forum