Warning: The author of this contribution does not provide support for it anymore.

Location on registration

Changes for phpbb 3.0.9 - Location on registration

Changes for phpbb 3.0.9

by Hippie459MN » Sat Sep 03, 2011 4:49 pm

Installed on 3.0.9 and working great. I did notice a few code changes so here they if anyone has any issues.

Open: includes/ucp/ucp_register.php
Old Find:

Code: Select all

            'lang'            => array('match', false, '#^[a-z_\-]{2,}$#i'),


New Find:

Code: Select all

            'lang'            => array('language_iso_name'),


Add After:

Code: Select all

            'location'         => array('string', true, 2, 255),

If you would like to make location required during registration change true in array('string', true, 2, 255) to false.

Open: styles/prosilver/template/ucp_register.html
Old Find:

Code: Select all

   <dl>
      <dt><label for="tz">{L_TIMEZONE}:</label></dt>
      <dd><select name="tz" id="tz" class="autowidth">{S_TZ_OPTIONS}</select></dd>
   </dl>


New Find:

Code: Select all

   <dl>
      <dt><label for="tz">{L_TIMEZONE}:</label></dt>
      <dd><select name="tz" id="tz" tabindex="7" class="autowidth">{S_TZ_OPTIONS}</select></dd>
   </dl>


Add After:

Code: Select all

   <dl>
      <dt><label for="tz">{L_LOCATION}:</label></dt>
      <dd><input type="text" name="location" id="location" maxlength="255" value="{LOCATION}" class="inputbox autowidth" /></dd>
   </dl>


I dont use SubSilver2 or any SubSilver2 based themes so I have not looked the code for that but im sure the changes would be close to the same if not the same.

I hope this helps everyone having issues installing or looking for the right code for the mod.
User avatar
Hippie459MN
Registered User
Posts: 948
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact: