Page 1 of 1

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

PostPosted: January 30th, 2012, 11:54 am
by adam1987
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

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

PostPosted: January 31st, 2012, 4:20 am
by Cristián Lávaque
If the widget doesn't parse PHP, then it won't work. If it parses shortcode, you can try the shortcode for that constant.

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

PostPosted: February 1st, 2012, 10:18 am
by adam1987
ok, let me see how to do that.....replying in a bit.

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

PostPosted: February 1st, 2012, 10:43 am
by adam1987
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

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

PostPosted: February 1st, 2012, 10:47 am
by Eduan
Have you tried it with Exec-PHP? Not Shortcode Exec PHP but Exec-PHP.

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

PostPosted: February 1st, 2012, 10:49 am
by adam1987
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

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

PostPosted: February 3rd, 2012, 12:45 am
by Cristián Lávaque
Glad you sorted it out. :)