WPIntell

Source evidence

Limit String Lengh

Songkick Concerts and Festivals · support · 2013-11-18T22:51:00+00:00

complaintsentiment
mediumseverity
0.75relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 27 rows with source links

14.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
MZBS unresolved
Hello, your plugin works perfect for me. Congratulations. However I want to limit the string lengh of the venue and the location (city/country) in order that if the name is too long to see “…” at the end of the name instead of the long name. I see the file songkick_presentable_event.php where the function is added but I am not sure how to implement the $str inside it because I am not PHP professional. Can you help me to do that? Thank you so much! http://wordpress.org/plugins/songkick-concerts-and-festivals/ WordPress has a formatting function to trim words: http://codex.wordpress.org/Function_Reference/wp_trim_words For characters, you’d have to implement your own method. If you google for it, you can find examples of how to do it. You need to use the substr function: http://uk3.php.net/substr or http://uk3.php.net/mb_substr Hope that helps!

Comments

1 shown
saleandro 2014-02-18T21:03:00+00:00

WordPress has a formatting function to trim words: http://codex.wordpress.org/Function_Reference/wp_trim_words For characters, you’d have to implement your own method. If you google for it, you can find examples of how to do it. You need to use the substr function: http://uk3.php.net/substr or http://uk3.php.net/mb_substr Hope that helps!