Page 1 of 1

Force SSL shortcode: s2member_force_ssl = yes

PostPosted: September 11th, 2011, 5:16 pm
by bodhed
Hi folks,

I'm new to s2Member and pretty inept at coding so forgive me if I've missed something out obvious but i just can't get the Force SSL shortcode to work on my Signup page. I have s2MemberPro 110731, the theme is Thesis 1.8. I've entered the code directly on the page:

[s2member_force_ssl = yes]

But it just ends up showing as text on the page i.e. the code isn't working! Am I entering the code wrongly?

This is a great plugin but I just can't get this little bit to work so far... Interestingly, I managed to successfully complete a signup paying via Visa without the SSL code working i.e. only normal http unsecured.

Thanks in advance.

bodhed

Re: Force SSL shortcode: s2member_force_ssl = yes

PostPosted: September 11th, 2011, 6:10 pm
by Eduan
Could you post the code x'ing out ay personal information?

Re: Force SSL shortcode: s2member_force_ssl = yes

PostPosted: September 11th, 2011, 8:37 pm
by bodhed
hi eduan,

by posting code do you mean posting the Page Source code, i.e. going to View Page Source when I'm on the page? Sorry, I'm not the most of experienced coders! If you mean what did I put on the page, all I've put in is:

[s2member_force_ssl = yes]

I've even tried just the shortcode on an empty page... Not sure why it's not playing ball. The shortcode goes straight into text when I click over from HTML to Visual editor in Wordpress so I guess it's just not recognising the code.

However, I worked out an inelegant solution creating a new page and using a 301 redirect to:

https://www.mysite.com/signup/?s2-ssl=yes

Seems to work ok but is a bit clumsy.

Thanks,

bodhed

Re: Force SSL shortcode: s2member_force_ssl = yes

PostPosted: September 11th, 2011, 8:48 pm
by bodhed
oh I just had a look at some other shortcodes that DO work on my site and the Visual editor displays them as just text anyway so ignore my comment about that above...

Re: Force SSL shortcode: s2member_force_ssl = yes

PostPosted: September 12th, 2011, 8:26 am
by Eduan
Okay...
Glad you found the answer...
I told you about the putting the code here because I might be able to solve the code for you, but seeing how you already made it...

Re: Force SSL shortcode: s2member_force_ssl = yes

PostPosted: September 12th, 2011, 11:35 am
by bodhed
thanks eduan. actually after noticing that the https remains when navigating back to other pages i installed the 'WordPress HTTPS' plugin which puts a Force SSL tickbox on each post/page so you can force https whilst the unchecked pages always force http. Works great, no longer have those silly 301 redirects and is actually easier than putting the s2member shortcode in...

Re: Force SSL shortcode: s2member_force_ssl = yes

PostPosted: September 13th, 2011, 1:03 am
by Eduan
Great! :)

Re: Force SSL shortcode: s2member_force_ssl = yes

PostPosted: September 16th, 2011, 2:39 am
by Cristián Lávaque
I just wanted to comment that s2Member's s2member_force_ssl = yes is used as a custom field for the post/page. There should be a Custom Fields panel below the editor, if there isn't, go to the Screen Options tab in the top-right and enable it. There you add the field s2member_force_ssl and give it the value yes.

I hope that helps. :)