Support Forum

  • Page:
  • 1

Zentools 1.1.2

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Bamboo,

Using the grid option.

If I add, under Text Options, characters to Suffix added to truncated text it gets rendered twice - the characters I entered were "..." not the "......" rendered. If I leave it blank, no characters appear as the suffix, which is expected.

See joomlabeta.cornerstonecubed.com/tool-kits/toolkits

UPDATE:

in the zenj17contenthelper.php file I changed the following code that eliminates the double rendering:

if($strip_tags) {
$introtext = $strip_tags ? zenHelper::_cleanIntrotext($item->introtext,$tags) : $item->introtext;
}
else {
$introtext = $item->introtext;
}

if($wordCount !=="-1") {
$tempintro = false;
$item->text = $wordCount ? zenHelper::truncate($introtext, $wordCount, $textsuffix) : $tempintro;
}
else {
$item->text = $item->introtext;

}

$item->text = $item->text.$textsuffix;

...to:

if($strip_tags) {
$introtext = $strip_tags ? zenHelper::_cleanIntrotext($item->introtext,$tags) : $item->introtext;
}
else {
$introtext = $item->introtext;
}

if($wordCount !=="-1") {
$tempintro = false;
$item->text = $wordCount ? zenHelper::truncate($introtext, $wordCount, $textsuffix) : $tempintro;
}
else {
$item->text = $item->introtext;
$item->text = $item->text.$textsuffix;

}

...moving the last code line into the "else" construct.

Haven't tested it extensively and not a php coder.

Jonathan
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
Last Edit: 12 years 3 months ago by Jonathanne.
The administrator has disabled public write access.
Confirmed and fixed local here Jonathon.

Just added this to the working bee forum because you get the super bonus of an extra month free :)

1. Diagnosed the bug
2. provided the solution

== One month add to your subscription.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Anthony,

Thank you. Glad to help.

Jonathan
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
The administrator has disabled public write access.
I like the new forum, great idea.

Nice work Jonathanne :)
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers