Are PayPal

September 9, 2010

I think this plugin may work for something …

Filed under: — Aurimas @ 1:40 pm

Comment posted on Are-PayPal Version v1.5.0 was released by CS

i think this plugin may work for something i would like to do on my website. i am working on a photoshop tutorial that is taking me a long time to put together. i’d like to charge people a small fee to see the tutorial.

my question is, do i have to let users register for user accounts on my wordpress installation before they will be able to pay and see the post? i currently don’t use the user registration component of my website for comments or anything.

thanks!

powered by SEO Super Comments

  • Share/Bookmark

80 Comments

  1. Hello, i have the last upgrade before this. my question is if i want to update to this version what have i to do. Do I lost the past information?

    Thanks

    Comment by patrick — November 7, 2008 @ 2:20 am

  2. I should be possible to upgrade using your plugins administration panel in your blog

    Comment by Aurimas — November 7, 2008 @ 12:49 pm

  3. Sorry, but I can’t find the link to download. Where is it?

    JOE

    Comment by thejoemeister — November 11, 2008 @ 3:53 pm

  4. Just added a link to WordPress plugin storage where is Are PayPal available for download:)

    Comment by Aurimas — November 11, 2008 @ 4:00 pm

  5. [...] go over a few of the plug-ins that could be useful to you. Are PayPal – A great plug-in to monetize your website. Secure some of your posts with this plug-in and have [...]

    Pingback by The Money Making Website » Handy Plug-ins for Wordpress to help you monetize your blog. — November 15, 2008 @ 4:20 pm

  6. i think this plugin may work for something i would like to do on my website. i am working on a photoshop tutorial that is taking me a long time to put together. i’d like to charge people a small fee to see the tutorial.

    my question is, do i have to let users register for user accounts on my wordpress installation before they will be able to pay and see the post? i currently don’t use the user registration component of my website for comments or anything.

    thanks!

    Comment by CS — December 6, 2008 @ 5:37 pm

  7. CS> Yes you have to let users to register on your blog. This is neaded as it is the only way to distinguish payed and unpayed site viewers. As I remember you have setting “Allow users to register” or something on your wordpress administration panel.

    Comment by Aurimas — December 7, 2008 @ 2:33 pm

  8. Hi there, your script is amazing but i have one issue:

    I was using easy paypal and I did not really like, so i changed over to are paypal but i have over 200 paid members. How can i add them to Are Paypal database so that they have there access to my site that are already paid members.

    Please help.

    Thanks

    Comment by azeoeko — December 14, 2008 @ 5:44 pm

  9. Azeoeko,
    If you have users paying for the whole blog you can enter “Blog price” and all the payed content pieces will contain paypal button to pay for every piece of hidden content.
    How to migrate users?

    check table “wp_Are_PayPal_users” user_id must be wordpress user if post_id is a wordpress post id for the whole blog post_id must be “-1″.

    As you asked I’ve found that there are no user administration for users who purchased complete blog. I’ll add this to my task list.
    Thank you.

    Comment by Aurimas — December 14, 2008 @ 8:25 pm

  10. Thank you so much ! This is what I did but its not allowing my old paypal subscribers to see my [are-paypal_login] hidden links:

    This what I did:

    INSERT INTO `wp_are_paypal_users` (`id`, `post_id`, `user_id`, `expire`, `purchase_date`) VALUES
    (1, -1, 1, 30, ’2008-12-13 13:22:26′),
    (44, -1, 1, 30, ’2008-10-05 01:39:04′),
    (235, -1, 1, 30, ’2008-11-25 21:15:04′),
    (266, -1, 160, 30, ’2008-12-14 13:59:21′);

    This is just some of my paid members. Is there anything else I need to do ?

    It would be great if you can add one more task within the admin panel under are paypal and that is to add an option to be able to add members manually.

    Regards,

    Azeko

    Comment by azeoeko — December 14, 2008 @ 9:35 pm

  11. try
    INSERT INTO `wp_are_paypal_users` (`id`, `post_id`, `user_id`, `expire`, `purchase_date`) VALUES
    (NULL, -1, , 30, ’2008-12-13 13:22:26′);

    id is autoincrement – just for internal reference it means nothing
    post_id is a link to post from posts table for whole blog – use -1
    user_id is a link to user from users table
    expire – interval in days
    purchase_date – time of purchase

    I hope this helps. In your script user_id is set to 1 almost for every record it is something wrong.

    Comment by Aurimas — December 15, 2008 @ 12:07 am

  12. Thank you so much with your help i was able to upload to my sql the correct data. This is how I did it:

    INSERT INTO `wp_are_paypal_users` (`id`, `post_id`, `user_id`, `expire`, `purchase_date`) VALUES

    (397,-1,280,30,’2008-12-13 10:13:58′),
    (397,-1,482,30,’2008-12-09 10:13:58′);

    Thanks again ! Great work on this plugin. Hopefully we can add an option to be able to add paid paypal members manually through your are paypal plugin from the admin.

    Thanks

    Comment by azeoeko — December 15, 2008 @ 4:19 am

  13. It is possible to add paid paypal members for individual posts not for the whole bloh yet. I am going to implement this. One more thing I am looking forward is a possibility to regulate subscription times for paid users, this is also not possible for now. But anyway this plugin is quite good now, having in mind even Microsofts strategy to have only 80% of the user needs in their products.

    Comment by Aurimas — December 15, 2008 @ 11:17 am

  14. Hi there , just a question on your plugin. Let’s say I added all my members that paid with easy paypal plugin. This plugin did not have auto subscription. Now I add all my users through paypal_users through my sql and use tomorrows date, will this automatically charge them for the next 30 if I add them like this below ? please help.

    INSERT INTO `wp_are_paypal_users` (`id`, `post_id`, `user_id`, `expire`, `purchase_date`) VALUES
    (874, -1, 2452, 30, ’2008-12-16 12:00:00′);

    Please let me know, so I can plug & play.

    Thanks

    Comment by azeoeko — December 16, 2008 @ 6:02 am

  15. Hi I’ve received hundreds of emails for one transaction over multiple days. Is this normal? How do I stop it? Is it caught in a loop?

    The subject of the emails look like:
    IPN Duplicate txt
    IPN subscr_payment
    VERIFIED IPN
    IPN web_accept

    Please help! I love the plugin otherwise..

    Comment by Jason Strick — December 19, 2008 @ 8:44 am

  16. Jason,

    These emails are for debug and for the future inspection. everytime paypal sends something to the ipn handler email is produced with everything what is posted by paypal. This is good for future investigation in case you have some user who claims he or she payed but cant see the content etc. i am sure something goes wrongg as you are receiving duplicate txn email. It can be that this must be investigated further. If you want you can forward me these emails togather with a copy of all your are_paypal mysql tables content I could take a look. It can be that there is a bug. I am thinking about adding administration control/feature to suppress these emails.

    Comment by Aurimas — December 20, 2008 @ 5:30 pm

  17. “I am thinking about adding administration control/feature to suppress these emails.”

    That would be awesome !

    Comment by azeoeko — December 20, 2008 @ 8:10 pm

  18. [...] of extra cash with it? Want to know how many have downloaded it after they have paid you using the ArePayPal plugin? Just use this handy plugin to upload your ebook. Track the downloads and secure it to [...]

    Pingback by The Money Making Website » A Few More Handy WordPress Plugins — December 27, 2008 @ 7:20 pm

  19. Just installed the plug-in, everything works, except 1 thing: “Update options” on the configuration page. Known bug, or what’s the problem? All other pages’ buttons work; this page doesn’t.

    Also, for IPN, my Paypal has several accounts attached to it, with various actions. So can I use the “notify url” option Paypal talk about? If so, can I just “do it”, or do I need to wait until a newer version of ArePaypal comes out, i.e. you having to do something for that to work?

    Comment by Filip — December 31, 2008 @ 11:01 am

  20. Filip,

    I dont know what is wrong with the main configuration page and the button “Update options”. Please provide more details.

    The only possible way for IPN is url configured in paypal account.

    I think it is a good idea to implement notification url parameter for every button I’ll check this possibility and I’ll try to implement this.

    Comment by Aurimas — January 1, 2009 @ 8:00 pm

  21. where is the download link for the new version?

    Comment by slothdog — January 7, 2009 @ 8:49 pm

  22. slothdog> check blogroll links It is not very visible but It is there :)

    I will place it somewhere else to make it more visible:)

    Comment by Aurimas — January 7, 2009 @ 11:49 pm

  23. I found it. Thanks.

    I have a question, I set up 2 post with different prices, if you pay for one, you can see both for some reason, how do I set it up to have to pay for each post individually?

    Comment by slothdog — January 8, 2009 @ 1:43 am

  24. I did a test – plugin works fine. I think some mistake is in your configuration.
    Make sure you do not have one of your posts as bonus post for the other.
    Make sure you do not have blog price specified and you do not have blog purchased by your test user.

    Comment by Aurimas — January 8, 2009 @ 12:59 pm

  25. (Cross-posted on the WP support forum at http://wordpress.org/support/topic/163060?replies=7)

    I want to use this with WordPress MU (WPMU) as well. No luck so far.

    In the Post Prices panel, I see “No Posts Found” but the blog on which I’ve activated the Are_PayPal does have posts.

    At the bottom of the Are_PayPal panel, the URLTEXT link target is http:///wpmu//wp-admin/URL. That is not a valid URL.

    Where are the instructions for using the templates?

    My guess is this plugin is not compatible with WPMU but I don’t have the technical expertise to isolate the incompatibility.

    Comment by Jon — January 13, 2009 @ 3:43 am

  26. is there a way to use this outside of the post content or the loop? I’d like to enable rating of posts only for paying members, and would like content in the sidebar only to be visible to paying members.

    Thanks!

    Comment by tiki — January 13, 2009 @ 4:11 am

  27. Hi there, i love the plugin but there is one big problem. Anything that i have in between the

    [Are_PayPal_LoginPlease]
    Thanks For Choosing ……………..
    Please download the files below.
    http://rapidshare or http://mediafire
    [/Are_PayPal_LoginPlease]

    Anybody can do a google search on google with:

    Top Searches

    site:……………..com (rapidshare|mediafire),

    Any they can see my rapidshare and mediafire links all over my wordpress in the search engine..

    What can i do about this ?

    This is a real issue.

    Please help.

    Comment by azeoeko — January 13, 2009 @ 7:13 am

  28. azeoeko,
    The content is visible for google. This is not a bug but a feature.
    Google can see, but it is asked not to cache. Besides other engines are set not to see the hidden content. I think it would be good to add an administrator function to control this.

    Comment by Aurimas — January 13, 2009 @ 10:30 am

  29. There are no way for now. I think it is a good idea and I’ll try to investgate what is possible to achieve.

    Comment by Aurimas — January 13, 2009 @ 10:32 am

  30. yes the plugin is incompatible with MU. I have to investigate this incompatibility. I failed to install the latest mu version because of some WP bug. In some time I’ll retry. This issue is top priority for me. I’ll let you know about the results.

    Comment by Aurimas — January 13, 2009 @ 10:33 am

  31. Thank you so much.

    Comment by azeoeko — January 13, 2009 @ 1:57 pm

  32. Hi!
    It could be great if the plugin also will manage the downloads. At the moment I can show links to download files only if a registered user pays but this user can send the link to another registered user to allow him to download the file without pay.

    By the moment I’m using filenames like jf3478hfh4jk3h3492.zip and changing the post in the database and the file in the folder with one script… but this is a little weird.

    It’s a suggestion of a feature. Thanks for the plugin!

    Comment by Topi — January 25, 2009 @ 11:59 am

  33. Topi, Yes this feature is on my mind.
    I will try to implement it someday.

    Comment by Aurimas — January 26, 2009 @ 10:42 am

  34. Hi,
    Be carrefully, they are a potential risk, because, when a user is registered he can access to plugin panel are paypal and update information, change url form …
    How to prevent it ???

    Comment by Urgently — January 26, 2009 @ 9:34 pm

  35. Great it’s moderated ! I’m using the last version : Are Paypal 1.5.3.
    When an user is registered, the hacker can access to wp-admin/admin.php?page=are-paypal/are-paypal.php and updated information !!

    Have you got a patch ?
    I’m looking for… Without this, your plugin is very performant !
    French user

    Comment by Urgently — January 26, 2009 @ 9:38 pm

  36. Thank you for the bug discovered.
    Just fixed it.

    Comment by Aurimas — January 27, 2009 @ 12:40 pm

  37. The main issue with this plugin for me is that the markers for paid-content cannot be placed in the template and therefore affect all material coming through the template.

    Instead the marker is placed on a post-by-post basis. Surely there’s a way to overcome this issue. I’d be interested in paying for such a feature.

    Comment by Adrian — January 27, 2009 @ 12:58 pm

  38. As you have probably seen the plugin main configuration page has some text areas with the templates. Isn’t this what you need? Could you please specify your needs more descriptively.

    Comment by Aurimas — January 27, 2009 @ 1:40 pm

  39. Got the plugin installed and I’ve created a PayPal sandbox user that can send back test IPN info. I’m just not sure how to use the combination to test “buying” a subscription.

    Is there a help file that steps through a complete scenario to:

    1. Setup up pricing

    2. Create a page with the subscription button

    3. Submit the page from the blog through the sandbox to determine that it has successfully processed.

    4. Setup live processing

    Definitely worth a donation if I can get it working and get paid for this current project I am working on.

    Comment by Richard Bottoms — February 4, 2009 @ 3:27 am

  40. Perhaps this is a better question to ask:

    I have the IPN function adding data to the site accessible via the PayPal link in the plugin admin section. How is the information in this entry used to verify automatically that this user can access content? I thought perhaps it’s done by having buyer@paypalsandbox.com as an email belonging to a registered user, but that didn’t work.

    So what is the trick?

    test_ipn 1
    payment_type instant
    payment_date 16:57:23 Feb. 03, 2009 PST
    payment_status Completed
    payer_status verified
    first_name John
    last_name Smith
    payer_email buyer@paypalsandbox.com
    payer_id TESTBUYERID01
    business seller@paypalsandbox.com
    receiver_email seller@paypalsandbox.com
    receiver_id TESTSELLERID1
    residence_country US
    item_name1 Subscription
    item_number1 AK-1234
    quantity1 1
    tax 2.02
    mc_currency USD
    mc_fee 0.44
    mc_gross 15.34
    mc_gross1 12.34
    mc_handling 2.06
    mc_handling1 1.67
    mc_shipping 3.02
    mc_shipping1 1.02
    txn_type cart
    txn_id 2324057
    notify_version 2.4
    custom xyz123
    Login
    Post title
    invoice abc1234
    charset windows-1252
    verify_sign A.Y6GupmI.r1Q5tqPstLBc9th0P2A8aZEmg4s5f3KiRGaESq8QZtpDkv

    Comment by Richard Bottoms — February 4, 2009 @ 8:03 am

  41. It would be good to create a help file or even a screen capture movie. But for now I have no time and my english is funny.

    Short answers to your questions

    1. Setup up pricing

    Prices can be of two types – price per post and price per blog. Paied content is determined by surrounding it with TAGS. [Are_PayPal_LoginPlease][/Are_PayPal_LoginPlease]. After these tags appear in post a price for post can be set in post prices administration section.

    2. Create a page with the subscription button

    If you want paypal to perform recurrent transfers and a page to show “subscribe” button – just enter period in days while editting post or blog price.

    3. Submit the page from the blog through the sandbox to determine that it has successfully processed.

    In order to use sandbox – just check “use sandbox” checkbox in the main administration page.
    Logout from your blog and go to the paid post. check if it contains login link instead of the hidden content.
    Press the link and register or login. You browser will be redirected back to post page and now instead of login link and hidden content you must see “buy now” or “Subscribe” paypal button. after processing with paypal your browser will be redirected again to your post. In this place there is a trick. Post can be still be unreacheable as paypal needs time to send an IPN package to your blog after this is done post must stay visible. By the way IPN url must be set properly in your paypal accounts administration area.

    4. Setup live processing

    In order to use live processing – just uncheck “use sandbox” checkbox in the main administration page

    Comment by Aurimas — February 4, 2009 @ 11:08 am

  42. I don’t know what IPN responce you have just pasted here,it is not generated by arepaypal routines. the responce to are paypal generated payment must contain field custom with a value x|y where x is user id in your blog and y is post id in your blog. This is how arepaypal works.

    Comment by Aurimas — February 4, 2009 @ 11:12 am

  43. Thanks for the responses.

    The IPN data was generated when I ran the test in the PayPal sandbox.

    I think I have the processing part understood.

    I still don’t get what happens to make USER John Smith with email addy buyer@paypalsandbox.com known as a paid member once he does a PayPal payment. According to the test message from PayPal, John Smith has paid.

    It looks like this is the place I need to adjust:

    >the responce to are paypal generated payment must contain field custom with a >value x|y where x is user id in your blog and y is post id in your blog

    But I am unclear about what you wrote means.

    Thanks for the help.

    r.b.

    Comment by Richard Bottoms — February 4, 2009 @ 5:56 pm

  44. You do not have to adjust anything this should go automatically. Just place [Are_PayPal_LoginPlease][/Are_PayPal_LoginPlease] tags on your post and the rest should work.

    Comment by Aurimas — February 4, 2009 @ 6:06 pm

  45. I get that. I am trying to understand the “why” so I can customize things. Theoretically I should be able to change the values in one of the tables associated with your plugin and John smith should be recognized as having paid.

    I need to know what table(s) and fields are the key.

    Thanks,
    r.b.

    Comment by Richard Bottoms — February 4, 2009 @ 7:04 pm

  46. I would like to know how to add the blog price subscribe button to my widget, so that when an annonymous user comes to teh site he doesn’t see but when he/she registers that teh button then appears at the side as a widget.

    Please help

    Thanks

    P.S great script !

    Comment by azeoeko — February 11, 2009 @ 1:31 am

  47. azeoeko> Widgets and anything else but posts or pages is impossible to hide for now

    Comment by Aurimas — February 11, 2009 @ 10:42 am

  48. Thanks, all i want to do is have the subscribe button on the front page all the time so people can see it and start subscribing.

    Thanks

    Comment by azeoeko — February 12, 2009 @ 12:39 am

  49. To achieve this you have to create a custom widget. To perform a check inside if user logged in and than to perform a check if user paid for whole blog and if not to display pay for blog button. This widget could be a part of arepaypal, but for now I dont have enough time and resources to do this.

    Comment by Aurimas — February 12, 2009 @ 11:43 am

  50. Thanks for your fast response.

    Comment by azeoeko — February 12, 2009 @ 4:02 pm

  51. What does this mean ???

    subscr_eot

    Comment by azeoeko — February 22, 2009 @ 10:28 pm

  52. The only time you will receive ‘subscr_eot’ is when the customer is unable to pay for the subscription or the subscription has ended.

    Comment by Aurimas — February 22, 2009 @ 10:53 pm

  53. Thanks buddy. great script ! thxs

    Comment by azeoeko — February 22, 2009 @ 10:56 pm

  54. i am usin wp 2.7.1 and tried are paypal. worked fine at the beginning, but now i am not able to update the changes or to go restaure template defaults.

    This happened while i modified the buttons and after reinstallation, cleaning up the msql database, it does not change a thing.

    Please help.

    Comment by phibi — February 24, 2009 @ 10:39 am

  55. It works with PayPal sandbox but with paypal i get following error

    The link you have used to enter the PayPal system is invalid. Please review the link and try again.

    I have checked that paypal email is correct;
    Can you guide ?

    Comment by MANOJ JAIN — February 25, 2009 @ 11:24 am

  56. Check HTML code of the paypal button. grab the action url and try to browse it. It can be some trash is attached to this url by accident.

    Comment by Aurimas — February 25, 2009 @ 11:50 am

  57. Thanks for fast reply.

    I have not changed anything in code, just entered my email address.

    Code works fine in sandbox.

    Am I supposed to do some setting in my paypal account?

    Comment by MANOJ JAIN — February 25, 2009 @ 12:03 pm

  58. paypal email is on the same html form as button templates and it can be that some CRLF or something else is affecting the url of the button…

    Comment by Aurimas — February 25, 2009 @ 12:55 pm

  59. where file is located?
    I tried to locate the file but did not find.

    I un-installed the Are-PAypal, delete tables from database and re-installed. It displayed same customised setting on Are_Paypal configuration page…

    Comment by MANOJ JAIN — February 25, 2009 @ 1:48 pm

  60. Some settigs are storred in configuration table of WordPress

    Comment by Aurimas — February 25, 2009 @ 2:06 pm

  61. To revert back to original “Button Text” I copied button text from are-paypal.php and pasted in admin section.

    I am still facing same problem;
    When using send box, first I gave email id which was used to create sand box so it displayed transaction screen but transaction was not allowed and it said same message as “The link you have used to enter the PayPal system is invalid. Please review the link and try again. ”

    When I used Saller account I have created in my sandbox it again gave same error as above.

    I have simply copied button text from are-paypal.php; which should be correct (I have downloaded right now)

    Please help in Paypal set up. Once this first step is over we will think of customization.

    Comment by MANOJ JAIN — February 25, 2009 @ 2:52 pm

  62. Great… Your problem is related to the fact that you are going to charge for 365 days. And paypal does not like this for some reason… I was avoiding to implement more advanced control for setting a period and now it looks that paypal has some limit of days for recurrent payments. So this is a task for the future – add a choice between days weeks months or year:)

    Comment by Aurimas — February 25, 2009 @ 3:35 pm

  63. I only want instant payment and not recurring payment

    365 days is only for validity not for recurring payment.

    We require 365 days or 1 Year for validity payment will be “Buy Now” and not “Subscribe”

    Can you suggest change in code..

    Comment by MANOJ JAIN — February 25, 2009 @ 3:49 pm

  64. leave period field empty and you will have instant payment. User will be able to read purchased article what ever he desires.

    Comment by Aurimas — February 25, 2009 @ 4:02 pm

  65. I want fix period of access for user.
    But I dot not want recurring payment, after expiry of period user can buy again
    Please advice:
    Database is updated from PayPal or directly as per setting,
    If will remove period part from button, will everything work

    Comment by MANOJ JAIN — February 25, 2009 @ 4:57 pm

  66. Unfortunaly there are only two possibilities. Or subscription with automatic recurrent payment or instant payment but user will be able to read purchased content for ever. I am not sure if I should introduce the option you need as this is quite specific.

    Comment by Aurimas — February 25, 2009 @ 5:04 pm

  67. Thanks; No problem I will try some work arounds

    The caption in Blog Price and Post price is “Expire (period in days)”

    which means I can enter only numerical values and paypal will not take more than 30 days.

    How should I enter 1 Year than,

    Comment by MANOJ JAIN — February 25, 2009 @ 5:09 pm

  68. unfortunately it is impossible to set one year for now. try to experiment I succeded to add 75 days, but failed 95. Try different numbers maybe 275 will work or smth. I will ad a feature to have different time grains like year week in the future not only days.

    Comment by Aurimas — February 25, 2009 @ 5:13 pm

  69. Thanks a lot; we will work around to see what is best possible senario

    Will update you …..

    Comment by MANOJ JAIN — February 25, 2009 @ 5:17 pm

  70. Hello,

    I recently installed Are Paypal, and under the Paypal Data link, I get the following error:

    WordPress database error: [Table 'db277442926.wp_are_paypal_paypal_requests' doesn't exist]
    select * from wp_are_paypal_paypal_requests

    Can anyone help me with this please?

    Comment by Amajindat — March 10, 2009 @ 4:59 am

  71. Could you check if it exists in your database through some other tool.

    Comment by Aurimas — March 19, 2009 @ 4:33 pm

  72. How do I download and install this?

    Comment by chris — March 20, 2009 @ 8:45 pm

  73. Like any other plugin hosted in wordpress.org plugin repository :) – check download link in blogroll :)

    Comment by Aurimas — March 20, 2009 @ 8:52 pm

  74. [cross posted from WordPress.org support forum, please apologisze if any dupplicate]

    Hello.

    I intend to monetize some content with the help of the (amazing!) Are Paypal plugin that works fine for my needs. What fits well is the framework within witch, before beeing able to pay, the customer have to sign up to the blog. So that, he gets a permanent account.
    Besides, I’d like to grant my customers with the list of the posts they purchased, for future reference if they need to access them again. Kind a “My Library”.

    There is the point: I wrote yet the correct mySQL query that returns the right posts ID, but I definitely lack the skills required to create the PHP functions that I could call in my template. this function could populate the famous loop:

    I would greatly appreciate some help.
    Thanks in advance and, best regards.

    François-Xavier Bodin – Bordeaux – France

    Comment by François-Xavier Bodin — March 21, 2009 @ 2:58 pm

  75. Great idea. I will put it on my TODO list. But I dont know how fast will I be to implement it.

    Comment by Aurimas — March 21, 2009 @ 10:51 pm

  76. Hi Aurimas.
    It’s nice you’re interested.
    I tried forward and arivend at something like that
    `function myLibrary($content) {
    global $wpdb;
    if ( is_page(‘mylibrary’) ) // granted it’s the page where you want it displayed
    {
    $sql = ‘select post_id FROM wp_1_are_paypal_users WHERE user_id =”1″‘; // 1 for tests
    $listeModules = $wpdb->get_results($sql, OBJECT);
    if ($listeModules) :
    foreach ($listeModules as $post) :
    setup_postdata($post);
    $content.= the_title();
    endforeach;
    endif;
    }
    return $content;
    }
    add_filter (‘the_content’, ‘pageMaBibliotheque’);`

    It addresses the right page, dont generate error, but it fails returning the 2 post title I’m waiting for; instead, it returns twice the title of the display page.

    When I was saying I’m not skilled in php :-(

    Where am I wrong?
    Regards.

    Comment by François-Xavier Bodin — March 21, 2009 @ 11:07 pm

  77. Sorry, it ends like that :

    `add_filter (’the_content’, ‘mylibrary’);`

    Comment by François-Xavier Bodin — March 21, 2009 @ 11:10 pm

  78. I would use something else instead of

    setup_postdata($post);
    $content.= the_title();

    As this select returns something what is not actually a post. Join this table to posts table and retrieve title like this $post->title (I am not sure if the column name title is title in posts table check this :) )

    Let me know about the result …

    Comment by Aurimas — March 21, 2009 @ 11:20 pm

  79. I noticed in my wordpress plugins admin section that there is a new version 1.5.9. Also, there is a link that says to update automatically. When I click the link a page pops up asking for hostname, username and password for an ftp site where the plugin resides. How do I fill out this information? Can I just download the plugin .zip file and replace the directory in wp-content/plugins ?

    Comment by Charles Lemmon — May 1, 2009 @ 1:26 am

  80. Automatic update function is a native wordpress function, not are-paypal plugins:) You can find more info about it on WP documentation site. Of course you can just download latest zip. Deactivate the plugin – replace tha scripts and activate it again … But using automatic update feature this would be easier – just check WP documentation :)

    Comment by Aurimas — May 1, 2009 @ 2:04 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress