Does anybody have an unedited copy of the register.template (I'm using adagio, if that's relevant...)?
Some bright spark didn't back up theirs and now you can only register if you're female. If you select 'male' then the agreement box doesn't highlight for registering...
::)
You would be able to find that on SMF AnimeUK.
Just download the version of SMF you need and extract the file.
I found out what I'd done.
<input type="radio" name="gender" value="1" tabindex="', $context['tabindex']++, '" /> ', $txt[238], '<br />
<input type="radio" name="gender" value="2" tabindex="', $context['tabindex']++, '" /> ', $txt[239], '<br />
I edited this area to get rid of the part that says N/A above the male selection
(I was trying to force a choice...)
I've added
<input type="radio" name="gender" value="0" tabindex="', $context['tabindex']++, '" /> ', $txt[237], '
above the first area, and my radio button came back. It has no writing next to it, and if it's clicked then you cannot register, which is what I was trying to do.
Is it possible to edit this area to remove the N/A radio button?
My attempts so far mean that :
male=n/a (can't register)
female=female
no selection=female
[ignore!]
(I had the original SMF1.1.5 on the pc, extracted the files, but there is only a register.php there, not a register.template.php) - found the file - will see what happens...
<edit>
Uploaded the new register.template.php file...
Reinstalled the 3 mods i was using on the registraion form.
All seems fine now!!
No radio buttons, just a dropdown menu with Blank, Male, Female on it. People can still choose a blank gender though, which is annoying. >:(
Mods have their own code, and the code from them only apply to the default theme and not custom instaled themes.
Check the mod and see what code it adds to the template files, and add them in manually to the custom theme in use.
This also goes for images, you need to add the same images to your custom themes, or they will be missing in the custom theme.
Yeah. Been looking into that. It's quite easy really. The mod shows you what it's going to add to the default, and you just copy it over to your theme :)
Indeed correct :up:
Will mark this to solved then
Usually you dont need to edit anything for a custom theme, when editing the register area.
Most themes dont reproduce that section, and call on the default.
Ive seen this discussed at smf, and was gonna do the same thing, but also found a section where someone added code, that you HAD to choose either male or female, or you couldnt submit the application.
This was awhile ago, but use the search function there, and with a little work, you may find it.
Good luck :)
I have the mod you refer to. It's the very same one that buggered up the template in the firsl place :)
Sorry mate. I shouldve been more clear.. a little tired lol ;)
Its not a mod.
Someone asked how to do what youve asked, and another replied wit the manual edits.
I also recall Eliana leavin someone a similar code at smf, for permissions etc etc
Sorry I cannot be of more assistance
No worries. I found what you were referring to here:
http://www.simplemachines.org/community/index.php?topic=253970.0
I'll have a play later. I'm sick of re-uploading that template...
lol.
Yep, thats one, and there is another by Sinan.
I think I may have incorporated both ideas, I dont recall at this time.
I have a fresh install of my forum(due to a shonky server upgrade), so do not have the edits I made.
Someone will be able to assist you in those threads if you have difficulties.
Good Luck :)