Skip to Content Skip to Menu

jalali calendar

  • saman2
  • saman2
  • ONLINE
  • Posts: 404
  • Thanks: 7
  • Karma: -1
6 years 6 months ago - 6 years 6 months ago #303677 by saman2
jalali calendar was created by saman2
hi...
i want use jalali(persian) calendar in CB registration form.how to do that?
this is jalali calendar:
farhadi.ir/projects/jalalijscalendar/
or
github.com/farhadi/JalaliJSCalendar
Last edit: 6 years 6 months ago by saman2.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 6 months ago - 6 years 6 months ago #303681 by krileon
Replied by krileon on topic jalali calendar
Don't understand why you'd need that. The date and datetime fields have a calendar already. Click the calendar icon to the right of their dropdown inputs. At any rate you can add custom JS to the header of the registration and profile edit pages using CB Auto Actions and a Code action on the onBeforeUserProfileEditDisplay and onBeforeRegisterFormDisplay triggers.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 6 years 6 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • saman2
  • saman2
  • ONLINE
  • Posts: 404
  • Thanks: 7
  • Karma: -1
6 years 6 months ago - 6 years 6 months ago #303685 by saman2
Replied by saman2 on topic jalali calendar

krileon wrote: Don't understand why you'd need that.

because the default calendar system of CB is en.wikipedia.org/wiki/Gregorian_calendarGregorian
but en.wikipedia.org/wiki/Jalali_calendarjalali is used in my country and

krileon wrote: The date and datetime fields have a calendar already. Click the calendar icon to the right of their dropdown inputs.

how can change the year value and how can change month name?if i change year value how can i show the age of user via Profile View Display=Age in the Parameter>Display...
jalali year is not equal gregorian year number
for example 2018 in gregorian =1397 in jalali
Last edit: 6 years 6 months ago by saman2.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 6 months ago #303689 by krileon
Replied by krileon on topic jalali calendar
You can fully translate the calendar CB uses using language strings. The language override function should have no issue finding them. Examples as follows.

Key: UE_WEEKDAYS_1
String: Sunday

You can also change the first day for the calendar using the UE_CALENDAR_FIRSTDAY language string. Beyond that I can't really provide any further suggestions.

CB isn't designed for Jalali calendar with no plans of that changing. PHP it self does not handle Jalali date usage either so none of our date handling will work for Jalali usage.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum