1
tdmaster
Need help updating a DB Value after IPN Success
  • 2008/7/31 17:17

  • tdmaster

  • Just popping in

  • Posts: 5

  • Since: 2008/7/7 3


Senario:
I have set user access to WF-Downloads restricted for only those who have 100 or more posts.

I want those who pay the subscription fee through paypal to bypass this restriction by automatically updating their post value to 100 after payment (IPN??).

Attached below is my IPN script and I believe the action would take place under the following line "if(eregi("VERIFIED",$result))"


include_once("../../../../../mainfile.php");
include_once("../../../include/functions.php");

$gatewayConfig = getGatewayConfig('paypal');

if (isset($gatewayConfig['ipn_log'])) {
$h = @fopen($gatewayConfig['ipn_log'], "a");
}

//get global configuration information
include_once('../includes/global_config.inc.php');

//get pay pal configuration file
include_once('../includes/config.inc.php');

//decide which post method to use
switch($paypal['post_method']) {

case "libCurl": //php compiled with libCurl support

$result=libCurlPost($paypal['url'],$_POST);


break;


case "curl": //cURL via command line

$result=curlPost($paypal['url'],$_POST);

break;


case "fso": //php fsockopen();
log_ipn($h, "starting fso");
log_ipn($h, implode(",", $_POST));
$result=fsockPost($paypal['url'],$_POST);
break;


default: //use the fsockopen method as default post method

$result=fsockPost($paypal['url'],$_POST);

break;

}

//check the ipn result received back from paypal
if(eregi("VERIFIED",$result)) {
$str='';
foreach ($_POST as $k=>$v) {
$str.="$k=$v,";
}
log_ipn($h, $str);
log_ipn($h, $result);
include_once('./ipn_success.php');
}

else {
log_ipn($h, "ipn error");
include_once('./ipn_error.php');
}

if (is_resource($h)) {
fclose($h);
}

Any help would be awesome!!!



2
tdmaster
Hide or restrict download links
  • 2008/7/30 20:25

  • tdmaster

  • Just popping in

  • Posts: 5

  • Since: 2008/7/7 3


This is an awesome mod!!! I would like to do just one thing with it. Hide the Download/Mirror links from certain groups.

I would like all groups to include annonymous to be able to view everthing within the wf-downloads module, ie screenshots, details, descriptions, ratings, & reviews. When annonymous customers click on the download now/mirror links it will say "you don't have permission" and redirect to the registation or subscription page.

This will allow potential customers to browse all the downloads to see what is available before deciding to register.

Currently when I revoke the download access, annonymous users cannot even see any of the categories.

Please help?
-Tony



3
tdmaster
Xoops Hosting Just $2 per month
  • 2008/7/7 17:14

  • tdmaster

  • Just popping in

  • Posts: 5

  • Since: 2008/7/7 3


Get your XOOPS hosted with tons of scripts and free features for just $2 per month. This deal is unbeatable!

Look for yourself at
http://www.gethostedhere.com/



4
tdmaster
Re: Xoops Hosting Module
  • 2008/7/7 6:02

  • tdmaster

  • Just popping in

  • Posts: 5

  • Since: 2008/7/7 3


Thanks



5
tdmaster
Xoops Hosting Module
  • 2008/7/7 4:34

  • tdmaster

  • Just popping in

  • Posts: 5

  • Since: 2008/7/7 3


The long awaited Gorgeous XOOPS Hosting Module is here:

Check it out live and download it at:
http://www.gethostedhere.com/




TopTop



Login

Who's Online

244 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 244


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits