Welcome to Geeklog Tuesday, August 20 2019 @ 12:09 am EDT

Geeklog Forums

Calendar 'event_state'


Status: offline

Cybass

Forum User
Newbie
Registered: 14/03/04
Posts: 6
Hi!
I've modified the calendar for my needs but there is one small problem in the detail display wich makes me crazy.
I wana start an international site and changed the states in the config.php to countrys. The details show only the first 2 letters of the state. How can I show more letters?

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
I've just added that in CVS. See here for some inspiration

bye, Dirk

Status: offline

Cybass

Forum User
Newbie
Registered: 14/03/04
Posts: 6
I added the changes from the link you've posted but I can't see any changes. Do I have to change more?? Oh please, help this stupid guy!

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Well, are you using the new variables names, like {event_state_name}, in your template files? Or what exactly is the problem?

bye, Dirk

Status: offline

Gojo

Forum User
Newbie
Registered: 04/01/05
Posts: 13
I would like to remove the lines from the Add Event screen which call for the user to input their city, state, zip... etc... when adding an event, but I'm not sure the easiest way to do it.

Those lines are not desired for my purposes, but if there is no easy way, then I would like to add the word (OPTIONAL) next to the lines when displayed. Some of my users are confused if they have too many options.

Can anyone shed some light on this?

Status: offline

enigmah

Forum User
Chatty
Registered: 22/07/02
Posts: 50
To get more than the first 2 letters, you have to change the size of the database field.

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Gojo: I would like to remove the lines from the Add Event screen which call for the user to input their city, state, zip... etc... when adding an event, but I'm not sure the easiest way to do it.

Those lines are not desired for my purposes, but if there is no easy way, then I would like to add the word (OPTIONAL) next to the lines when displayed.

Edit the submit/submitevent.thtml template file for your theme. Either add the word "optional" where you need it or make those input fields you don't need of type "hidden" and with a harmless default value.

bye, Dirk

Status: offline

Gojo

Forum User
Newbie
Registered: 04/01/05
Posts: 13
Awesome! That was easy. Thank you!

All times are EDT. The time is now 12:09 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