latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Home Forums Pam

About: Pam

Knows enough PHP, SQL, CSS and 'net culture to be dangerous and make a few bucks here and there to help feed my family.


My Latest Replies (From Various Topics)

Viewing 25 replies - 1 through 25 (of 25 total)
Author Replies
Author Replies
Posted: Saturday Nov 30th, 2013 at 7:15 pm #61533
Pam
Username: pdblizzard

This is becoming a hot topic for my clients. I have a developer license and 3 S2Member installs. My clients want to sell additional products and use a cart to collect product variables (Woo having the most features they’re looking for).

This is very much needed integration. Very few membership plugins off cart integration.

Some smart PHP/WordPress coder could make a nice buck by writing an extension for Woo and selling it there :)

I’m not that smart PHP/WordPress coder, sadly :)

Posted: Wednesday Sep 18th, 2013 at 9:25 am #59660
Pam
Username: pdblizzard

I’m a paid member and I need an answer to this please.

Posted: Saturday Jun 8th, 2013 at 7:49 am #51671
Pam
Username: pdblizzard

Darn! Good to know. Keep me posted if you find something else. It’s good to know that it’s not just me!

Posted: Wednesday Jun 5th, 2013 at 5:19 pm #51430
Pam
Username: pdblizzard

boudewijn, I sent you a friend request on Facebook so I could share another PHP plugin that I found, that works. It uses short codes like [php] before your code, instead of of the

<?php

and it works in both editors. I didn’t know if it was appropriate to share here, but here goes:

http://wordpress.org/plugins/allow-php-in-posts-and-pages/

    Most other php exec plugins that allow execution of php within the post, page or widget, require that you don’t use the visual editor.

This is a weird problem and again: I know that we are no the only ones dealing with this issue, as there are also support requests for this out on the WP plugin repository for ezPHP.

Posted: Monday Jun 3rd, 2013 at 10:25 am #51217
Pam
Username: pdblizzard

I would appreciate more assistance in running this down. I know that we are no the only ones dealing with this issue, as there are also support requests for this out on the WP plugin repository for ezPHP.

I found another plugin that works, but it requires that you use short codes to get the actual code processed. I would prefer to use your plugin, of course! ;)

Please note:
* disabling all other plugins
* reverting to a 2011 or 2012 theme
* disabling visual editor

does NOT work

Weird thing is I set up a brand-new WP install with Server Press on my local machine, the plug in works fine.

I ran the server check on my production server where the plugin is NOT working and received the following errors and would appreciate your comments on which items (or if ALL items) might be the culprit:

Server Scan By: s2Member®

The following issues were discovered…

Error[ERROR] Multibyte String Extension
Missing PHP extension. s2Member® needs the mbstring extension for PHP. This will add multibyte support to your installation of PHP, allowing UTF-8 character conversion. Please consult with your web hosting company about this message.

Error[ERROR] Mcrypt/Encryption Extension
Missing Mcrypt extension. s2Member® needs the Mcrypt extension for PHP. This will add encryption support to your installation of PHP, with a variety of block algorithms; such as DES, TripleDES, and Blowfish. Please consult with your web hosting company about this message.

Error[ERROR] GD Image Extension (FreeType Support)
Missing FreeType library for GD Image extension. s2Member® needs the GD Image extension for PHP, with the FreeType library also. This will add image creation support to your installation of PHP, so that images can be generated dynamically. FreeType makes it possible for fonts to be used in image generation. Please consult with your web hosting company about this message.
Notice[NOTICE] WordPress® Memory Limit
AUTO-FIX!dismiss?

Although NOT required, s2Member® recommends that you raise your WordPress® memory limit (please set: WP_MEMORY_LIMIT in /wp-config.php), to at least 64M (i.e. 64 megabytes). Please see: this how-to article. Or consult with your web hosting company about this message. Your current memory limit allows only: 40M

Posted: Friday May 31st, 2013 at 7:57 pm #51086
Pam
Username: pdblizzard

I also said earlier:

I checked another website of mine that uses another older PHP enabling plugin, ‘Exec PHP’ and the same thing is happening with it, so perhaps it’s a WP thing, not confined to ezPHP.

This is a larger issue than just your plugin. It seems to be with the way WP is saving and stripping the text/code to the DB. Must be since the last WP core update,because if I don’t go back and re-save those old posts with PHP (regardless of plugin) we’re ok.

You’ll have bigger issues if your customers cannot use the PHP conditionalsj with s2member. Just sayin’ ;)

Posted: Friday May 31st, 2013 at 7:46 pm #51084
Pam
Username: pdblizzard

My friend, I already said, I disabled all plugins and went to the 2011 style.

This is a plugin that is referred to all throughout your docs with regard to PHP conditionals.

Posted: Friday May 31st, 2013 at 7:16 pm #51082
Pam
Username: pdblizzard

My visual editor is disabled:

http://dev.technicraft.net/test/

Posted: Friday May 31st, 2013 at 11:23 am #51053
Pam
Username: pdblizzard

Cristián and Jason,
This answer does not apply to what’s happening. I am only using the TEXT editor. Please re-read the whole of my post above. (I also said there, “I only use the text editor when editing/saving a post or page with PHP.”

Thank you.

Posted: Thursday May 30th, 2013 at 6:30 am #50929
Pam
Username: pdblizzard

I am using Version 130123 also. I have disabled all other plugins, and reverted to 2011 theme and still the same problem. I only use the text editor when editing/saving a post or page with PHP.

I checked another website of mine that uses another older PHP enabling plugin, ‘Exec PHP’ and the same thing is happening with it, so perhaps it’s a WP thing, not confined to ezPHP.

With regard to ezPHP:

It only happens if I attempt to re-save the page/post that includes php. All my existing older code is still working, with no space.

I can go into the database and edit it directly to take out the space, resave the row, and that solves the problem.

Posted: Monday Apr 15th, 2013 at 8:07 pm #47555
Pam
Username: pdblizzard

Good to know. Thanks.

Posted: Monday Apr 15th, 2013 at 4:38 pm #47519
Pam
Username: pdblizzard

Hi Bruce, thank you for your help.
The page is this: http://barbaracarrellas.com/example-page-for-s2member-support/

And the code is set to level=”0″ as I gave in the example above.
The resulting error message is:

Invalid form configuration. Missing "level" attribute. Membership Level. Must be numeric [1-4], or an asterisk (*).
Posted: Friday Apr 12th, 2013 at 8:12 pm #47357
Pam
Username: pdblizzard

Done :-)

Posted: Thursday Apr 11th, 2013 at 3:53 pm #47222
Pam
Username: pdblizzard

No, not a thing. Just the short code. Here’s an example:

http://barbaracarrellas.com/example-page-for-s2member-support/

Posted: Thursday Apr 11th, 2013 at 9:05 am #47186
Pam
Username: pdblizzard

I did that, to the best of my ability with out examples to go from. I put together this code:

[s2Member-Pro-PayPal-Form level="0" ccaps="myil" desc="Meeting Your IL" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="mydomain.com" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="L" rr="BN" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" success='http://mydomain.com/meeting-your-il/download-meeting-your-il' /]

When the page displays, this error message is at the top of the form:

You must login before making this purchase.

Which conflicts with the fact that I’m displaying a “register” form below, so I can combine registration and one time payment into one step. What am I doing wrong in the shortcode? Thanks!

Posted: Sunday Nov 25th, 2012 at 7:09 pm #32553
Pam
Username: pdblizzard

Does not work in IE, Firefox or Chrome. I’ll do some quick troubleshooting but it looks like I can’t use the donation code example. I’ll probably begin working right away on passing variables into a short code.

Thank you so much for your time. I know that it can be done, it’s finding the right inroads :)

Posted: Sunday Nov 25th, 2012 at 4:08 pm #32548
Pam
Username: pdblizzard

Ok, this is using your code, the only changes I made, is that I used a regular PayPal button (Button Code Generator For Independent Custom Capabilities), to change the short code, and there I changed output=”button” to output=”url”.

From this url, I input a $ amount, (32.00)
http://insightfulastrology.tv/word/button-sale/
and get this:
http://insightfulastrology.tv/?x=84&y=10

– do you think its’ because I have WP in a subdirectory and not in the root?

<?php
// Define the donation_button function
function donation_button() {
   echo '<!--raw-->
   <form action="/" method="get"><br />
       <p><label for="paypal-order">Choose the amount you want to donate</label><br />
       <input type="text" id="paypal-order" /><br />
       <span style="font-size: small;">Please make sure to define the amount of cents (e.g. 10.88, 34.00, etc.).</span>
       <p><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal" /></p>
   </form>
   <!--/raw-->';
}

// Adds a shortcode for the donation button
add_shortcode('donation-button', 'donation_button');

// Check if the paypal-order variable is set
if(isset($_GET['paypal-order'])) {
   // Makes sure WordPress and all the plugins are loaded before running the forward_to_paypal function
   add_action('wp_loaded', 'forward_to_paypal', 1);

   // Define the forward_to_paypal function
   function forward_to_paypal() {
       // Define a variable and some arrays
       $amount = (float) $_GET['paypal-order'];

       // Check if the chosen value in the $ra array exists
       if(isset($ra[$option])) {
           // If it does exist, then make an s2Member shortcode and make it output an URL, and then save the URL in the $url variable
           $url = do_shortcode('[s2Member-PayPal-Button level="1" ccaps="" desc="a sample description here" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="insightfulastrology.tv" ta="0" tp="0" tt="D" ra="' . $option . '" rp="1" rt="L" rr="BN" rrt="" rra="1" image="default" output="url" /] ');

           // Redirect user to the resulting shortcode URL
           header('Location: ' . $url);
       }

       // Else, just redirect to the page the user was in
       header('Location: ' . $_SERVER['HTTP_REFERER']);
   }
}
Posted: Sunday Nov 25th, 2012 at 3:44 pm #32546
Pam
Username: pdblizzard

Ok I’m going to start over again, not changing the variables, only the “amount” and “Ccaps”.

The indenting may have happened in DreamWeaver Cs6 so I will try to keep that the same.
I’ll use a PayPal button, not the proforms and see what happens.

I SO appreciate your feedback, and assistance. I am already learning so much from your example.

Posted: Sunday Nov 25th, 2012 at 2:59 pm #32540
Pam
Username: pdblizzard

You are so kind to help me with this! I’m sure I will use it over and over again once I get it. I understand each peice, but just not how it all fits together.

Here’s my hack, based on your donation hack, my own comments added // after yours//.

<?php
// Define the donation_button function// I've added a drop down list to select one from a list of 12, the values being the CCAPs
function video_button() {
    echo '<!--raw-->
    <form action="/" method="get"><br />
        <p><label for="paypal-order">Select your Videos</label><br />
		<select id=video1 name="video1">
<option value="aries2013">Aries</option>
<option value="taurus2013">Taurus</option>
<option value="gemini2013">Gemini</option>
<option value="cancer2013">Cancer</option>
<option value="leo2013">Leo</option>
<option value="virgo2013">Virgo</option>
<option value="libra2013">Libra</option>
<option value="scorpio2013">Scorpio</option>
<option value="sagittarius2013">Sagittarius</option>
<option value="capricorn2013">Capricorn</option>
<option value="aquarius2013">Aquarius</option>
<option value="pisces2013">Pisces</option>
</select>:<br />
       
        <p><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal" /></p>
    </form>
    <!--/raw-->';
}
 
// Adds a shortcode for the donation button // where I have changed the name to video-button
add_shortcode('video-button', 'video_button');
 
// Check if the paypal-order variable is set
if(isset($_GET['paypal-order'])) {
    // Makes sure WordPress and all the plugins are loaded before running the forward_to_paypal function
    add_action('wp_loaded', 'forward_to_paypal', 1);
 
    // Define the forward_to_paypal function
    function forward_to_paypal() {
        // Define a variable and some arrays
        $video1 = (float) $_GET['paypal-order'];
 
        // Check if the chosen value in the $ra array exists
        if(isset($cccaps[$option])) {
            // If it does exist, then make an s2Member shortcode and make it output an URL, and then save the URL in the $url variable// this was the code created in my back end using Pro Form Generator For Independent Custom Capabilities
		  $url = do_shortcode('[s2Member-Pro-PayPal-Form level="*" ccaps="' . $option . '" desc="2013 Year Ahead Videos" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="insightfulastrology.tv/word" ra="0.01" rp="1" rt="L" rr="BN" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" output="url" captcha="0" /]  ');
       // Redirect user to the resulting shortcode URL
            header('Location: ' . $url);
        }
 
        // Else, just redirect to the page the user was in
        header('Location: ' . $_SERVER['HTTP_REFERER']);
    }
}

Here’s the test post I made with the short code “video-button” short code: http://insightfulastrology.tv/word/button-sale/

Location of the hack is http://insightfulastrology.tv/word/wp-content/mu-plugins/video-button.php

Please note the ROOT of this WP installation is http://insightfulastrology.tv/word/ This is our test site, not her real, live site.

Posted: Sunday Nov 25th, 2012 at 10:15 am #32535
Pam
Username: pdblizzard

output=”url” in the short code is what I have, and it’s still just reloading with this as the url:

http://mysite.tv/?video1=videojan2013&x=87&y=6

Posted: Sunday Nov 25th, 2012 at 12:11 am #32516
Pam
Username: pdblizzard

Ok, yes, I’m starting to piece it all together, thank you.

I took your donation code, and changed it to match my own product, changing the “amount” variable to a CCAPS variable instead, and changing the button short code to my own created, [s2Member-Pro-PayPal-Form level=”*”…etc etc.

I’m unclear on what URL to send the output to, for ” Another important thing, change the output value to url,
otherwise you won’t be able to redrect the user.” When I click the button, it looks great, but it only sends me to my own site. Can you clarify what I need to do to actually get the short code to send it to PayPal and not my own site?

thanks!

Posted: Thursday Nov 22nd, 2012 at 4:34 pm #32374
Pam
Username: pdblizzard

Let me clarify what I’m trying to do.
I have 12 how-to videos. Ill make each video a Custom Capability on a post, and not require a subscription for purchase.

I’d like to offer 2 videos for $2.99 or all 12 for 12.99.

Customer #1 may want Video 1 and Video 6.
Customer #2 may want Video 3 and Video 7.
Customer #3 may want Videos 2, 4, 7, and 9.

I know how to collect which videos they want with PHP and retain them as variables. My question is, how would I pass the Video number(s) as Custom Capabilities for that customer and the $$ amount to Paypal for purchase.

An example is nice, but if you can tell me where the documentation for passing PHP variables to S2member is, I’d appreciate it. I’m searching but not finding quite all the pieces I’m guessing that I need. THANKS!

Posted: Wednesday Nov 21st, 2012 at 9:12 pm #32300
Pam
Username: pdblizzard

Thank you so much for your thorough reply.

I know PHP enough to take some code and change it to my needs, and troubleshoot, but not to write from scratch.

Do you know of an example I could modify?

Thanks!!!!

Posted: Monday Oct 8th, 2012 at 3:06 pm #27826
Pam
Username: pdblizzard

Thanks Eduan, I really appreciate your attempts to help.

I’m still looking for answers from a support person since I’m a paid member :)O

Posted: Monday Oct 8th, 2012 at 1:49 pm #27812
Pam
Username: pdblizzard

What is the field for then?

How does the user get demoted from a paying member (“1”) to a regular user (“0”) ? And how does this work with Mail Chimp? This membership is includes access to a newsletter for paying members only.

Viewing 25 replies - 1 through 25 (of 25 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.