Paid Subscriptions

Started by Grudge, August 12, 2006, 06:09:49 AM

Previous topic - Next topic

shari2007

Hey,

I installed the mod, but there is a blank space where the link should be (between registration and ban list, right?).

Anyone had this kind of problem before?

Thank you for your help

I have attached a picture.

Hunnenkoenig

Sorry but after smf search doesn't work, it's a pain to search the site with google, so I rather ask: How do I remove USD, EUR, GBP and add another currency to the mod?

--------------


@shary2007: paste this into your "Modifications.english.php" (or whatever language you use)

// Paid Subscriptions Mod
$txt['paid_subscriptions'] = 'Paid Subscriptions';
$txt['subscriptions'] = 'Subscriptions';
$txt['subscription'] = 'Subscription';
$txt['paid_subs_desc'] = 'Below is a list of all the subscriptions which are available on this forum.';
$txt['paid_subs_none'] = 'There are currently no paid subscriptions available!';

$txt['paid_current'] = 'Existing Subscriptions';

// Some errors for subscription mod.
$txt['paypal_could_not_connect'] = 'Could not connect to paypal server';
$txt['paypal_unverified_subject'] = 'Unverified Paypal Transaction';
$txt['paypal_unverified_body'] = 'A user attempted to add a paid subscription to your forum, but the transaction was unverified.';
$txt['paid_sub_not_active'] = 'That subscription is not taking any new users!';
$txt['paid_disabled'] = 'Paid subscriptions are currently disabled!';
$txt['worldpay_password_wrong'] = 'Payment ignored as WorldPay password is incorrect - please ensure you have the correct callback password set.';
$txt['2co_password_wrong'] = 'Payment ignored as 2co.com secret word is incorrect - please ensure you have the correct secret word and 2co.com ID set.';
$txt['paid_unknown_transaction_type'] = 'Unknown transaction type in ipn.php';
$txt['paid_missing_transaction_type'] = 'Cannot find transaction file %s.php';
$txt['paid_empty_member'] = 'Paid subscription handler could not recover member ID';
$txt['paid_could_not_find_member'] = 'Paid subscription handler could not find member with ID: %d';
$txt['paid_count_not_find_subscription'] = 'Paid subscription handler could not find subscription for member ID: %1$s, subscription ID: %2$s';
$txt['nochex_could_not_connect'] = 'Could not connect to nochex server';
$txt['nochex_unauthorised_subject'] = 'Unauthorised nochex Transaction';
$txt['nochex_unauthorised_body'] = 'A user attempted to add a paid subscription to your forum, but the transaction was rejected.';

infocom

#802
HI
I have installed this, it says its installed and applied. But there's no link anywhere to configure this? How do I access the settings for this?
Thanks

EDIT: Dont worry, I installed it manually now and its working. The install did not modify any of the core files which is why it didnt work.

infocom

#803
Hi
I have the issue with the 1970 date. And it seems Paypal IPN is not working as it states Pending Payment even though I have paid.
QuotePaid Member     Pending Payment      02/March/2009, 01:38:50 PM     01/January/1970, 01:00:00 AM

EDIT:

I think this is meant to happen... in Profile.php the endTime is not in the INSERT statement.

// Setup a pending entry if they haven't got anything.
db_query("
INSERT IGNORE INTO {$db_prefix}log_subscribed
(ID_SUBSCRIBE, ID_MEMBER, status, startTime)
VALUES
($_GET[sub_id], $memID, 0, " . time() . ")", __FILE__, __LINE__);


So I assume when it is not pending anymore it is updated to correct time, although I dont know this yet because Paypal IPN is not working and Pending Payment is in the status.

I've wasted hours on this mod.

Paracelsus

Try contacting Grudge, the mod author.

wandawill

Will this mod work with the treasury already installed ? I'm thinking about a paid section.

markym

I tried using this mod with SMF 1.1.8 and Tiny Portal 1.0 beta3  -- it installed fine -- appeared to be working but for some reason errors out when users try to view their profiles which is where all the information is for their Paid Subscriptions.  I'm using a theme called Darkbreak by Dziner Studio  --

Does anyone have this mod installed with my same versions and that theme or have any suggestions as to why it errors out in the members profiles?

drhamad

You need to provide more information... what error?  Screenshot?  Did you check over the install by hand, esp in the profile section?
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

markym

#808
Hi all I've located the error code and found the code area that it points to which is about Tiny Portal

error code when clicking on user profile in theme Helios Multi with smf 1.1.8 and TP 1.0 Beta 3 is saying ---I also had this same error on another theme too -- Parse error: syntax error, unexpected T_ELSEIF in Profile.php on line 254 and that line of code is here

// TinyPortal
   TP_fetchprofile_areas2($memID);
   
   // Add paid subscriptions.
   elseif (!empty($modSettings['paid_enabled']) && (($context['user']['is_owner'] && allowedTo('profile_view_own')) || allowedTo('moderate_forum')))
   {
      // This is needed incase user can't edit profile.
      $context['profile_areas']['edit_profile'] = array(
         'title' => $txt['profileEdit'],
         'areas' => array()
      );
   }

any help anyone might provide would be appreciated as I'm new to PHP and not sure what is wrong with the code or if it's an easy fix or a major fix needed to the mod-- thanks very much.

And yes, I checked over all the manual code and everything was spot on.

MMcGrad2

I have setup my ipn on paypal, but since that attachment doesnt work for the php file, can someone tell me what the php file should look like?

markym

Quote from: markym on April 11, 2009, 03:07:12 PM
Hi all I've located the error code and found the code area that it points to which is about Tiny Portal

error code when clicking on user profile in theme Helios Multi with smf 1.1.8 and TP 1.0 Beta 3 is saying ---I also had this same error on another theme too -- Parse error: syntax error, unexpected T_ELSEIF in Profile.php on line 254 and that line of code is here

// TinyPortal
   TP_fetchprofile_areas2($memID);
  
   // Add paid subscriptions.
   elseif (!empty($modSettings['paid_enabled']) && (($context['user']['is_owner'] && allowedTo('profile_view_own')) || allowedTo('moderate_forum')))
   {
      // This is needed incase user can't edit profile.
      $context['profile_areas']['edit_profile'] = array(
         'title' => $txt['profileEdit'],
         'areas' => array()
      );
   }

any help anyone might provide would be appreciated as I'm new to PHP and not sure what is wrong with the code or if it's an easy fix or a major fix needed to the mod-- thanks very much.

And yes, I checked over all the manual code and everything was spot on.

Update!

worked with a friend of mine who knows PHP very well and he found the error ...it had to do with the TP command in the middle of an if statement that was missing a { and was in the wrong place  -- one little tweak and now everything is working fine with the mod.

cheekylemon

Hi all.

I have added this to the forum I run, but I keep getting emails from Paypal...

An error occured whilst attempting to do a paid subscription. The error is shown below:
---------------------------------------------
Could not connect to paypal server

Also, users do not get changed to the membergroup I created. Have I missed something?

Any help will be greatfully received.

markym

Quote from: cheekylemon on April 14, 2009, 10:20:55 AM
Hi all.

I have added this to the forum I run, but I keep getting emails from Paypal...

An error occured whilst attempting to do a paid subscription. The error is shown below:
---------------------------------------------
Could not connect to paypal server

Also, users do not get changed to the membergroup I created. Have I missed something?

Any help will be greatfully received.

cheeky ..you have to be sure you set up your paypal link in the Paid subscriptions admin settings and you have to be sure you have all your settings correct in that area.

Note:
For subscriptions to be automatically updated for your users, you will need to setup a return URL for each of your payment methods. For all payment types, this return URL should be set as:

(you'll see a link and a click thru to take you to paypal to set up your link)

markym

#813
OK after finally getting this all set up and working on the front end, my first user sets up a recurring subscription which I got a notification from paypal but the mod did nothing to update the users record and I get this error message in my log two times

Unknown transaction type in ipn.php the there's a link to index.php

I have the paypal ipn all set up and directed to the proper link which I just verified again.

The users record remains the same as it was when I entered it manually it did not extend his subscription or change the date.   Is it possible the recurring subscription is an unknown type?  I'm using smf 1.1.8 with Tiny Portal 1.0 beta 3 and the latest sub mod .018  I'm going to check the parse for SMF 1.1.8 again --- but has anyone else gotten this error and if so how did you resolve it?

Also, I just realized this mods sub dates only extend out until 2010!  For those of us that can't move to SMF 2.0 yet especially if we use Tiny Portal we sure are going to have issues with the very well used mod. 

Any help would be appreciated -- has the modder abandon this mod?  Are there any experts in the forum using it that can offer some help?

Thanks.

cheekylemon

markym, I set up everything as I should have done, but still get the same problems as per your latest message.

For now I have removed the Mod, and am upgrading members manually as and when they pay. For this, I simply added the HTML from paypal into a TP block.

That will have to do me until I can get the auto upgrading bit to work.

JoannaGlass

I am getting an error.
An error occured whilst attempting to do a paid subscription. The error is shown below:
---------------------------------------------
Unknown transaction type in ipn.php

I have no paid subscribers. I had a test one and removed it. Is this an error I can ignore.

markym

Quote from: JoannaGlass on April 15, 2009, 03:56:30 PM
I am getting an error.
An error occured whilst attempting to do a paid subscription. The error is shown below:
---------------------------------------------
Unknown transaction type in ipn.php

I have no paid subscribers. I had a test one and removed it. Is this an error I can ignore.

Joanna ..I have the exact same error using SMF1.1.8 with Tiny Portal 1.0b3 and this mod installed. I ran all the queries and the front end is working fine. I have the paypal ipn correctly set up and I get the same error message you've noted above on every subscription. 

A friend and I have stared at the ipn.php for hours trying to find why it doesn't know the transaction type -- I'm about ready to give up such as cheeky did.

Is anyone else out there getting the unknown transaction type in ipn.php error with this mod?  Is there anyone out there that can help us before we go insane??

need an angel  .... O:)

Resourcez

Are you using your PayPal account Primary email in your SMF paidsubs settings?
If you have everything under control, you're not moving fast enough.
Bugs HereSupport HereDonationsProPackage Parser
TP 1.1 • SMF 1.1.21/2.0.9 • MySQL 5.6.23 PHP 5.4.42 Apache 2.4.12
(PMs not responded to - I provide a support site)

markym

Quote from: Resourcez on April 16, 2009, 07:30:48 PM
Are you using your PayPal account Primary email in your SMF paidsubs settings?

yes, the paypal stuff is fine, payments process through paypal and into my account but the ipn errors out when it gets to forum to the ipn.php file because it can't find the transaction type which it should know is paypal. It only gets about 12 lines into the ipn.php before it hits the code that tells it to generate that error message if/else statements

Resourcez

It errors because it cannot find $_POST info to decide whether it is a paypal or any other type of transaction.  Since you are using PayPal, your only interest is what is being or not being satisfied by the first IF statement - forget all the rest as they don't apply.

Clearly the paypal stuff is not fine and it is most likely that one of your PayPal account settings is incorrect in these areas.
- Payment Receiving Preferences
- Instant Payment Notification
- Website Payment Preferences
If you have everything under control, you're not moving fast enough.
Bugs HereSupport HereDonationsProPackage Parser
TP 1.1 • SMF 1.1.21/2.0.9 • MySQL 5.6.23 PHP 5.4.42 Apache 2.4.12
(PMs not responded to - I provide a support site)

Advertisement: