Thread Starter
frafor
(@frafor)
Hi Malcom,
I’d like to suggest another possible improvement for future releases.
In my opinion, showName field in _sshow_shows table should be longer, as titles can easily go beyond 80 chars.
For example I had to manually set it as VARCHAR 256, because I’ve set up a custom post type that automatically adds a show in _sshow_shows when creating a new post in a specific taxonomy.
The template then calls the shortcode using do_shortcode(), and takes the post title as reference.
Shows’ title can often be longer than 80 chars, so having them trimmed down didn’t always display the boxoffice.
FF
Plugin Author
Malcolm
(@malcolm-oph)
The length of 80 characters is large enough in the majority of cases. Your usage, however, does appear to be unusual. The length of the showName database field is determined by the STAGESHOW_SHOWNAME_TEXTLEN PHP constant, which defaults to 80 characters if not already defined elsewhere.
To change the number of characters to 256 add the statement below to either wp_config.php or stageshow-wp-config.php file:
define(‘STAGESHOW_SHOWNAME_TEXTLEN’, 256);
Note: This is off topic, so would have been better as a new forum post so other users pick up on it.
Thread Starter
frafor
(@frafor)
Thanks for the additional info Malcolm and sorry if it was OT.
I’m working with a theater and most of their show title goes beyond 80 chars, so they’ve been shortening them and it wasn’t nice on the front-end.
It was just annoying for me to change the field lenght via the Database at every update, but with the constant setting it should be fine now 😉