Skip to content

Conversation

@Mizagorn
Copy link
Contributor

@Mizagorn Mizagorn commented Feb 4, 2015

The switch cases do not accurately reflect the parameter values sent via the shortcode generated (and example provided) of [s2Member-Security-Badge v="1" /] in the s2Member>>General Options>>s2Member Security Badge accordian for the 2nd and 3rd variations.

Notice this generated shortcode and example does not have v="v1", but rather it is implied that you should use v="2" or v="3".

This causes the badges generated via http://www.s2member.com/s-badges/s-details.php to be distorted when displayed because the width and height attributes are not correct (because default: is used to generate the HTML).

The switch cases do not accurately reflect the parameter values sent via the shortcode generated (and example provided) of [s2Member-Security-Badge v="1" /] in the s2Member>>General Options>>s2Member Security Badge accordian for the 2nd and 3rd variations.

Notice this generated shortcode and example does not have v="v1", but rather it is implied that you should use v="2" or v="3".

This causes the badges generated via http://www.s2member.com/s-badges/s-details.php to be distorted when displayed because the width and height attributes are not correct (because default: is used to generate the HTML).
@Mizagorn
Copy link
Contributor Author

Mizagorn commented Feb 4, 2015

Examples of distorted badges:
s2-v2
s2-v3

jaswrks pushed a commit that referenced this pull request Feb 4, 2015
Update s-badge.php for additional switch parms
@jaswrks jaswrks merged commit fa53653 into wpsharks:000000-dev Feb 4, 2015
@jaswrks
Copy link
Contributor

jaswrks commented Feb 4, 2015

Thanks so much! I'll make sure this goes out with the next release.

@jaswrks
Copy link
Contributor

jaswrks commented Feb 4, 2015

Next Release Changelog:

  • (s2Member/s2Member Pro) Security Badge Sizes: This release of s2Member corrects an issue with the [s2Member-Security-Badge v="1" /] shortcode. If you set v="2" or v="3", the dimensions were miscalculated. Props to @Mizagorn See this GitHub issue if you'd like additional details.

@Mizagorn
Copy link
Contributor Author

Mizagorn commented Feb 4, 2015

Sweet! Glad to be part of the best WP plugin in the history of ever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants