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™

S2Member JS function restriction

s2Member Plugin. A Membership plugin for WordPress®.

S2Member JS function restriction

Postby arnette » August 15th, 2011, 9:08 am

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
User avatar
arnette
Registered User
Registered User
 
Posts: 2
Joined: August 13, 2011

Re: S2Member JS function restriction

Postby Bruce C » August 15th, 2011, 2:38 pm

You can wrap the button in conditionals.

Check out: Dashboard -> s2Member -> API/Scripting -> Simple/Shortcode Conditionals
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: S2Member JS function restriction

Postby arnette » August 17th, 2011, 8:07 am

Thanks Ace!!
User avatar
arnette
Registered User
Registered User
 
Posts: 2
Joined: August 13, 2011

Re: S2Member JS function restriction

Postby Bruce C » August 17th, 2011, 6:46 pm

No Prob!
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron