Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Can the signup button be teaked ?
Avatar
Ronen Laviv
Member
Free Members
sp_UserOfflineSmall Offline
Jan 31, 2014 - 8:21 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 31, 2014 - 8:33 pm

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...

Avatar
Ronen Laviv
Member
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 7:11 am

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 10:51 am

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

Avatar
Ronen Laviv
Member
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 2:50 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 2:54 pm

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...

Avatar
Ronen Laviv
Member
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 3:08 pm

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.

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 3:41 pm

as long as you no the consequences of editing core...

simple-press/forum/content/sp-common-view-functions.php...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625