News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Paid Subscriptions

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

Previous topic - Next topic

meadwench

Quote from: drhamad on August 14, 2007, 01:20:43 PM
I'm fairly certain that isn't your issue... I'm pretty sur ethey don't have to use the same e-mail address... but someone correct me if I'm wrong.

Interesting. Because they can't subscribe unless they're registered, and so far about 70% of my subscribers go through with no issues at all. So I'm at a loss why the ones that are using a Paypal addy that is different are getting errors.

The code around line 213 in ipn.php reads:
if (!empty($modSettings['paid_email']))
paidAdminEmail($txt['paid_error_subject'], $txt['paid_error_body'] . "\n" . "---------------------------------------------\n" . $text);


So it looks like it *is* pulling the email from Paypal, and if that email is different than the email they registered with, it will return an error. What I don't know is how to alter this so it looks for the registered email......
Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

drhamad

Like I said, could be wrong... I apologize if so... I haven't looked into it too much.  And heck, right now, mine isn't even working (it used to), so take what I say with a grain of salt ;)
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

meadwench

I'd suggest completely removing the version of Paid Subs you're using now, and try a clean re-install. I know it works, so there must be something you missed in installing. Are you doing a manual install?
Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

drhamad

Quote from: meadwench on August 14, 2007, 02:10:24 PM
I'd suggest completely removing the version of Paid Subs you're using now, and try a clean re-install. I know it works, so there must be something you missed in installing. Are you doing a manual install?

Yeah, I was manually going from 0.16 to 0.18.
I *know* I'm missing the code that goes in Admin.php, because I can't find where it goes - if you have a chance, any chance you could show me a bunch of the code before or after it?

Still, it's strange that a function isn't defined...
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

meadwench

The code says:
<search for>
if (allowedTo('manage_bans'))
$context['admin_areas']['members']['areas']['ban'] = array($txt['ban_title'], 'ManageBans.php', 'Ban');
</search for>

<add after>
if (allowedTo('admin_forum'))
$context['admin_areas']['members']['areas']['paidsubscribe'] = array($txt['paid_subscriptions'], 'ManagePaid.php', 'ManagePaidSubscriptions');
</add after>


So I'd look for that.
Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

drhamad

Yeah, that's the problem - I don't see that anywhere.
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

drhamad

#566
ok I just grep'd it, found the paidsubs line (from v0.16) in Subs.php, not Admin.php, although it isn't exactly the same.  Doesn't make much sense.  I grep'd it, and the only place allowedTo('manage_bans') is is in Subs.php, not in Admin.php
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

meadwench

The 2 files in the mod that have the file modifications are paidsubs_v0.16.mod, and paidsubs_v0.16DE.mod. That is where I found that info. The first file doesn't modify admin.php, and the second file does.
Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

drhamad

#568
Quote from: meadwench on August 14, 2007, 03:34:03 PM
The 2 files in the mod that have the file modifications are paidsubs_v0.16.mod, and paidsubs_v0.16DE.mod. That is where I found that info. The first file doesn't modify admin.php, and the second file does.

My understanding is that the DE file is the one we should be using for v1.1, no?

Also: I just looked through the 0.16 (non-DE) file - I think this will solve my undefined function problem too.  But now I'm confused, I thought DE was the one to use... which one is which?  What is the difference?
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

meadwench

I don't know. You should probably ask Grudge, since he wrote the program. I installed mine using the installer, so I didn't have to make that decision.
Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

flint

#570
about to go live with this mod
smf is 1.1.3 theme is default for now
however the prob i have is after testing with sandbox the user name i used to test with did not get the account upgraded auto...is this because sandbox does not upgrade accounts on the forums? and if so will it auto upgrade when live?

this question may have been asked on here already but thats alot of pages to read
any help please
thanks
flint

p.s.
suggestion to smf: make a forum for this mod for help and to develop it more? (fantastic mod)

drhamad

Quote from: meadwench on August 14, 2007, 03:52:42 PM
I don't know. You should probably ask Grudge, since he wrote the program. I installed mine using the installer, so I didn't have to make that decision.

Last night I switched over the 0.16 non-DE file, and everything works fine now. So that's good at least ;)
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

WebWorm

#572
Does anyone have any idea how to disable auto-renewing for subscriptions that have already selected it? We've changed paypal accounts, but those who've selected auto-renew options aren't directed to the new PP account, but to the old one, and that's no good.

Any help on this would be appreciated!

Lekter

Is this the mod that is being used in our profiles here?

MoreBloodWine

@lekter as far as i know yes but a better more well kept version.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


mclane

Now that the Joomla/SMF bridge is busted... I need a way to collect subscriptions and am looking at this.

If I were to install this, what version would I need to install? I am running SMF 1.1.3

Thanks

Adam

mclane

Another question...

Will I be able to go in and set up my existing paid subscribers? I have about 300 paid subscribers already with various end dates on their existing subscription. If this was going to be "a solution" that would automatically handle this... I'd have no problem at all creating the 300+ custom changes.

Adam

chovy

@bump -- what is the status? Is it still actively developed? Anyone know if it works with JSMF Bridge 2.2.2.1?

Looking for something that isn't going to leave me hanging once I get dependent on it.

chovy

#578
Is it possible to use this mod with more than one site? I notice that I have to set an IPN return URL, and I think PayPal only lets me pick one url for all payments/subscriptions.

update: it does look like IPN supports the "notify_url" parameter in the subscription request...perhaps a good mod to this code is to let us define in the SMF interface the URL to use...otherwise, from within paypal, I can only define one return url.

Look on page 30 of the IPN pdf from PayPal's site.

tam2oo5

The problem im getting now is when a user subscribes it says pending payment, even when i have received the payment via paypal.

Advertisement: