[DEV] Group subscriptions mod released.

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
webmedic
Registered User
Posts: 323
Joined: Tue May 28, 2002 2:37 am
Contact:

Post by webmedic »

well I could at least post the paypal_ipn part I suppose but really the admin interface for the other part is not in working condition right now. The ipn script is the part that you would need anyway.

You can find it here:

http://www.webmedic.net/-vp6522.html#6522

Legolas-ga
Registered User
Posts: 115
Joined: Tue Jan 07, 2003 8:39 am
Location: Costa Mesa, CA - but, moving to Corona, CA
Contact:

Post by Legolas-ga »

I used the current code.. Still not doing some of the IPN's... Example:

Code: Select all

txn_type  ->    subscr_payment
payment_date    ->      03:01:01 Sep 22, 2004 PDT
subscr_id ->    S-9999999
last_name ->    Smith
option_selection1       ->      99 cent event! One day for 99 cents!
option_selection2       ->      1390
item_name ->    99 cent event! One day for 99 cents! Group
payment_gross   ->      0.99
mc_currency     ->      USD
business  ->    email@email.com
payment_type    ->      instant
payer_status    ->      unverified
verify_sign     ->      aksjdfaksjdflksjf
payer_email     ->      subscriber_email@hotmail.com
txn_id  -> 9999999999999
receiver_email  ->      email@email.com
first_name ->   Mike
payer_id  ->    999999999
option_name1    ->      Group name
receiver_id     ->      9999999999999
option_name2    ->      For User ID
item_number     ->      1674
payment_status  ->      Completed
mc_fee  -> 0.33
payment_fee     ->      0.33
mc_gross  ->    0.99
notify_version  ->      1.6
And, of course, the groups_subscriptions_log doesn't contain the payment info... I added the following code to do the above:

Code: Select all

[ FIND ]

if (phpversion() <= '4.0.6')
{
    $_SERVER = ($HTTP_SERVER_VARS);
    $_POST = ($HTTP_POST_VARS);
}

[ AFTER ADD ]
    
                        $LogFilePath = $phpbb_root_path . 'pplog/log.txt';
                        $LogFileString = "\n*******\n" . dbgput($HTTP_POST_VARS);
                        $aFile = fopen ( $LogFilePath, 'a' );
                        fputs( $aFile, "$LogFileString\n" );
                        fclose ( $aFile );
 
[ FIND ]

?>

[ BEFORE ADD ]
function dbgput($obj,$pre = '') {
    $msg = '';
    if (is_array($obj)){
        foreach($obj as $key => $data ){
            $msg .= "\n$pre$key\t->\t";
            if (is_array($data)){
                $msg .= dbgput($data,"$pre\t");
            } else {
                $msg .= "$data";
            }
    
        }
    } else {
        $msg = $obj;
    }   
    return $msg;
}
Create a new dir in root named, 'pplog' and chmod 777

Legolas

User avatar
webmedic
Registered User
Posts: 323
Joined: Tue May 28, 2002 2:37 am
Contact:

Post by webmedic »

thank you. I'm not sure whay you are having issues. I was at first but worked it all out so that there were no issues at least on my server. I will look at this and see what can be done.

User avatar
Sammy Sandbag
Registered User
Posts: 184
Joined: Fri May 23, 2003 2:07 am
Location: Savannah, GA
Contact:

Post by Sammy Sandbag »

Any news with this mod? I'm still very interested.
-Sammy

PePiPoo
Registered User
Posts: 7
Joined: Sat Mar 20, 2004 2:27 pm
Location: Wokingham, UK
Contact:

Post by PePiPoo »

Thanks for taking on this mod, it works really well on my site!

One issue still present from Omen's version is with handling of different currencies. Although you can choose which PayPal currency is used, the currency symbol is hardcoded to '$' in lang_groups_subscriptions.php - subscription rates are then displayed as (for example) $123.45 regardless of the actual currency being used.

It's not a major issue as I just changed the hardcoded symbol to '£' for my board, but non-US users need to be aware of this.

khisanthax
Registered User
Posts: 443
Joined: Sun Mar 02, 2003 1:49 am

Post by khisanthax »

I wanted to make a promo price, and then change the price later but for those members who signed up for the promo I don't want to change their price. since this uses groups can I set a group that's 10.00 a month, close that group so no one else can join and then make a new group that's 20 a month for new subscribers from that moment on?

khisanthax
Registered User
Posts: 443
Joined: Sun Mar 02, 2003 1:49 am

Post by khisanthax »

can you allow subscriptions into groups? For example $10 for group A, $10 for group B, $20 for group C, $20 for group D. Each group is for a month.

User avatar
Omen
Registered User
Posts: 124
Joined: Thu Dec 26, 2002 5:50 am

Post by Omen »

hmm... i see someone has continued developement on my mod...

i'll have to download this and see where it was picked up at...

khisanthax
Registered User
Posts: 443
Joined: Sun Mar 02, 2003 1:49 am

Post by khisanthax »

I'm very slow, so I just noticed the "Google Answers" feature of their site. It got me to thinking, it is possible to somehow to make the membership for 1 topic instead of a time period? If you could, then you would be able to charge a person for having a question answered, and then include subscriptions for 1 topics answered, 3 topics answered, etc. Is it possible?

BlueStream
Registered User
Posts: 44
Joined: Sat Feb 25, 2006 12:18 pm

Post by BlueStream »

links no longer working.. please lock..

my search continues..

Post Reply

Return to “[2.0.x] MODs in Development”