Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

BUG - URGENT PLEASE

Featured Lock Resolved Bug
An article containing italic text causes whole text in italic


The issue is caused by the articles addon from SP Page Builder. The addon does not take into consideration the HTML elements and truncate the text as a plain text.
I have added an HTML truncate function to fix the issue.
=>/web/components/com_sppagebuilder/addons/articles/site.php line 185.
Just to let you know about this.

13 Answers

Sifat - Staff

4 days ago #Permalink
Hi,
If i may..
Actually when you use any tags into your intro texts limit and the text limit cut down any of your tags only then this type of issue occurs. So, i would suggest you a solution and that will offer you the following things,
1) You can use any tag you want in your article texts.
2) But those tags will only be visible in details view and only plain texts will be shown as intro texts.
In this way you are free to use any tags and that won't break your layout.

Please replace the attached file in the given location if you prefer the way i've suggested above.
location: /components/com_sppagebuilder/addons/articles/site.php

Please let me know if that helps.

-Best Regards

Attachments (1)

  • site.zip 3.8 KB

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
thanks, we will look at this.

NEROVIK

One week ago #Permalink
I have already mentionned it....

The text appears is changed italic on all page....

=====

Can you please take into account this bug? For Versions >3.6.1

(...)/components/com_sppagebuilder/addons/articles/site.php

Line 185.

Before Versions >3.6.1, the solution was:

if($show_intro) {
$output .= '<div class="sppb-article-introtext">'. mb_substr($item->introtext, 0, $intro_limit, 'UTF-8') .'...</div>';
}
by

if($show_intro) {
$output .= '<div class="sppb-article-introtext">'. self::truncate($item->introtext, $intro_limit) .'</div>';
}
===

At now it does work anymore.
MANY THANKS IN ADVANCE

Paul Frankowski - Staff

One week ago #Permalink
I will remind our developer next week. Big thanks.

NEROVIK

One week ago #Permalink
So I will wait. Thanks. Thus I cannot update with the last joomshaper Pro update.

NEROVIK

One week ago #Permalink
Could it be the right syntax ? It looks better for me :D

(...)/components/com_sppagebuilder/addons/articles/site.php

Line 185.

$output .= '<div class="sppb-article-introtext">'. html_entity_decode($item->introtext, $intro_limit) .' </div>';

Paul Frankowski - Staff

One week ago #Permalink
As I said, I am not SPPB developer to give you any PHP clues.

Al Mamun - Staff

5 days ago #Permalink
Hi NEROVIK,

You can use "html_entity_decode()" but it replaced if you update the Page Builder. If you want not to replace then override the Article addon.

We are this "mb_substr()" for several reasons and it will remain same.

Thanks,
Mamun
I am having the same issue.
New problem: text is no longer truncated to 150 chars as defined. $introlimit is not interpreted. It does not work at all.

Do I need to ask refund for the sp page builder if no solution is provided?

Attachments (1)

  • Capture.jpg
    Capture.jpg 38.2 KB
Hi many many thanks for your answer. Brilliant. I am fully satisfied with this fix.

:D :D

Sifat - Staff

3 days ago #Permalink
Hi many many thanks for your answer. Brilliant. I am fully satisfied with this fix.

:D :D

You are always welcome and pleasure to know that it solves your issue. :)


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 127
Sifat

Sifat

Total Accepted Answers: 83
Toufiq

Toufiq

Total Accepted Answers: 71
Pavel

Pavel

Total Accepted Answers: 6
Sohan

Sohan

Total Accepted Answers: 5

114

Templates

293312

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us