wpsharks / s2member-kb

The s2Member® and s2Member® Pro Knowledge Base
9 stars 4 forks source link

Can I add the New EOT Shortcode to the PRO Login Widget? #253

Closed renzms closed 9 years ago

renzms commented 9 years ago
KB Article Creation Checklist

Published @ s2Member.com: http://s2member.com/kb-article/can-the-eot-time-be-added-to-the-pro-login-widget/

View Markdown File

jaswrks commented 9 years ago

Hey! :-) Great to see you working on KBAs like this. Thank you!


Can I Add The New EOT Shortcode To PRO Login Widget?

Questions can be written without title-case. e.g., Can I add the new EOT Shortcode to the Pro Login Widget?

Note that:


Yes, you should be able to add it using PHP code

I realize this is just a draft, but try to refrain from using words like "should" or "might" or "maybe". You want the article to present an official answer to the question. Words like should or maybe suggest that it might be the right answer, and that's not what people want to see in the official KB for the software.

Remember you can always ask one of us if you're unsure.


The Pro Login Widget supports arbitrary XHTML/PHP and even shortcodes. So I don't think it's absolutely necessary to install something like ezPHP to answer this question. I think mentioning ezPHP is great, but we should also mention that the Pro Login Widget has these fields that you can use. In fact, you could even insert the [s2Eot /] shortcode right into these fields.

2015-08-12_01-17-04

raamdev commented 9 years ago

In fact, you could even insert the [s2Eot /] shortcode right into these fields.

@jaswsinc Interesting. I was not even aware of that. :-) Should any WordPress shortcode work there? If so, maybe we can change those field titles to "Additional XHTML/PHP Code or Shortcode?"

renzms commented 9 years ago

@jaswsinc

Thanks for the feedback and guidance! I'll take note of the changes and edit the draft. I didn't know you could just use the short code straight into the widget fields, so thanks for that too. I'll make the article explain that shortcode can be used to show EOT and also the method for using PHP as an additional method to show EOT. That should cover all bases.

renzms commented 9 years ago

"Additional XHTML/PHP Code or Shortcode?"

@jaswsinc and @raamdev , I agree with Raam, maybe it should include the words "and Shortcodes". But like he asked, are there any limitations on the shortcodes that should work, or is it only applicable to certain s2member shortcodes?

jaswrks commented 9 years ago

Should any WordPress shortcode work there?

Yes. Any shortcode should work here. I'm opening an issue here. I agree. https://github.com/websharks/s2member/issues/691

jaswrks commented 9 years ago

@renzms Latest improvements look good! :-)