Author Topic: Extending character limit in "Event Title" in Calendar  (Read 222 times)

Offline OrdinaryGirl

  • Newbie
  • *
  • Posts: 8
Extending character limit in "Event Title" in Calendar
« on: November 06, 2009, 03:31:03 AM »
SMF 1.1.10

The current character limit for an Event Title is 33 characters.  This doesn't allow us to give much information if we opt not to link the calendar event to a forum posting.  Is there a way to increase the character limit?  33 doesn't even use up half of the title box.  Doubling to at least 66 characters would be very helpful.

Thanks in advance.

Offline Sverre

  • Full Member
  • ***
  • Posts: 682
Re: Extending character limit in "Event Title" in Calendar
« Reply #1 on: November 06, 2009, 10:01:57 AM »
In your theme's Post.template.php

Code: (find and edit) [Select]
name="evtitle" maxlength=

Offline OrdinaryGirl

  • Newbie
  • *
  • Posts: 8
Re: Extending character limit in "Event Title" in Calendar
« Reply #2 on: November 06, 2009, 02:27:30 PM »
In your theme's Post.template.php

Code: (find and edit) [Select]
name="evtitle" maxlength=

Thank you very much!  I checked the folder for the custom theme that I'm using and don't have a Post.template.php file, though the file does exist in the Default and Classic theme folders.  Is the Post.template.php file something that I can simply copy to the custom folder?  I'll direct the same question to the custom theme creator/owner, but he hasn't yet responded to another question that I had previously posted.
« Last Edit: November 06, 2009, 02:32:19 PM by OrdinaryGirl »

Offline Sverre

  • Full Member
  • ***
  • Posts: 682
Re: Extending character limit in "Event Title" in Calendar
« Reply #3 on: November 06, 2009, 02:50:37 PM »
Yes, just copy the template from the default theme.

Offline OrdinaryGirl

  • Newbie
  • *
  • Posts: 8
Re: Extending character limit in "Event Title" in Calendar
« Reply #4 on: November 06, 2009, 09:45:54 PM »
Sverre,

I copied the post.template.php with the modified "evtitle' numbers but nothing has changed.  The character limit is still 30, although I've tried to set it to 60.

Thanks,

OG

Offline Sverre

  • Full Member
  • ***
  • Posts: 682
Re: Extending character limit in "Event Title" in Calendar
« Reply #5 on: November 07, 2009, 04:41:42 AM »
Hmm... it worked without a hitch when I tried it on my own test forum, and changing the maxlength value for other input fields in the templates has always worked before as well, so besides going through Admin > Themes and Layout > Modify Themes > Browse the templates and files in this theme. to make 100 per cent sure that the right template has been edited, I'm out of ideas :-\

Maybe you could try to decrease the value below 30 first, to see if that has any effect?