PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

BUG in 3.2.8: Errors in generated button markup

s2Member Plugin. A Membership plugin for WordPress®.

BUG in 3.2.8: Errors in generated button markup

Postby sugeneris » October 25th, 2010, 2:44 pm

The HTML generated by the plugin has a bunch of lines in it that look like this:
Code: Select all
<!--<input type="hidden" name="a3" value="1.99" />-->

...which is incorrect.
The full HTML tag within the comment ends up breaking the comment tag itself, with the result that the rendered page looks like this:
Code: Select all
–>
–>
–>
[button image]

(The commenting is done three times in my case, possibly different for different settings.)

The same bad markup comes out of using the shortcodes.
User avatar
sugeneris
Registered User
Registered User
 
Posts: 20
Joined: October 15, 2010

Re: BUG in 3.2.8: Errors in generated button markup

Postby Jason Caldwell » October 25th, 2010, 10:13 pm

Hi there. Thanks for reporting this important issue.

Not to worry, this is the intended behavior. s2Member's application of HTML comments within your Button Code is expected, and it is perfectly valid HTML markup. Please see:
http://www.tizag.com/htmlT/htmlcomments.php

Code: Select all
<!--<input type="hidden" name="a3" value="1.99" />-->
This is valid HTML markup for a comment.

Now, if you're seeing comment lines in the output of your code, that would indicate to me that your Button Code is becoming corrupted in some way. It is not uncommon for this to happen with the Full Button Code, because the WordPress® Visual Editor often causes conflicts with raw HTML code. I've also seen corruption caused by output filters applied by WordPress® itself. This is why the Shortcode format is recommended.

So it sounds like there is something in your WordPress theme, or possibly a conflict with the Visual Editor that is causing this. You might give this plugin a shot RAW HTML ( http://wordpress.org/extend/plugins/raw-html/ ).

If the Full Button Code continues to give you trouble, you might try adding it into a theme file directly. If none of that works for you, you may have to revert back to using the Shortcode format supplied by s2Member. Please let us know if you need further assistance on this topic.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron