Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-10T14:12:07-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6373 2011-05-10T14:12:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6373&p=14542#p14542 <![CDATA[Re: Pro login widget hardcoding options]]>

Statistics: Posted by Cristián Lávaque — May 10th, 2011, 2:12 pm


]]>
2011-05-10T13:43:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6373&p=14538#p14538 <![CDATA[Re: Pro login widget hardcoding options]]>

Thank you so much, Cristian! I've never tried to call an array before and I was putting them after the call to the form, not before.

I appreciate your help :)

Jeff

Statistics: Posted by jeffreygaudette — May 10th, 2011, 1:43 pm


]]>
2011-05-10T13:11:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6373&p=14530#p14530 <![CDATA[Re: Pro login widget hardcoding options]]>

Those go in the options parameter (an array) when you call the function. E.g.

Code:
$options = array (
    "title" => "Membership Login",
    "signup_url" => "%%automatic%%",
    "login_redirect" => "",
    "profile_title" => "My Profile Summary",
);
echo s2member_pro_login_widget($options); 


I hope that helps.

Statistics: Posted by Cristián Lávaque — May 10th, 2011, 1:11 pm


]]>
2011-05-10T07:38:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6373&p=14507#p14507 <![CDATA[Pro login widget hardcoding options]]>
I am a pretty basic PHP noob. I need to hardcode the Pro login widget to my theme and change some options. I see the parameters in the APi scripting section, but I don't know how to implement them.

Do the options go into the functions.php or are they hardcoded with the call for the widget. Basically, can you give me an example of what the code would look like to change 3-4 of the options.

For example, how would I include the widget and change the following options:

"title" => "Membership Login"
"signup_url" => "%%automatic%%"
"login_redirect" => ""
"profile_title" => "My Profile Summary"

I apologize again for the very basic question, but I appreciate any help.

Thanks.

Statistics: Posted by jeffreygaudette — May 10th, 2011, 7:38 am


]]>