MyBB Community Forums

Full Version: Customize Calendar (character limit)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to increase the character limit of the event names shown on the calendar (standard monthly view). Right now even something small like "Officer's Meeting" gets cut off. Ideally, I would also like to show the time, but if that is not possible, I can just add the time to the event name and increase the character limit accordingly.

I have looked around in the calender templates but have been unable to find the character limit but looking at the calender itself, there is plenty more room for more characters so if someone could tell me where I should be looking to adjust this, it would be greatly appreciated. Thank you.
anyone?
The limit can't be in a template, PHP code is needed to cut it off. It's in the calendar.php file:
https://github.com/mybb/mybb/blob/featur....php#L2408 (standard view - 15 characters only, you can increase that number)
https://github.com/mybb/mybb/blob/featur....php#L2074 (week view - 50 characters only, you can increase that number)

And to add time to the standard view, copy this code:
https://github.com/mybb/mybb/blob/featur...L2077-2133
below:
https://github.com/mybb/mybb/blob/featur....php#L2410

And then in the calendar_eventbit template add {$event_time} wherever you want the time to be shown.
Thank you very much!
(2015-05-23, 06:50 PM)Destroy666 Wrote: [ -> ]The limit can't be in a template, PHP code is needed to cut it off. It's in the calendar.php file:
https://github.com/mybb/mybb/blob/featur....php#L2408 (standard view - 15 characters only, you can increase that number)
https://github.com/mybb/mybb/blob/featur....php#L2074 (week view - 50 characters only, you can increase that number)

And to add time to the standard view, copy this code:
https://github.com/mybb/mybb/blob/featur...L2077-2133
below:
https://github.com/mybb/mybb/blob/featur....php#L2410

And then in the calendar_eventbit template add {$event_time} wherever you want the time to be shown.
Thank you for your advice, it helps me as well a lot.
But, could you help me with the adding the time to standard view as well? I realize that the lines have been changed since you have written your reply (and, hopefully, I was able to identifiy by looking to the past version of calendar.php) but still I cannot find the way of dealing with the calendar_eventbit template (that is, the syntax of adding the {$event_time}

Could you help me?