Probably split, interesting question
There was an error rendering this rich post.
you could strip | Tizen Italia but the maximum length is controlled by the database field.
| Tizen Italia
There is nothing actually truncating the title in script, you can simply change the varchar field to allow more characters.
grep is your friend.
Hmm...I know this is off-topic but...if there isn't any chance to truncate title via script, how I can "strip" | Tizen Italia via database?
That doesn't make a lot of sense to do it that way, you can do it in the function above.
I'm saying you can increase the size of the field in the discussion table, so you can get more characters.
If you want to learn how to strip a string out of a string, learn some php and string manipulation.
I think that echo str_replace("| Tizen Italia", "", $Title); or something like should work...but I'm not a PHP master...I'm only a newbie! I'd appreciate your help in this direction!
echo str_replace("| Tizen Italia", "", $Title);
Comments
Probably split, interesting question
There was an error rendering this rich post.
you could strip
| Tizen Italia
but the maximum length is controlled by the database field.There is nothing actually truncating the title in script, you can simply change the varchar field to allow more characters.
grep is your friend.
Hmm...I know this is off-topic but...if there isn't any chance to truncate title via script, how I can "strip"
| Tizen Italia
via database?That doesn't make a lot of sense to do it that way, you can do it in the function above.
I'm saying you can increase the size of the field in the discussion table, so you can get more characters.
If you want to learn how to strip a string out of a string, learn some php and string manipulation.
grep is your friend.
I think that
echo str_replace("| Tizen Italia", "", $Title);
or something like should work...but I'm not a PHP master...I'm only a newbie! I'd appreciate your help in this direction!