97 Posts
Anjo
7 years ago
Topic

Hi Seblod,

Would it be possible to add to core PHP String plugin string_truncate feature? It is useful because it lets you shorten text by word rather than by character.

I've implemented this feature by adding || v == 'string_truncate' and copying and renaming substr_count in edit.php

Then in php_string.php file I added:

case 'string_truncate':

$value=JHTML::_('string.truncate', $value, $arg1 );

break;

Thanks

Anjo

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

Please add this request to github tracker

https://github.com/Octopoos/SEBLOD

332 Posts
Kenneth
5 years ago
2
Level 1

Any update on this?

5 years ago
1
Level 2

Hi,

Here is an update.

Regards,
Saba

332 Posts
Kenneth
5 years ago
0
Level 3

I installed new version and tested. Got error:

"0 - Call to undefined method JCckDevHelper::truncate()"

Get a VIP membership