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
Math require! on registration page
Avatar
oscar valencia
Member
Free Members
sp_UserOfflineSmall Offline
May 15, 2013 - 4:26 am

Hi is there any way i can move the math require field to the bottom of my registration page, im trying to make the math require! the last field. This is my site

http://itmotorsports.com/wp-lo.....n=register

 

Thanks!!

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 15, 2013 - 4:50 am

The answer is possibly! But you will need to make a small core code edit to find out. The good thing would be, however, that if it worked I would see no problem in us making the same edit to core so that future updates maintain the change.

But all this assumes that whatever it is you are using to add those other fields to the registration form uses the same WordPress 'hook' that we use for the math question (or for the graphical captcha plugin). So let's find out!

In the main WordPress plugins folder find the file /simple-press/sp-startup/sp-load-core.php. You should be able to use the plugin editor in the WP admin for this I believe.

Just over half way through you should see a small section that has this comment: # User registrations and logout - and underneath that this line of code:

add_action('register_form',  'spa_register_math', 1);

That 1 at the end is a priority number. It tells WordPress when to process this particular action. The lower the number the greater priority is used to run that code. So - if we assume your other plugin is using the same hook, by altering this priority number we can delay the display if the math question.

I would start by changing the 1 to, say, 20. Save it. Look at the form. If it has not changed then up the number. Go for broke - change it to 999 or something! If it NEVER moves then it probably can;t be done as it would mean your other plugin is doing things differently.

I hope that all makes sense! Let us know how it goes.

andy-signature.png
YELLOW
SWORDFISH
Avatar
oscar valencia
Member
Free Members
sp_UserOfflineSmall Offline
May 15, 2013 - 11:15 pm

Thanks Yellow swordfish, it work!!  i change it to 20.  thankslaugh

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 16, 2013 - 1:04 am

good news. thanks for the update.

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