TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 500
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 86
  • Total: 86

Register.Template

Started by AnimeUK, September 01, 2008, 01:35:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AnimeUK

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

::)

Ken.

You would be able to find that on SMF AnimeUK.
Just download the version of SMF you need and extract the file.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

AnimeUK

#2
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.  >:(
                     

G6Cad

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.

AnimeUK

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 :)

G6Cad

Indeed correct  :up:

Will mark this to solved then

FERNSIDEâ„¢

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 :)

AnimeUK

I have the mod you refer to. It's the very same one that buggered up the template in the firsl place :)

FERNSIDEâ„¢

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

AnimeUK

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

This website is proudly hosted on Crocweb Cloud Website Hosting.