Page 1 of 1

S2Member JS function restriction

PostPosted: August 15th, 2011, 9:08 am
by arnette
Hi,

I would like to know if I can restrict a function. Here's the code:

<input class="b_agent_contact" type="button" onclick="javascript:booking_fun()" style="margin-left: 115px;" value="Book-it" name="Send">

and how to do that. This fuction need to be accesible only for paid members, any level. Do I need to be an advance developer? I have some HTML knowledge.
I know there is a API URI area on WP admin that I can enter different fields. ...

Can somebody help me?

Tks,

arnette

Re: S2Member JS function restriction

PostPosted: August 15th, 2011, 2:38 pm
by Bruce C
You can wrap the button in conditionals.

Check out: Dashboard -> s2Member -> API/Scripting -> Simple/Shortcode Conditionals

Re: S2Member JS function restriction

PostPosted: August 17th, 2011, 8:07 am
by arnette
Thanks Ace!!

Re: S2Member JS function restriction

PostPosted: August 17th, 2011, 6:46 pm
by Bruce C
No Prob!