Webmastersite.net
Register Log In

some extensions to template register

Comments on some extensions to template register

frankbeckers
Forum Regular

Usergroup: Customer
Joined: Dec 20, 2007
Location: Germany

Total Topics: 33
Total Comments: 106
Posted Jan 10, 2008 - 2:09 PM:

Hi,

if you are using some own styles, templates or languages for internal use only and you have deselected the switches, following extension in register.tpl will honorate the switches for new users (and they can not select your internal workings environment):

...
<IF not {SWITCH_QUICKREGISTRATION}>
<IF {SWITCH_STYLESELECT}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_REGISTRATION_STYLE}:</span></td>
<td class="optionscolumn"><select name="stylesheet">{STYLEOPTIONS}</select></td>
</tr>
</IF>
<IF {SWITCH_TEMPLATESELECT}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_REGISTRATION_TEMPLATESET}:</span></td>
<td class="optionscolumn"><select name="thetemplate">{TEMPLATEOPTIONS}</select></td>
</tr>
</IF>
<IF {SWITCH_LANGUAGESELECTOR}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_REGISTRATION_LANGUAGE}:</span></td>
<td class="optionscolumn"><select name="thelanguage">{LANGUAGEOPTIONS}</select></td>
</tr>
</IF>
...

I Hope it is a needed extension suggestion.

Regards,
Frank
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 11, 2008 - 12:02 PM:

Why should whether you have quick registration on or not affect the display of style options? Edit: I see now, the registration template rather than the wrapper.

Internal use template sets should contain adminonly in the name: scripts.webmastersite.net/w...-renaming-removing-73.html . I don't think there's any similar mechanism for styles and languages currently.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.