Welcome to Geeklog, Anonymous Tuesday, April 30 2024 @ 03:26 am EDT

Geeklog Forums

Entry of ZIP/Postcode in Event Submissions


Jerry Green

Anonymous
Postcodes in the UK can have up to eight characters. The ZIP field on event submission only allows five characters. See specification at http://www.govtalk.gov.uk/gdsc/html/frames/Postcode.htm
Could the field in event submission be made more generally applicable throughout the world by making it bigger? Big Grin
Can I hack my system to allow postcodes to be entered?
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Modify this line of the plugins/calendar/templates/admin/eventeditor.thtml file replacing the 5s with 8s:
Text Formatted Code
    <td><input type="text" name="zipcode" size="5" maxlength="5" value="{event_zipcode}"></td>


Also, you'll have to modify your database. Run this SQL:
Text Formatted Code
Alter table gl_events modify column zipcode varchar(8);
 Quote

Jerry Green

Anonymous
happy
Thanks very much. Exactly what I wanted.
 Quote

All times are EDT. The time is now 03:26 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content