Support Forum
Hi,
I noticed that signup is allowed when WP is configured to allow any user to register.
My membership site, is protected by wishlist and I actually want to allow free member to post on the forum, as long as they went through the wishlist (free) registration form. The reason is that this porcess gets them to tracking, mailing lists, and the other ingteration I have. I wanted to redirect the nice "signup" button that you have on the forum to the wishlist registration form, or potentially to infusionsoft that also integrates with my site and wishlist. The button doesn't appear unless WP allows anyone to register, and I don't want to allow that because of what I just explained.
May I ask your guidance what could be done in order to do so ?
Thanks,
Ronen.
http://codex.simple-press.com/.....outbutton/
the function is in your spHead.php template file of the theme in use... if you add a login link argument, it will direct to that instead of using the inline form... if you do that, you can also remove the sp_LoginForm() function call...
Visit Cruise Talk Central and Mr Papa's World
Thanks Mr Papa,
May I please ask for just a bit more details, I have done php and hooks tweaks in my site, but I didn't quite understand the article.
1) In order to add "http://www.mysite.com/index.php?/register/DS6hjj5d2" as target for signup button, I didn't understand what to change.
2) The simple press login is fine, if it takes into account the user wishlist pre-defined role.
I don't think I need to change that. Even wishlist are linking to "http://www.mysite.com/wp-login.php" for login.
If I do need to change, I wasn't sure how to use the article.
May I ask you to please write the few lines of code required as an example for 1 and 2 ?
Thank you so much,
Ronen.
First see: http://codex.simple-press.com/.....g-a-theme/
if you want to change the register button, then in your theme spHead.php template file change:
sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register'));
to
sp_RegisterButton('tagClass=spButton spRight&link=http://www.mysite.com/index.php?/register/DS6hjj5d2', __sp('Register'), __sp('Register'));
and then similar to
sp_LogInOutButton('tagClass=spButton spRight', __sp('Log In'), __sp('Log Out'), __sp('Log in and log out'));
but add new argument for loginLink
Visit Cruise Talk Central and Mr Papa's World
Thanks Mr Papa, Works perfectly !
One question though - how can I have the signup button appear even though wordpress "everyone can register" would be disabled ?
In order to make sure that everyone goes through wishlist process, I don't want to keep "anyone can register" open, and now, when the signup re-directs to wishlist registration, all I need it for that to appear.
Thanks,
Ronen.
you would have to output the html for the button yourself... just do it where the registration button function call is now... our button always checks that wp registrations are enabled... we couldnt possibly handle every plugin that alters wp registrations...
Visit Cruise Talk Central and Mr Papa's World
If it is not too complected, my I ask your assistance in pointing me to the file with the decision junction weather to show the button or not ?
For me it would be much easier changing an "if ...." than creating a same look and feel button with similar css.
If you still think it is too complected... (or maybe your fear is that it would be overwritten on updates) I'll understand, but in that case, maybe you can refer me to the button image and relevant css ?
Hope I'm not asking too much here... I'll understand if you kick me down the stairs...
Thank you in advance,
Ronen.
as long as you no the consequences of editing core...
simple-press/forum/content/sp-common-view-functions.php...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)