News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Paid Subscriptions

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

Previous topic - Next topic

meadwench

The link is there, but for whatever reason, your /Themes/default/languages/index.english.php didn't get updated with the new links. That is why it is showing blank.

Did you get any warnings when you installed it? If not, then you'll need to unzip the subscriptions package, open up the install file and find the info that needs to be added to index.english.php.

The other alternative is to completely uninstall the package and then re-install, paying attention to any warnings.
Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

jaeca

No, I didn't get any warnings at all.  I created the sub and temp directory as described in previous post.  And everything checked out to be fine when installing and after installing.  I'm just missing the link.  Like the screen caps posted in 3-4 previous posts before me.  There is a space there between Registratrion and Ban Users.

If I were to edit the index.english, what would I need to edit?  I'm in a custom theme, should I copy out the index.english over?

meadwench

That's the problem, you're in a custom theme. You need to manually modify all files in your custom theme that are changed in the default theme.

You want to make sure there is a file called ManagePaid.english.php in your languages file for your theme. That is the text for this package, and it is contained in the tar file for the package. You might also look in your default them languages directory for a copy of, if you've already installed.

It sounds like you didn't make all the manual changes needed to be made. I'd go through it step by step. I can't help you with that, I use  a modified default theme, so it created automatically for me.
Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

jaeca

Odd. even in the default theme, its not showing up. =)

jaeca

Yes!  I got it working.

I just merged the language files together and it worked.  Copied the files required in the default template over, except that in custom template, my language file for modification.english.php already has stuff in it.

Just have to merge the two and upload, and you'll get paid subscription on the left hand side!

For those who need it, thats the solution!  and it works flawlessly now

jaeca

oh its me again.  One problem solved, now another...

I want to allow a certain membergroup (consist of 2-3 board members) to be able to "add" the subscription to the users account... instead of using the administrator.

Or could you set multiple administrators?

jaeca

sigh, i think i answered my own question.  you could set multiple admins.

hmm, could you duplicate the admin level?  so they dont send out newsletters to me?  when im the webmasdter.

sparkster666

I really need this mod but it fails on install

If I posted my subs.php would you be able to help me with this problem??
That is the only fail
Longisland Game Servers
www.ligs.us

deycha

Wait, now i am totally lost...
Jaeca, you said above that you created some sub and temp directories. Where did you create them, and what should be in them. Could you please describe step-by-step which files have you modified and where have you uploaded them and for which template, please. Thank you.

jaeca

ok.  I'm using a custom template that was built by a friend taht wasnt based off the default one, its one of those fresh nothing in it ones.

So you have uploaded the patch into the server, but you haven't installed it.

For example sakes, we use http://www.abc.com/forum/ [nofollow] as your directory of your forum

We use an FTP, and create a folder called "subs" in the main directory of your forum.. (/forum/subs)

Than we create another directory called "temp" in the Packages directory. (/forum/Packages/temp) ... don't ask why that needs to be created but than it gets deleted automatically after.

So now, we install the module in the administration.  So you would see:


1. Extract File ./Sources/ManagePaid.php 
2. Extract File ./Themes/default/ManagePaid.template.php 
3. Extract File ./Themes/default/languages/ManagePaid.english.php 
4. Extract File ./subs/ipn.php 
5. Extract File ./subs/worldpay.php 
6. Extract File ./subs/paypal.php 
7. Extract File ./subs/nochex.php 
8. Extract File ./subs/2co.php 
9. Extract File ./subs/authorize.php 
10. Execute Code paidsubsdb.php 
11. Execute Modification ./index.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/Profile.php Test successful
14. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful


From there, you know all the /Themes/default/* files are all copied into the default theme directory and those are the files you would need to make it work.  (we'll do this in a later step)

So now, we hit install.  It should be successful, but than you probably don't see the Paid Subscriptions link between Registration and Ban List.

That's fine!  It installed, thats the key.

Next, taking an FTP, go in and download the following:

/Themes/default/ManagePaid.template.php 
/Themes/default/languages/ManagePaid.english.php
/Themes/default/languages/Modifications.english.php

Upload those files according to the directory structure back into your template.  BUT! Don't upload the Modifications.english.php yet!

Rename it to like Modifications.english2.php or something, download the Modifications.english.php within your Themes/YOURTHEME/languages/

Now, pretty much you need a little knowledge of coding, just compare the two, and merge them into one file.

Upload that file, and you should be able to see "Paid Subscriptions".

Yay! 

Now, we might not be done, because some of you have tried to install this file multiple times, it actually wrote to the "Profile.php" in the /Sources/ directory so when viewing a profile, you might get an unexpected error.

So what you have to do is go open up the Profile.php, and chances are there would be a duplication of subscriptions() lines, or subscriptions.  And there would be multiple "Now for the real subscription" comments, well, you have to search and compare, and delete the ones that are duplicated.  Some have told me that deleting the first subscription duplication solved it already, but I deleted it all.

So do a CTRL+F (Find) and look for "Subscriptions".  If they have 2 lines that are identical, remove one of them.  BUT please make a backup before you do this incase you screw something up.

That's it! 

Enjoys!

jaeca

If you are still having problems, before installing.  Make anything related to *package*.php inside the source directory all CHMOD 777.

deycha

Hmm.... strange i still can't get it to work :( :(
I repeated the whole process 3 times. Each time i even deleted the whole smf board and then reinstalled it as a clean installation... I guess that i couldn't make something wrong if i repeated it 3 times... Anyway, thanks for your detailed guide, it will probably be of use to someone else. By the way i downloaded few templates from smf site and not a single one of them didn't have Modifications.english.php?

tam2oo5

The problem im having is that it just wont accept talk back from paypal. All the installation goes fine , i have option to enter paid subscription in profile. After i complete a subscription and pay it via paypal . I then return to the site and the member status has not changed nor has the site picked it up. This is with the default theme, does anyone have any idea atall what is wrong?

sparkster666

I would just like to say thanks this mod is great no problems so far. I have 2 questions

1. How can I edit the Confirm Payment page where you hit the order with paypal button. I would like to add some more info to that page

2. Is there a link I can use to bring people to there subscription page so they dont have to look for it in there profile??
Longisland Game Servers
www.ligs.us

meadwench

Hmm. Mine is working, but I'm getting *lots* of undefined index errors for allow_edit_subscriptions.

I'm using the default template, and have put allow_edit_subscriptions in the global declarations, but it won't stop.

Anyone have any ideas?
Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

Irfan

Hi
I am trying to install this mod and is having problems with it. The install shows successfully completed. But i cannot see the option admin panel. on looking at the log, there is the error message it gives:

Apply Filter: Only show the errors with the same message
8: Undefined index: paid_subscriptions
File: /home/faruki/public_html/Sources/Subs.php
Line: 2806

Line 2806 is:
      $context['admin_areas']['members']['areas']['paid_subscriptions'] = '<a href="' . $scripturl . '?action=paidsubscribe">' . $txt['paid_subscriptions'] . '</a>';

I am using SMF 1.13 and the latest version of this mod.

Can anyone help ?

Thanks

Dainis

Sorry for the formatting, but my copy paste messed this up, I fugure these points will make it easier for others to do this install:

0) Backed up my DB

1) Went to the package manager and copied in the URL of the
paid subscriptions mod...didn't work, got this error:
The package manager currently allows only these file types:
zip, tgz, tar.gz.

2) Dowloaded paidsubs_v0.18.tar.gz from
http://custom.simplemachines.org/mods/index.php?mod=413

Why? Because it looks to me that SMF 1.1.2 with the mod version
18 is the most "stable."

3) Package uploaded successfully
Package has been downloaded successfully

Paid Subscriptions    [ Apply Mod ] [ List Files ]

...makes me laugh...both upload and download are successful!

4) Clicked Apply
--filled in my login info automatically and asked me for my
PSWD, which I typed in and pressed (I can't remember the name
of the button) Submit or something

5) This screen came up:
Apply Mod
Please remember to always make regular backups of your sources
and database before installing mods, especially beta versions.
Installation Readme
This modification is currently in beta - do not use it unless
you are sure you know what you are doing!
This modification will add the ability to charge users a
subscription to join a membergroup for a defined period of
time.

Currently this only works with paypal, and maybe
worldpay/authorize.net. To install simply run the modification
and then enable the mod from the Settings tab in "Paid
Subscriptions" from the admin center.

Note for paypal to work you need to setup your account to
direct your IPN to this script. To do this login to paypal,
click "Profile" and then select the "IPN" link from merchant
tools. Enter the URL of your forum, and then the subs/ipn.php.

For example:
http://www.simplemachines.org/community/subs/ipn.php
This is required for paypal to notify the forum that the
payment was received.

Written By Matthew Wolf (a.k.a Grudge) - [email protected]
http://www.mymods.co.uk
Copyright 2005 - 2006 - Neither this package or any of it's

contents may be distributed without authorisation.
Install Actions
Installations actions for "Paid Subscriptions":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/ManagePaid.php    
2.    Extract File    

./Themes/default/ManagePaid.template.php    
3.    Extract File    

./Themes/default/languages/ManagePaid.english.php    
4.    Extract File    ./subs/ipn.php    
5.    Extract File    ./subs/worldpay.php    
6.    Extract File    ./subs/paypal.php    
7.    Extract File    ./subs/nochex.php    
8.    Extract File    ./subs/2co.php    
9.    Extract File    ./subs/authorize.php    
10.    Execute Code    paidsubsdb.php    
11.    Execute Modification    ./index.php    Test successful
12.    Execute Modification    ./Sources/Subs.php    Test

successful
13.    Execute Modification    ./Sources/Profile.php    Test

successful
14.    Execute Modification    

./Themes/default/languages/Modifications.english.php    Test
successful

6) Clicked "Install Now"

7) This info comes up:
Extracting
Extracting Package
The package was installed successfully. You should now be able
to use whatever functionality it adds or changes; or not be
able to use functionality it removes.


8) I now have:
Members
Members
Membergroups
Permissions
Registration
Paid Subscriptions
Ban List

9) Clicked on Paid Subscriptions to check things out and this
came up:
Paid Subscriptions
From this section you can view all the subscriptions you have
available.
          View Subscriptions         Settings    

An Error Has Occurred!
You have not setup your currency yet. Please do so from the
settings menu before continuing

10) Would love to have documentation on what to do. Is that 27
page post all that there is regarding documentation?

10a) Do I search for documentation?
10b) Do I just set up my currency as the error message requests
and see what happens?

hmmm....

10.c.1) Searched for "subscription mod documentation" and found
this:
http://www.simplemachines.org/community/index.php?topic=132515.0

10.c.2) Searched for "subscription mod install guide" and
didn't find anything...

...so I'll go with the 27-page behemoth and just set my
currency according to the error...

11) Clicked "Settings" under "Paid Subscriptions"

12) Clicked "here" in the sentence

"You can edit the link for paypal directly, by clicking here."
12a) was prompted to log in to my paypal account and I clicked,

I think it was "edit," I'm not hitting the back button on my
browser now! This PayPal Screen came up:
Before activating Instant Payment Notification, please read the
instructions to ensure that you can support the notification
system.

Instant Payment Notification integrates PayPal payment
notification and authentication with your website's back-end
operations. Check this box to activate Instant Payment
Notification, and enter the URL at which you will receive the
payment notifications below.

12b) opened the instructions in a new tab, but I don't really
care aboutht that right now, and oh...it's 82 pages...maybe
later!

12c) Checked the box to active IPN and added the URL from the
sentence "For all payment types, this return URL should be set
as:" in "SMF | Paid Subscriptions | Settings" to the URL field.

12d) got this confirmation:
Instant Payment Notification Preferences
   Back to Profile Summary

You have successfully activated Instant Payment Notification.
PayPal's Instant Payment Notification (IPN) allows you to
integrate PayPal payments with your website back-end
operations.
      
Instant Payment Notification (IPN)         On
Instant Payment Notification (IPN) URL:         
http://.../subs/ipn.php

13) "SMF | Paid Subscriptions | Settings" I checked Enable Paid
Subscriptions, input my Email for Correspondence, left Send
Notification Emails on "Do not send any notifications", and
entered my PayPal email address.

14) Clicked save and although the screen blinked, it looks like
nothing happened. There is no confirmatoin screen. I'll see
what I can see...

15) When I click on "Members | Paid Subscriptions" I get "You
haven't set up any subscriptions yet."

16) Now I need to figure out how to a) get a PayPal button that
puts members into a specific group on the forum (or in some
other way allows me to separate the paid folks from the
non-paying folks).

17) Clicked "add subscription" just to see what I could see...

18) Have to stop for now, because I need to take care of my
baby daughter for a while...

So, #16 is open for me, and I started reading this thread from
p.1, but I've got to go for now.

OPEN QUESTION:
Now what do I do? I'd like to have a button that asks users to
pay (in this case it will be $1.50), and then they need to have
access to a particular board, or need to be a part of a
group...or whatever so I can separate the paid content from the
unpaid content. Ideally, the $1,50 would buy them access for
one year, which would then expire and maybe even give me
notification options for the email that would be sent to the
"now" member in one year.




Dainis

#537
Well...things were going so well. I just bought a subscription from myself to test, and I just set things up in Paypal in a way I thought was logical.

I've tried letting PayPal create the username and password, and although the payment goes through, the subscriber does not get a username or password in the payment email.

I tried doing it without the username and password, thinking that the subscriber would be allowed to subscribe somehow, and that I would designate such subscribers as being part of a specific group. Such payments also go through, but alas... I have no info as to how to make the subscription work for the subscriber in SMF.

Also, although I turned IPN on in paypal, even though I made the above 2 payments, I don't see any subscribers in "Paid Subscriptions | View Subscriptions"

Anyone have instructions for how to set up the PayPal buttons so that they communicate with SMF properly once the Paid Subscriptions mod is installed and working?

Best,
Dainis

tam2oo5

Carried out the installation exactly as yourself , which to me seemed the logical way to install  ::). And like yourself i am experiencing the same error's

Dainis

Hmm...I don't see this as an "error," everything installed flawlessly...I just can't figure out where to put the secure content and what instructions to give my visitors so they can pay for the content and access it.


Advertisement: