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™

[SideBar Plugin]How to make client area work in sidebar?

s2Member Plugin. A Membership plugin for WordPress®.

[SideBar Plugin]How to make client area work in sidebar?

Postby adam1987 » January 30th, 2012, 11:54 am

Hi, Everyone:

I know the code for client area redirect works in post, html widget, but I have problem when I try to use it inside the Settings-->Sidebar Login (exact name for the plugin and I already installed Exec PHP)
I use is this code for client redirect once clicked:

<a class="button clientArea" href="<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>">Client Area</a>

I wonder how can I put this code inside the Sidebar Login Setting. It was suggested by S2Member to use.

Thank You
User avatar
adam1987
Registered User
Registered User
 
Posts: 24
Joined: January 20, 2012

Re: [SideBar Plugin]How to make client area work in sidebar?

Postby Cristián Lávaque » January 31st, 2012, 4:20 am

If the widget doesn't parse PHP, then it won't work. If it parses shortcode, you can try the shortcode for that constant.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: [SideBar Plugin]How to make client area work in sidebar?

Postby adam1987 » February 1st, 2012, 10:18 am

ok, let me see how to do that.....replying in a bit.
User avatar
adam1987
Registered User
Registered User
 
Posts: 24
Joined: January 20, 2012

Re: [SideBar Plugin]How to make client area work in sidebar?

Postby adam1987 » February 1st, 2012, 10:43 am

Hi, I tried to do it with Shortcode Exec PHP I did it. Thanks :)
For whoever want to do this, dont put <?php when you use this plugin
Last edited by adam1987 on February 1st, 2012, 10:47 am, edited 1 time in total.
User avatar
adam1987
Registered User
Registered User
 
Posts: 24
Joined: January 20, 2012

Re: [SideBar Plugin]How to make client area work in sidebar?

Postby Eduan » February 1st, 2012, 10:47 am

Have you tried it with Exec-PHP? Not Shortcode Exec PHP but Exec-PHP.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: [SideBar Plugin]How to make client area work in sidebar?

Postby adam1987 » February 1st, 2012, 10:49 am

HI eduan, I tried Exec-PHP, can it generate shortcode? i did not see it has such function so I use the other one :)
And it works, see my edited post before you :)

Appreciate you timely help though :D

Have a good ...(day/night) XD
User avatar
adam1987
Registered User
Registered User
 
Posts: 24
Joined: January 20, 2012

Re: [SideBar Plugin]How to make client area work in sidebar?

Postby Cristián Lávaque » February 3rd, 2012, 12:45 am

Glad you sorted it out. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

cron