The latest release of my PayPal module for Drupal 4.7 (and Drupal 5.0.0 dev) is now available here:

http://lmmrtech.com/lm_paypal_module_for_drupal

Please post any feed back here.

This thread takes over from the two previous threads:

http://drupal.org/node/7800
http://drupal.org/node/73727

Lee

Comments

NickHBO’s picture

Should feature requests / suggestions be copied over to this new thread? I'm not sure that mine was seen in the last thread due to its massive size and lack of response.

Nick

LeeMcL’s picture

Hi Nick.

Sorry I didn't reply in the other thread but I have taken on board your thoughts about IP based currency profiles. Not sure when I'll have to look into it though.

Lee

--
Lee McLoughlin
lmmrtech.com

mastahl’s picture

I am having trouble with this and maybe I am making it more complicated than it really is.

I set up the node to charge for classifieds. I post the ad and get the pay for ad button. In the admin it shows not published. I go live site and pay and I see the IPN show up but the ad doesn't show up. I ran cron. Does the ad automatically go live or does the admin have to publish it?

I do have all 4 mods enabled. Do I have to create a role or something for this?

mwu’s picture

thank you! Let me know if you hear back from infrastructure, or don't hear back from infrastructure within 3 days or something

LeeMcL’s picture

I now have CVS access - yay!!

Now all I have to do is re-learn CVS (its been years since I've used it).

Lee

--
Lee McLoughlin
lmmrtech.com

mwu’s picture

at last. long deserved. please let us know when we are moving over to the project issues pages.

thanks for changing the title length. wondering -- if the query made only once for the module, or once for every page display. if the query is made for every page display I'd rather have it hard-coded.

thank you for version 1.22!

mwu’s picture

I installed v 1.22.
I started to make something. it looked fine.
so I moved it to the sandbox with other modules (specifically og)

I got this error when the user goes to My account

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT(n.nid), n.title, n.type FROM node n INNER JOIN users u ON n.uid = u.uid' at line 1 query: SELECT u.name, DISTINCT(n.nid), n.title, n.type FROM node n INNER JOIN users u ON n.uid = u.uid INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 0 AND na.realm = 'og_public') OR (na.gid = 0 AND na.realm = 'og_all') OR (na.gid = 14 AND na.realm = 'og_subscriber'))) AND n.uid = 2 AND n.status = 1 ORDER BY n.nid DESC LIMIT 0, 10 in /var/www/includes/database.mysql.inc on line 120.

If I disable the lm suite, the errors go away. If I reenable the lm suite, the errors come back.

this does not happen on the site where og is not installed

LeeMcL’s picture

Looks like the OG code has a hook_db_rewrite_sql that is rewriting my query to wrap a DISTINCT around nid. But DISTINCT is only allowed immediately following the SELECT.

I don't have the time to install and configure OG locally and test this, but could you try the following and let me know if it fixes the problem, please?

In lm_paypal_paid_adverts.module at line 411 and 441 you'll find an SQL query beginning:

    "SELECT u.name, n.nid,

Change both to:

    "SELECT n.nid, u.name,

Then when the query is rewritten the DISTINCT will be at the start of the SELECT where it is valid. I've hand tested this and it appears to work but without all the OG tables I cannot be sure.

(Those are the only two lines where hook_db_rewrite_sql gets to rewrite my code.)

Lee
--
Lee McLoughlin
lmmrtech.com

mwu’s picture

Fantastic!!

Lee, thank you very much for the quick response. I made the changes and the error went away! (I was so glad that I came here to write this immediately. I haven't checked any other pages.)

one thing -- minor typo above. it's line 411 and 414, not 411, and 441. a very understandable typo.

I'm so glad you could interpret the error. Goodness knows how long it would have taken me to figure out what it means.

mwu’s picture

I now have 5 test sites, trying to test the lm modules, cck, og and some experimental modules. It's pretty confusing. I posted a question about whether there is a better way to isolate module interactions.

your comments appreciated

http://drupal.org/node/83964

mwu’s picture

Lee,
thanks for your helpful reply on the other thread about 5 sandboxes. I wrote back there. since I don't know if you are tracking the other one, I wanted to ask here -- did you mean you have about 5 test sites like I do, or 2 test sites like the other person?

note to others: you can put the names of the (major) installed modules into the site slogan to keep track of which test site is testing which combination of modules. this was inspired by a suggestion from Lee.

mwu’s picture

Lee,
It was such a relief to get your answer. I was worried last night that maybe module interactions will be too complicated to deal with. thank you for fixing it so fast, and adding an explanation that really helped me learn a little about how problems in module interaction manifest themselves. (I sent you another donation.)

LeeMcL’s picture

Glad to hear it worked and thanks for the donation!

Lee
--
Lee McLoughlin
lmmrtech.com

.carey’s picture

What's the best way to upgrade from 1.21 to 1.22.

The upgrade.txt file is a bit confusing because it talks about 1.5 and 1.6 etc.

Thanks.

LeeMcL’s picture

Extract the new files into the same directory as the old overwriting them. Then as an adminstrator go to admin/modules and click on the update.php link just before the modules list and follow its instructions.

I'll update my upgrade.txt file.

Lee
--
Lee McLoughlin
lmmrtech.com

.carey’s picture

I like the new features. Very professional.

I'm also looking forward to the "obscure email" feature.

Thanks for a great module.

mamasdiner’s picture

Hi,
I installed lm_paypal 1.22 on a different site that already had ecommerce and other modules running. When I clicked on the subscriptions tab I got this error:

user warning: Unknown column 'kind' in 'field list' query: SELECT subid, item_name, description, status, kind, rid FROM lm_paypal_subscriptions in /home/investor/public_html/includes/database.mysql.inc on line 120.

I'm running 4.7.3. I've checked the settings in admin for lm_paypal and they look fine.
Is this a conflict with another module?

Also, under admin->LM_Paypal the only options are:
Subscriptions
Show Paid Adverts
Saved IPNs

Is this correct or did I miss something somewhere?

Thanks for any help.

Heather

LeeMcL’s picture

It looks like you have upgraded from an earlier version without running a Drupal update. Go to admin/modules and near the top you'll see:

It is important that update.php is run every time a module is updated to a newer version.

Click on update.php and make sure that all the updates have been run.

With reguards to your other question those are the right menu items to see. The rest are under admin/settings/...

Lee
--
Lee McLoughlin
lmmrtech.com

mamasdiner’s picture

Thank you Lee!
I've never received a faster reply! You were right, after running update.php everything works fine.
Thanks again!

Heather

.carey’s picture

I'm not sure if this has been mentioned. If it has, please ignore.

On the 'LM Paypal Donations Help' page (admin/help/lm_paypal_donations) there is a link for 'LM PayPal Help'. It currently goes to 'help/lm_paypal' which doesn't work. I believe it should go to: 'admin/help/lm_paypal' (?).

Carey

LeeMcL’s picture

Thanks for pointing that out. Corrected.

Lee

--
Lee McLoughlin
lmmrtech.com

mamasdiner’s picture

Hi,
Maybe I've messed up my settings, but whenever a new user submits an ad it shows the "Ad has been created" message instead of the Paypal Publish tab at the top.
When I enter the site as admin and got to content I can view the newly submitted ad and image and when I do it gives ME the Paypal Publish tab.
Did I misconfigure something?

Apologies if this has been answered in the previous thread.

Thanks for your help.
Heather

LeeMcL’s picture

This one has me a bit stumped. I'm out and about most of this weekend but I'll have a look Monday.

However is strikes me as being permissions related. Do you have an extra access control modules loaded that might be doing this?

Lee
--
Lee McLoughlin
lmmrtech.com

mamasdiner’s picture

I checked my access control module and it shows only one in my admin area. I've viewed my files through my FTP panel and it doesn't show a duplicate that I can see.
I've also reviewed my persmissions and everything looks as it should be for authenticated users. The only permission I denied them was access to view all donations.

I'm continuing to hunt around in the admin section to see if I've missed something.

Thanks for trying to help and have great weekend!
Heather

mamasdiner’s picture

Hi,
I've read and re-read the instructions for using taxonomy and even installed the Taxonomy_access module and activated it. I then read the instructions for setting up roles, adding vocabulary, terms and subscriptions, but I must really be missing something.
The Paypal Subscribe link shows in the menu, however, the page says "no subscriptions defined," but I did add subscriptions.
I went into access control and made sure authenticated users were allowed access to the lm_paypal_subscribe feature, but still nothing shows on the Paypay Subscribe link.
I did not create a new role in access control since the help instructions said authenticated user was sufficient.
I read the instrustions on your page Lee and also followed the link at the bottom to Peter Sheim's website, but still the Paypal Subscribe link doesn't show the subscriptions I've set-up.

I'm sure I've overlooked something in my haste to get this working and I would greatly appreciate any assistance that would set me straight.
Thanks again.
Heather

mamasdiner’s picture

My apologies!
I went back and created additional roles again and associated them with the subscriptions I had created. Initially, I set-up the subscriptions and chose 'Node' instead of 'Role' (why? I don't know).
Anyway, once I did this I went back into my subscriptions and edited them to show Role and the role I wanted each to have.
They are now showing on the Paypal Subscribe page with a link to my paypal payment page.

Now if only I can figure out why the Paypal Publish tab won't show.

Heather

mamasdiner’s picture

I finally figured out what I was doing wrong, which I thought was right. I had created a page specifically designed, using CCK, to accept ad submissions. In the Publishing area I had checked "in moderation," when I changed this back to "Published" the Paypal Publish tab showed up and the ad was not visible on the site as I thought it would be if I didn't uncheck "Published." Does that make sense?

This was probably all spelled out in the instructions somewhere that I failed to read and instead just jumped in. Ooops!

Anyway, it seems to be working fine now.

Heather

mamasdiner’s picture

Hi,
I encountered another error after clicking the "My Account" link.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT(n.nid), n.title, n.type FROM node n INNER JOIN users u ON n.uid = u.uid' at line 1 query: SELECT u.name, DISTINCT(n.nid), n.title, n.type FROM node n INNER JOIN users u ON n.uid = u.uid INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 2 AND na.realm = 'term_access'))) AND n.uid = 4 AND n.status = 1 ORDER BY n.nid DESC LIMIT 0, 10 in /home/investor/public_html/includes/database.mysql.inc on line 120.

Any ideas?

Also, I thought that the user would be able to view ads they have not paid for under the My Account link? Is this due to the error above?

Thanks,
Heather

UPDATE: I found a fix in the previous thread. I'll give it a try. Sorry! I should do more reading prior to posting.

mwu’s picture

I'm glad you posted this entire trail. I'm sure others might make the same mistakes and it's good to have this to refer to. That cck and "in moderation" thing could be easy to overlook.

jghyde’s picture

Drupal 4.73
lm_paypal 1.22

Successfully installed ln_paypal. Works great!

Registration work flow worked smoothly

installed CCK/Views/Contemplate

Then, when navigating to /user/register I get the login page, not the registration page. Also, the tab "Register" is missing from /user/

Does anyone know what causes this?

joeh

Local News Platform Built on Drupal
http://sanangelolive.com/

LeeMcL’s picture

I have all those modules installed too - except Contemplate. Could you try disabling that and seeing if it helps?

Also there is a similar problem reported here with a solution:

http://drupal.org/node/67045

--
Lee McLoughlin
lmmrtech.com

jghyde’s picture

Lee-

Thanks for the pointer to http://drupal.org/node/67045

The problem was diagnosed in 4.7 that when you create a duplicate link in your menu system to user/register it makes the /user/register page disappear altogether.

I removed the custom link in the menus.module and /user/register returns! What a relief!

joeh

Local News Platform Built on Drupal
http://sanangelolive.com/

martinc6’s picture

Could you please explain to me how the E-Commerce integration works? For instance what modules from this should I have enabled?
All I need are the more advanced subscription options such as assigning roles to subscribers.

Also if I use this with E-Commerce would I still be able to have a subscription as a product in my store? I mean would it look the same to the end user? Can they just click on the item like any other and then click on the Add to cart button which goes through E-Commerce and adds it to the same cart as everything else?

LeeMcL’s picture

E-Commerce and LM PayPal are completely unrelated. I believe both can be installed in parallel with E-Commerce providing a store and LM PayPal providing paid-for roles.

Lee
--
Lee McLoughlin
lmmrtech.com

ariejan’s picture

It would be really great if a .pot or .po file was included in order to translate the whole thing into other languages.

I'd be happy to contribute a Dutch translation.

(Contact me by email if you need to, I don't come here often :) )

LeeMcL’s picture

You didn't give an email and you have contacts disabled (and your website is currently inaccessible) so I'm replying here.

I don't know Drupal's translation system apart from quickly glancing thru the guides:

http://drupal.org/node/11130

But for a my module this is more appropriate:

http://drupal.org/node/11396

it shows how to create an initial .pot file.

If you have the time to provide a Dutch translation that would be great!

Thanks

Lee

--
Lee McLoughlin
lmmrtech.com

--
Lee McLoughlin
lmmrtech.com

publishing’s picture

Lee,

Thank u so much for your effort in developing, then carrying to completion, the IM_paypal module. It is people like you that really make open source GO, but not only that, allow it to keep going.

Personally, as I have been developing and completing the same, my own site, I have been awaiting the new or a new simple, yet functional subscription pay module. I had looked closely at the amember.com offering which seems to have some pretty neat features and had pretty much decided upon using it in lieu of a viable Drupal related/compatiable offering being brought to the table. However, my one concern with amember is that it is a 3rd party plugin and u can just never be certain how it would be integrated into core Drupal and/or Drupal contrib modules. Any missteps here, even small, could take a user to bug and error hello, with no real guarantee of a safe return.

So again, thank u for the LM_paypal module and developing the same around with core Drupal in mind. Some money is poorly spent and some money is well spent. I for one believe that donations to developers of your sort who have poured in countless amounts of time, energy and effort, that others, beside themselves might utilize and benefit is money very, very, well spent. I will be making a donation as a small token of my very large appreciation of your effort and respect for the valuable time you and others give.

Peace, and may the force continue to be with u.

Genuinely,

Publishing

LeeMcL’s picture

Thanks for the very nice message. Its always nice to be appreciated.

Sorry to all for not being so active on here recently but I have been swamped with a non-Drupal project (helping to design, write the software for, and build an information kiosk).

I've done some work on allowing Organic Groups (OG) based subscriptions and to allow per-subscription/per-donation return urls. But I've not had the time to test the code. When I do I'll post a new version. Hopefully by then I'll also have had the time to re-read the CVS documentation and the modules will appear there.

Lee

--
Lee McLoughlin
lmmrtech.com

mwu’s picture

removed

mwu’s picture

Hi Lee,
I've turned on php warnings in php.ini.
I got these in v22
could you possibly fix them so that they are not deprecated? thank you very much.
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 171

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 171

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_node_subscribed(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 316

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_node_subscribed(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 386

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_paid_adverts_has_sub(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 425

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_paid_adverts_has_sub(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 425

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_paid_adverts_has_sub(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 482

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_paid_adverts_has_sub(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 482

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_paid_adverts_has_sub(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 502

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_paid_adverts_has_sub(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 502

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_paid_adverts_has_sub(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 514

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of lm_paypal_paid_adverts_has_sub(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/mboxone/modules/lm_paypal/lm_paypal_adverts.module on line 514

LeeMcL’s picture

Damn! Too much programming in C recently. Corrected.

Lee

--
Lee McLoughlin
lmmrtech.com

mwu’s picture

lee,
how do version numbers work?

if i enable the ad module, the admin/modules page becomes blank. i get header already sent errors.

then i saw it was version1.6 (ads)
i thought maybe i was testing the wrong version.

then i saw version 1.22a has version1.6 for ads.

do the modules numbers not match up?
(maybe that's standard procedure. thought it makes it hard to tell if we have the right version of an add on module)

LeeMcL’s picture

As that was a private version I sent to you for testing the version numbers have not been updated as they would have been for a production version.

But in general whenever I release a new version of LM PayPal the version number is taken from the main module: lm_paypal.module. If it so happens that lm_paypal.module hasn't changed then I'll force the version number to increment.

So release lm_paypal-1.22 means that lm_paypal.module is at version 1.22.

The other modules that make up the package have independant version numbers. Currently lm_paypal_paid_adverts.module is at 1.6, subscriptions are at 1.15, ...

Lee
--
Lee McLoughlin
lmmrtech.com

mwu’s picture

this is 1.6 from tar version 1.22
if I enable lm ads, i get this

Cannot modify header information - headers already sent by (output started at /var/www/boxone/modules/lm_paypal/lm_paypal_paid_adverts.module:502) in /var/www/boxone/includes/common.inc on line 266.

i believe this usually means an extra blank space at the end. I went into the module (and removed the closing ?> tag which Drupal disallows). Save the file. same issue.

admin -- modules page becomes blank.

thanks for fixing the deprecated warnings so quickly.

LeeMcL’s picture

I can't duplicate this problem locally but I wonder if the side effect is caused by your turning on warnings about depreciated items in code as you mentioned in an earlier posting? The line it is complaining about is line 502 this is where one of the depreciated "&$var" bits can be found.

I'll privately post you a copy of that module with the &'s removed for you to try out.

Lee
--
Lee McLoughlin
lmmrtech.com

LeeMcL’s picture

LM PayPal is now a Drupal Project:

http://drupal.org/project/lm_paypal

So it now has all the benefits of all Drupal projects with:

  • Support forum
  • Report new bug
  • Request new feature
  • ...

--
Lee McLoughlin
lmmrtech.com

LeeMcL’s picture

The latest version of LM_PayPal, 1.23, is now available on the project page:

http://drupal.org/project/lm_paypal

It fixes a couple of issues people reported with the previous release and also includes:

Experimental support for Organic Group subscriptions
Javascript hiding of the email address in forms

Lee
--
Lee McLoughlin
lmmrtech.com

mwu’s picture

Lee,
cvs is great! thank you.
I've been told that that the "header already sent" problem is indeed caused by the "deprecated warnings"

does cvs version 23 include everything in the version you sent to me?

LeeMcL’s picture

The CVS version is 1.23

Lee

--
Lee McLoughlin
lmmrtech.com

.carey’s picture

I can't express enough how much I appreciate all your hard work!

And thank you for hiding the email address. I'm thrilled that you included this in your latest version.

LeeMcL’s picture

You're welcome.

--
Lee McLoughlin
lmmrtech.com

mwu’s picture

Hi Lee,
I'm testing the cvs version.
1) deprecated gone.
thank you
2) header error gone.

3) all subscriptions appear correctly (fixed from earlier)

thank you very much.

LeeMcL’s picture

Glad to see everything is Ok.

If no problems are reported within the next week, or so, I'll create a DRUPAL-4-7 branch

Lee

--
Lee McLoughlin
lmmrtech.com

Summoner-1’s picture

Tried both install methods and each resulted in blank admin>modules page. No errors returned in log. Has this been seen?

Site is 4.7.3, MySQL 5.0.22, Apache 2.2.2 on Fedora Core 5.

mwu’s picture

your administer page
(watchdog errors)
what does it say?
this happened to me. I don't remember how I fixed it.

mwu’s picture

can check your apache error log

Summoner-1’s picture

I am seeing this in Apache error log

PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 58368 bytes) in /var/www/html/modules/lm_paypal/lm_paypal_donations.module on line 398, referer: http://test.mydomain.com/admin/logs

I removed all three Im_paypal_donations files and now the "modules" screen is working. When I try to enable the 3 modules and save the screen blanks and I get these errors in watchdog.

Table 'drupal.lm_paypal_subscriptions' doesn't exist query: SELECT * FROM lm_paypal_subscriptions WHERE status = 1 in /var/www/html/includes/database.mysqli.inc on line 121.

Table 'drupal.lm_paypal_ipns' doesn't exist query: DELETE FROM lm_paypal_ipns WHERE timestamp < 1160755149 in /var/www/html/includes/database.mysqli.inc on line 121.

Any ideas?

LeeMcL’s picture

The LM_PayPal modules are quite large and the first sign of PHP running out of memory is a blank modules page.

There is no standard amount of memory available for PHP, different setups allow different amounts. Some hosting companies are quite mean! You might be allowed to increase the amount available by adding a line like the following to you settings.php file:

// Increase the amount of available memory
ini_set('memory_limit', '13M');

By running out of memory while installing it has left things in an odd state. Once you've increased the memory limit, disable all the lm_paypal modules and run the drop_test.sql script that comes with lm_paypal. This will remove all sign of lm_paypal from inside Drupal so you can start afresh. When you re-enable the modules Drupal will re-run the install scripts.

Lee

--
Lee McLoughlin
lmmrtech.com

vm’s picture

if your host allows you can also use a custom php.ini file and adjust this line memory_limit=8M. which is what its set at now.

adjust to read memory_limit=12M and retry not sure how high your host will allow you to go before shutting you off, so use small increments of 2 - 4 M

once this line is adjusted you can drup the new php.ini file inside your drupal root, and everything in the drupal root will now use this new php.ini file.

Anonymous’s picture

php_value memory_limit 32M

vm’s picture

I just find the custom php.ini file easier to explain and easier to manipulate in most cases, as this file is commented well and users tend to understand more about how it actually works, versus how to just override a specific setting without knowing how or what has been affected. screwing up a .htaccess file can be a headache and cause users to panic if done incorrectly.

Summoner-1’s picture

This is my server hosted locally, so no need to worry about host :) Your suggestion worked like a charm! THANK YOU!!

debsjenkins’s picture

Hi
I'm new to drupal, and I've installed quite a few modules now, and they always seem to create the tables themselves. However, when I instal lm_paypal no new tables appear.
Any clues?
Debs

vm’s picture

install the devel.module which has the ability to reinstall modules and should run the install and sql. if that doesn't work you can dig through the .install file and pull out the necessary SQL if necessary. or file this as content issue for the lm_paypal project : )

debsjenkins’s picture

at least now I can see that it *doesn't* work - for example the errors I get:
lm_paypal_subscriptions FAILED to create tables:Failed to create table:lm_paypal_subscribers. Failed to create table:lm_paypal_subscriptions.

any more clues?

vm’s picture

I just install the latest cvs version found in the repository dated 21-10-06.

i uploaded all the filder in the lm_paypal folder. I enabled all four module in the adminster -> modules area

the tables were created as expected.

are you sure you are using the latest version ? for 4.7 ? this module doesnt work on drupal 4.6 which means it wont work on civiccrm as i believe this package is also built on 4.6.
are you sure you enabled all parts of the paypal module ?
insure that all files are indeed uploaded, and if necessary upload again, to insure no files were corrupted above upload.
the devel.module helps you reinstall modules which will rerun the sql insertions (provided all files are uploaded and not corrupt) as well as tell you what errors you are getting.

if none of those work you have only two choices.

open the .install file and manually pull out and insert the sql insertions. or file an issue with the lm_paypal project. you can do so here http://drupal.org/project/lm_paypal and enter the report a new bug area.

debsjenkins’s picture

thanks for your help - I tried again on a new installation of drupal, latest download of lm_paypal, with no other third party stuff installed and I got errors again. It could be something I'm doing! However, I took your advice and posted an issue http://drupal.org/node/91192
thanks again

LeeMcL’s picture

Thanks for posting this as an issue and i've posted a patch as a followup.

Turns out its a MySQL 3 problem. For more information have a look near the bottom of this page:

http://drupal.org/node/77055

Lee
--
Lee McLoughlin
lmmrtech.com

gener-1’s picture

I'm wondering which of the 3 modules people are using live.

RAMurphy’s picture

Hi,
This concerns the out of memory error discussed in a prior thread:
"PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 58368 bytes)..."
I've read the threads and believe I understand the recommended solution is to pump up the memory limit variable in php.ini.
However...
I've installed the software on two different domains which are served by two different hosts. In both cases, the memory limit is set at 8M. Yet, lm-paypal installs and runs fine on one, but returns the memory error on the other. There's no apparent difference in php, mysql or unix, they're all exactly the same versions.
Support at one of the hosts suggested that 8M should handle just about anything reasonable, and that the memory variable settings don't do a consistent job of controlling stuff anyhow. They're not inclined to be okay about raising the limit. I realize this is a fairly typical sort of response from support at a host, having dealt with them for years ;), but I'm stumped.
Is there any chance the memory requirements of lm-paypal will be reduced, or is there any other work around? I'm reluctant to go live with the module if I can't count on consistent performance, regardless of where the problem is coming from.
This isn't meant to be critical of your package - it's a urgently needed module for those of us who want to run drupal as a paid subscription site. It seems like everything is great except for this one problem.
Any guidance would be greatly appreciated.
Thanks!

vm’s picture

CivicCRM with its bundle of modules requires a mem limit of 24M. It is not at all an uncommon task to have to adjust your memory_limit and drupal is not the only piece of software that may require a higher setting.

I find your hosts answer a tad funny, that adjusting these settings arent consistent. Fact is thats not true and typical of a shared host who will try and talk you into a dedicated server to meet your needs even if not needed. IMO many hosts take advantage of users who don't quite know server technology. Then you get a dedicated server only to find out you have to adjust your php.ini file anyway.

While many things would run fine with an 8M limit, not all run well at 8M.

There are other ways to overwrite these default settings. Some have found using .htaccess commands viable. I've yet to run into a situation where adjusting my php.ini file hasnt worked to my benefit and to the benefit of any site I've deliever to a clent. The benefit of using a php.ini file is you can make different overrides in different folders.

example, I have drupal and phpbb running. in phpbb i only want users to be able to attach 2M files. i create a php.ini file specifically for the phpbb folder. On drupal I want users to be able to upload 5M files, I readjust php.ini and add it to the drupal folder.

the more modules you add, the more memory is needed (even if not enabled). The more modules enabled the more memory is needed.
That being said.
are your two sites, running the exact same set of modules? are the same exact modules enabled on both? are the same exact modules disabled on both. Do both sites have the exact same modules uploaded to them, even if not enabled.
This includes but is not limited to lm_paypal

There are a few other adjustments that can be made in php.ini as well.
for example php defaults uploads to 2M in php.ini you can override this and allow users to upload 5M. php timeouts can also be adjusted this way. which may or may not be needed to be adjusted based on how many users your site has, and how many complain about timeout errros.

RAMurphy’s picture

Thanks for the extra info on this topic. You're absolutely right about the host trying to make the issue the software's fault. Also that other apps use more than 8M. I don't use it but I saw one thread while researching this for a Gallery 2 user which required 16M.
What was most helpful of all was your comment that all the modules enabled contribute to memory allocation regardless of use. I'm sure that accounted for the difference in how the two services ran the apps.
The php.ini solution looks best going forward, particularly since it's a way to customize installations. Great info and advice there.
Thanks much!!!

Walt Esquivel’s picture

The LM Paypal Subscriptions sounds very useful but I need some help on how to best utilize it. By the way, if I end up using this module, I will most definitely make a small contribution to the developer for his fine work!

When I go to http://example.com/admin/lm_paypal/subscriptions/new in my Drupal admin, it states the following:

LM PayPal Create New Subscription
Subscribers Organic Group:
The Organic Group subscribers become members of. Only used when kind is Organic Group. Only "Invite Only" groups can be used in subcsriptions.

In addition, I see that organic groups (OG) have four (4) "subscription request" categories:
1. open - subscription requests are accepted immediately.
2. moderated - subscription requests must be approved.
3. invite only - subscriptions must be created by an administrator.
4. closed - subscriptions are fully administered by an administrator.

What I'd like to do is allow a visitor to join one or more OGs on my web site after paying a subscription fee.

I would like a visitor clicking on Paypal Subscribe to see options I've created such as Bronze, Silver, and Gold, click on one of them, e.g. "Silver", be taken to Paypal to pay for the "Silver" subscription, and then be granted "Silver" access to the OG that was just joined without having to wait for admin approval. With LM Paypal Subscriptions, is the subscription "created" after the payment is made at paypal.com, or does the new subscriber actually have to wait hours or even a day or more for the administrator to get around to "creating" the subscription even though the payment was already made? I'm hoping the process is automated vs. requiring manual subscription creation from the administrator.

Also, is there a way to test LM Paypal Subscriptions with my Paypal business account without actually having real funds being moved around? I would like to test LM Paypal Subscriptions without adding and subtracting a bunch of different dollar amounts from my business account (it creates messy accounting records). Is LM Paypal Subscriptions testing possible in a sandbox?

Thanks in advance for your kind assistance.

Walt Esquivel, MBA, MA
President, Wellness Corps; Captain, USMC (Veteran)
$50 Hosting Discount Helps Projects Needing Financing

LeeMcL’s picture

This reminds me I need to clean up the documentation reguarding group subscriptions!

When a user subscribes to an OG they are immediately added. The admin doesn't have to do anything.

I used 'invite only' because I didn't want to change OG and of its four types that was the closest to what I wanted.

For testing there is the PayPal Sandbox on:

https://developer.paypal.com/

There is plenty of documentation around both there and on the net on how to use it.

If you use this you need to tell LM PayPal. Go to administer/settings/lm_paypal and tell it that the PayPal host is www.sandbox.paypal.com and also set "LM PayPal Obey Test IPNS"

Lee
--
Lee McLoughlin
lmmrtech.com

Walt Esquivel’s picture

Hey Lee,

I took your suggestion and created a PayPal Developer Central sandbox test account. You rock! I'll test things out soon and am excited about the possibilities!

And yes, easy-to-follow documentation regarding group subscriptions would be nice, especially if it included scenarios which illustrated under what circumstances a web site might offer organic group subscriptions. Of course, another scenario would be how to test organic group subscriptions via the PayPal sandbox, including the very helpful hints you've provided me, e.g. -

Go to administer/settings/lm_paypal and tell it that the PayPal host is www.sandbox.paypal.com and also set "LM PayPal Obey Test IPNS"

However, I wouldn't stop there. I think it would be very helpful to not only include organic group subscription examples but to also include node and role subscription examples. This would make it much easier for novices to set things up.

One other question. At www.example.com/admin/settings/lm_paypal, can I simply use the testing email address I registered with and set up for the PayPal sandbox? I do have a PayPal Business email address for my production web site, but it seems to me that I should be able to use the testing site email address I used to register with PayPal sandbox although it's not a PayPal Business email address. Am I correct, or do I still have to use a PayPal Business email address to test your modules in the PayPal sandbox?

Thanks again!

Walt Esquivel, MBA, MA
President, Wellness Corps; Captain, USMC (Veteran)
$50 Hosting Discount Helps Projects Needing Financing

LeeMcL’s picture

When I have some free time I'll add examples into LM PayPal Subscription help, including using PayPal sandbox.

PayPal Sandbox can appear complex to use at first. You have to register using real world details to login to developer.paypal.com. Once inside you can create Sandbox accounts that exist entirely inside your developer account. Sandbox accounts can do all the usual PayPal things, send/recv money, subscribe, ... All PayPal generated emails for Sandbox accounts go to the developer.paypal.com email system. So you could, for example, create a Sandbox account with the same details as your real world PayPal account. One issue to be wary of is that you should maintain an active window to developer.paypal.com while testing or accesses by Drupal to your sandbox accounts will fail.

I'd like to be able to give more help on PayPal/Sandbox but it would take more time than I have available and there is plenty of help out there.

One other question. At www.example.com/admin/settings/lm_paypal, can I simply use the testing email

Lee
--
Lee McLoughlin
lmmrtech.com

publishing’s picture

Hello Lee, Drupal Nation,

I have the following (2) questions:

1) What type of PayPal account is required for utilization of the LM_PayPal module? PayPal seems to offer (3) different types. I have signed up for the "Email Payment" account, but there does not seem to be any business account or id associated with it, which the LM_PayPal Module settings require.

2) Organic Groups or OG type subscriptions are mentioned several times in the LM_PayPal documentation. Is the Drupal, contributory module, Organic Groups, required for use of the LM_PayPal module?

Thanking u in advance for your time and interest!

LeeMcL’s picture

1) You need a PayPal Business or a Premier Email account. LM_PayPal uses PayPal's Instant Payment Notification (IPN) and you only get that with a Business or Premier account.
2) LM_PayPal does not require OG. If OG is installed then you have the option to create OG based subscriptions. Without it those options are removed. You still have Role and Node subscriptions.

When I get the time I'll update the documentation to clear up these points.

Lee
--
Lee McLoughlin
lmmrtech.com

publishing’s picture

Lee,

Thanks, while u may not have time currently, thank u for all the time u've already given!

gibsbe’s picture

First - thank you for a great module!

I have it implimented on v4.74 as a simple yearly subscription.
Works great, no issues, except - there seams to be some truncation of the email messages when setting up the subscription.

Is this a "feature" or have I done something stupid in implimenting?

LeeMcL’s picture

Perhaps I was being a bit too mean when I setup those email fields. Currently the Subject is limited to 80 characters and the message body to 200.

Is this too limiting?

Lee

--
Lee McLoughlin
lmmrtech.com

jghyde’s picture

whenever I click on an lm_paypal link, it appears to be working except that in my watchdog log, a "Permission Denied" to "anonymous" shows up for lm_paypal.

And, related to this, I cannot get the settings/lm_paypal to show the email address field for setting up paypal. It just has a "submit" button. Watchdog shows the permission denied to anonymuous when accessing admin/settings/lm_paypal.

Any ideas?

Local News Platform Built on Drupal
http://sanangelolive.com/

Walt Esquivel’s picture

LM_PayPal apparently does NOT support recurring debits via a credit card.

So, I'm still looking for an affordable solution to my need for recurring billing via a credit card. I need an open-source shopping cart or a Drupal module that will allow automated processing of credit card payments without end-user interaction, and to do so preferably on someone else's server such as PayPal's as I prefer to NOT store credit card numbers.

1. Does anyone know if there is ANY Drupal module that does recurring billing via a credit card? Does anything in the Drupal ecommerce module allow this?

2. Does anyone know if there is ANY open-source shopping cart that does recurring billing via a credit card?

3. It appears to me that LM_PayPal not have a release for 4.7.x. Under lm_paypal "Releases, all I can find is the Nightly development snapshot from HEAD. Is this HEAD module good to go for 4.7.x, or does it still need to be finalized in some way before the developer can name it 4.7.x? Basically, what's the difference between calling something "HEAD" and calling it, in this case, "4.7.x"?

4. Does anyone know if LM_PayPal is going to be updated to work with Drupal 5.x, or is the HEAD version referred to in #2 above good to go for 5.x? I don't see the 5.x status listed at Contrib modules version 5.x status. Also, I want to be sure the LM_PayPal developer is going to continue working on this module before I decide to depend on it.

Thanks in advance & Happy New Year!

Walt Esquivel, MBA; MA; President, Wellness Corps; Captain, USMC (Veteran)
$50 Hosting Discount Helps Projects Needing Financing

tknospdr’s picture

A subscription, and LM_PayPal handles them just fine in my testing and deployment experience.

Thanks,
David
http://www.floridapets.org

LeeMcL’s picture

LM_PayPal supports PayPal subscriptions which are automatically reccuring debits against a credit card.

The code in HEAD works with both 4.7.x and 5.x

I've not released specific versions as I really wanted to sort out a couple of internal issues first.

I do intend to keep working on it but I have to fit it around earning a living !!

--
Lee McLoughlin
lmmrtech.com

publishing’s picture

Hello All,

Having a problem when attempting to generate a new subscription. Upon clicking on subscribe icon, the page goes blank and the address bar returns the below url:

http://http//www.paypal.com/cgi-bin/webscr

I have checked my paypal ipn url. The documentation suggest a configuration of:

www.mysite.com/lm_paypal/ipn

Should this actually be: www.mysite.com/modules/lm_paypal/ipn ---since lm_paypal is located first in modules?

Any help appreciated,

Thanks,

pitartist’s picture

I'm having trouble setting up a subscription for paid advertisements. Do I need to have installed the taxonomy access control module to set up a subscription by node?
Otherwise, subscriptions and donations are working great!

debsjenkins’s picture

Hi
the module is working great with text and graphic banners, however I want to add a javascript banner. When I do I just get a blank box where the banner should be. Here's the javascript I want to add:

<script language="javascript">
var uri = 'http://impgb.tradedoubler.com/imp?type(js)pool(174076)a(1320560)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
</script>

What I've tried:
1. nothing in URL, mode javascript, code in content
2. as above but adding the code as Full HTML instead of filtered HTML
3. as 1, but removing the lines <script language="javascript"> and corresponding end tag

I have tinyMCE installed too - in case that might be causing the problem?
If anyone can give me a pointer in the right direction I'd be very happy!
Debs
www.nativespain.com

TY2U’s picture

Hi Debs,

I am new to Drupal but have used Joomla since it was an early version of Mambo and it has tinyMCE in it and it removes the javascript tags when you post. You have to disable the editor to post javascript as far as i know.

Ryan

irishsuperfly’s picture

My apologies if this has already been addressed....

I'm trying to set up a classifieds system using CCK and Views, hopefully with LM_Paypal as the payment module. The issue I'm running into is that when I set up a View to show the classified nodes, the unpaid nodes show up in the filtered results. If a user clicks into an unpaid node they get the message that it's not published yet. I thought LM_Paypal kept the nodes from being published until they're paid....should they still be showing up in the Views results?

There may also be a need for the classified nodes to go into moderation queue before being published. There are some issues with that, but I'd like to do some more testing before bothering you with it.

Thanks for making this module!

seanenroute’s picture

You probably need to filter out the unpublished nodes. In Filter select "Node: Published" and it will filter out the unpublished nodes from the view..

tradermike’s picture

I'm thinking about using lm_paypal with my subscription website that I am already running with drupal and paypal. One question I hope you can take the time to answer - if the module is being used and someone goes to paypal to sign up for a subscription will the module create the user account for them - or does someone need to create a user account on drupal first and then go to paypal and pay - with the module updating the paypal account? Guess I'm asking if the modele can create the user accounts for people who buy a subscription... Thanks - Mike

My website
http://www.wallstreetwindow.com

tknospdr’s picture

PayPal and Drupal don't interact in that way (nor would you want them to), so the answer is no, one won't create an account for the other.

Thanks,
David
http://www.floridapets.org

tradermike’s picture

Thanks to know of any sites running paypal subscriptions so I can see an example? Thanks for the response.

My website
http://www.wallstreetwindow.com

tknospdr’s picture

using all the parts of the module.

Thanks,
David
http://www.floridapets.org

redshifter’s picture

Totally inexperienced with Drupal here, so please forgive me if I'm misunderstanding.

I'm developing a site that offers both free and premium editorial content. We are designing it so non-subscribed users will see excerpts of premium content with a link to subscribe to read the full article. Does this module enable this type of interaction? If not, is this possible at all with Drupal? Thanks very much in advance for help and advice.

LeeMcL’s picture

Have a look at the Premium module.

http://drupal.org/project/premium

--
Lee McLoughlin
lmmrtech.com

gary@castus’s picture

Is there any way to set the module so that when you create a new account in the first place, you have to pay through the subscriptions module before you are and authorized member of the site?

The module looks very good, and I'm thinking of coming over to drupal for one of our projects just because of this one module.

Thanks.

publishing’s picture

Hello Gary,

I do not believe that there is a way to secure user subscription at the time of registeration. According to the modules architecture, a user must become an authenticated user first, prior to subscribing to site.

A way to work within the modules structure and still accomplish your objective of securing paid subscription is to utilized taxonomy access module + premium module to set access priviliges for: anonomyus(not priviliges); authenticated(limited priviliges, maybe allow viewing of a category, but limit access to rest of site.

A key to remeber with LM_paypal is that "only" authenticated users can subscribe to site, so u would not want to eliminate the ability of a user to register. By registering, the user is granted an automatic role of authenticated user.

Then u might utilize the "Premium" module to designate all content that u desire to make available to paid subscription, then make said content available only to a newly created role called the "paid subscribers.

mastahl’s picture

I am having trouble with this and maybe I am making it more complicated than it really is.

I set up the node to charge for classifieds. I post the ad and get the pay for ad button. In the admin it shows not published. I go live site and pay and I see the IPN show up but the ad doesn't show up. I ran cron. Does the ad automatically go live or does the admin have to publish it?

I do have all 4 mods enabled. Do I have to create a role or something for this?

I did find 2 things in the log:

1. IPN but no fields, ignored
2. process_in cannot find ipn: 0

These 2 are connected.

devenderdagar’s picture

Hi all

i am new to drupal and i am using ln_paypal for subscription. but i am facing some problem in subscription. i am able to connect to www.sandbox.paypal.com and also payment is reflecting in my paypal's account. And also paypal is redirecting me to back on my web site (http://localhost/abc/). every thing is going fine except i am not able to subscribe to some new subscrption i set for?

As i think after paying to paypal, when i login again then my account tab, my subscription details should display. if i am wrong please correct me.

i ahve set ipn at paypal sandbox and enable it also.

can any body suggest me in this matter. for the last days i am looking forums and all details on drupal.org. but still i am in middle.

if some body helps me, it will be highly appreciated.

thanks in advance.

Devender, India

rayvan’s picture

any idea when this will be ready for 5.1? :)

LeeMcL’s picture

I have it working in test mode on a 5.1 site and several others have reported it working ok on 5.1

Lee

--
Lee McLoughlin
lmmrtech.com

msabto’s picture

I am interested in the possibility of using Drupal to publish a magazine with issues where the current issue is available only to paid subscribers (back issues available to all users, including anonymous users). I've been looking at this LM paypal model as a way to enable these paid subscriptions. It seems that the nodeaccess/organic groups modules would be needed for the access-control part of the operation. Not sure which or perhaps both.

Am I on the right track?

One thing I am concerned about is whether or not it will be possible to have subscribers access only the latest issue. From my research, I've only found information about how to grant subscribers access to the entire site or to particular forums/forum topics.

The other issue is keeping records of subscribers, including the details of their subscription (i.e date subscribed, subscription expiry date, etc). I imagine CiviCRM would do this but I think it might be too much of a learning curve to start with. Does the LM Paypal module allow simple records to be maintained - i.e. export to Excel?

Michele

tonymiceli’s picture

am i posting in the right place??

i installed lm_paypal module into drupal 4.7 and everything seems to be set up properly, however i subscribe and i'm redirected back to the site and the user is still unable to assume the 'paid' role. i looked in the admin log and i see calls to cron however i'm using poormans cron. could this be my problem? i see that nothing has been entered in the database(s)

also i actually am running drupal 5.3 for my website. i installed the 5.0 dev version and it looks like it didn't create the ipn database. i set up 4.7 to see how it worked in there and i see the database. if i was going to use this with 5.3 could i just copy the databse from 4.7 and put it in 5.3.

i was thrilled to find this module!

thanks
tony m

tonymiceli’s picture

i'm doing this on my localhost. of course that's why it won't work. duh. let me try it online and i'll come back if i have problems.

sorry to waste your time.

spike2’s picture

Lee;

I have the module working trouble is I dont seek the visa credit card showing up unless Iam logged in.
if Iam just viewing the site I would like for the clients to click on the CC and have the module do it's thing but for what ever reason it's not showing up. Yes I have it set for all view just to test it once I get it fixed I will close down the registered user / member as they dont need to view it they are already members.
Help I am so close to getting this going.

hugafish’s picture

First I have to say very simple to set up and everything seems to work great even beeing payed through paypal. The one thing that does not work and of course the most important thing for my users is that after the user has subscribed and payed he logs out and then logs back into his account but the new features he should be seeing on my site are not there. I have two user type roles there are Authenticated users which is not a role type and Premium user role The only features right now that the Premium user role get that the Authenticated users don't get are a special tab that I created in the users profile page using the profile module and the webfm module these two features are for Premium user role only. The Authenticated user who subscribes to the Premium account using lm paypal is set up as a Premium user role after paying but the features don't show up. When I look at all subscriptions it shows this user as subscribed and his status is live. I am using Drupal 5.1 also the menu link that gets him to the webfm is not visible after this subscription. Any help is Greatly I mean Greatly appreciated. This module is to slick to have it fail just at the end of the process. Help Help Please, I tried clearing my browser cache but no help there. is there a certain amount of time the user has to wait for the new features to become visible to him?

Eric

hugafish’s picture

I fixed the problem, can't believe I did not see this setting that was right in front of my face. If you have similar problems and I'm sure this has been covered but since I can't delete this post I will add to it. The settings under LM PayPal Subscriptions Settings has a little check box that reads, Rebuild menu cache on subscription change
On a user being added to/removed from a subscription rebuild the menu cache. Needed only if user logout/login fails to get the right menu items.

duh, I feel like an idiot.

Does this mean that if it happens for one user that it is probably going to happen to most users and then this check box should remain checked ? and does this slow the site down ?, is there any repercussions in using this check box that I should be aware of ?

litebulb1’s picture

I would like to make a node private so that it requires a subscription. I have the subscription all set up I just cant figure out how to make the node "private"

hugafish’s picture

I'm sure there are other ways to do this and perhaps maybe some other modules. You could create a new role called for example private and then allow certain nodes you want private to only be visible by this new role you created and then create a subscription to that role.

Eric

ithouse-andrew’s picture

Thanks for the great Module, Lee!

I'm trying to get user redirected after paying subscription fee to another page, but it does not work for some reason. What function can I use to define that the user actually paid? What exactly changes after the payment process?

I'm not too good in php, though. Please advice.

if (function_exists('lm_paypal_can_subscribe')) {
   $subid = 1;
  if (lm_paypal_can_subscribe ($subid)) {
    print 'Your registration is not complete. To subscribe to the service please click on the icon bellow:' . lm_paypal_subscribe($subid,8); }
}
 else {
   header( 'Location: http://www.mypage.com' ) ;}

Thank you!

kuldeepkaundal’s picture

Hello, i am trying to use lm_paypal module. I've installed lm_paypal module, created a lm PayPal Subscription and associated this subscription with a classified Ads node type but still i can post n see ads without any need for payment. When i click at "PayPal Subscribe", i get "No subscriptions currently defined" but, if i login as admin, i can see all the ads as unpublished,clicking at not published link takes me to a page with a paypal button. But i want this thing for the ad poster whether its admin or some other registered user.

However, if i enable "administer lm_paypal" in access control settings under user management for authenticated users, i can see all the unpublished ads by clicking at my account link, but, i don't want those permissions to be set for registered users other than administrator.

Can u suggest what am i doing wrong here while trying to use this module?