Support Forum
Hi, I'm looking to integrate the UserPro membership plugin into my site. I will be using the reboot theme. I want to use the UserPro login/registration forms rather than the SP ones. How can I change the hyperlink for these buttons? I dug around a bit but couldn't find the code.
I'm also contemplating removing these buttons and just using the login/register buttons on another part of my site, since SP should sync everything up fine with wordpress' user membership too correct? How can I remove both these buttons from the header in that case?
Thanks!
see these for how to replace the urls to yours:
https://simple-press.com/docum.....outbutton/
https://simple-press.com/docum.....terbutton/
to remove, just remove those template function calls from your sp theme... they are in the spHead.php template file... as always, before editing a theme, we suggest making a child theme or creating your own theme...
Visit Cruise Talk Central and Mr Papa's World
Hi, I decided to add the login URL back into my site button, but I can't get it to display correctly using the API. I'm a bit confused about the quote characters and the argument options, do they need to be nested? If someone could clarify would be great!
With this code the forum doesn't load in the page:
sp_LogInOutButton('tagClass=spButton spRight','logInLink'='http://panorev.com/profile/login','logOutLink'='http://panorev.com/profile/logout', __sp('Log In'), __sp('Log Out'), __sp('Log in and log out'));
With this code, it loads, but the button displays the text logOutLink'='http://panorev.com/profile/logout as seen in this pic:
sp_LogInOutButton('tagClass=spButton spRight','logInLink=http://panorev.com/profile/login','logOutLink=http://panorev.com/profile/logout', __sp('Log In'), __sp('Log Out'), __sp('Log in and log out'));
It would be clearer if you provided an example on the Codex. Thanks
There IS an example in the codex just here. However - I do see that this particular example only passes one argument.
The method that ALL Simple:Press display functions use to pass arguments is the same as the method that WordPress uses. That is that all the function arguments are sent as one, long string of text using name=value pairs with each pair separated by an ampersand.
So - using your own code from above that would be sent as:
sp_LogInOutButton('tagClass=spButton spRight&logInLink=http://panorev.com/profile/login&logOutLink=http://panorev.com/profile/logout', __sp('Log In'), __sp('Log Out'), __sp('Log in and log out'));
Hope that helps.
YELLOW
SWORDFISH
|
1 Guest(s)