Support Forums

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

Your Time: Our Time:

After updating SPPB to 3.6.2 the images from the article preview disappeared.

Featured Lock Resolved Bug
In the home you can only see the text of the article, but before the text there was the photo as you can see by opening the article.

https://www.aspergerway.com/

10 Answers

Paul Frankowski - Staff

3 weeks ago #Permalink
I didn't understand the choice to delete the html tags.

It was explained in blog post, to reduce users problems.
---
PHP help is beyond support
---
I told you to make addon override, I guess you didn't understand my first tip.
Put your modified or old (site.php) file here
templates\shaper_helixultimate\sppagebuilder\addons\articles\
(Yes, create missing folders)

so SPPB nor Helix update will not touch it

Paul Frankowski - Staff

3 weeks ago #Permalink
Hi,
yes, it's because you added images code inside intro text, and the last update clean intro text from all HTML code.

You have two alternative ways to solve it quick:

1) Add intro images using tab "Helix Blog Options" inside those Articles
OR
2) Override Article addon using older version of SPPB
From 3.6.1 or your website backup
take this folder with file
components\com_sppagebuilder\addons\articles\site.php
and copy here:
templates\shaper_helixultimate\sppagebuilder\addons\articles\site.php
This folder does not exist:
templates shaper_helixultimate pagebuilder addons articles home.php

I copied the site.php file of version 3.6.1 into the folder:
components \ com_sppagebuilder \ addons
And now it works.

I noticed that from version 3.6.1 to 3.6.2 only part of the string changes 186:

whitout images
$ output. = '<div class = "sppb-article-introtext">'. mb_substr (strip_tags ($ item-> introtext), 0, $ intro_limit, 'UTF-8') .'... </div> ';

whit images
$ output. = '<div class = "sppb-article-introtext">'. mb_substr ($ item-> introtext, 0, $ intro_limit, 'UTF-8') .'... </div> ';

But in the future I will always be able to overwrite the file, or if the dispositions of the lines of code change, I am only looking for the line that interests me and adding "(strip_tags" and ";)" after introtext?


I didn't understand the choice to delete the html tags.
Perhaps it is better to dare possinility with a function of the addon.

Now with every update I have to hope to be able to modify the site.php file to have everything as before.
correct:

"(strip_tags" and ";)" after introtext?
Sorry, but the system insert a smile
"(strip_tags" and ) after introtext?
OK!
Many thanks!
Override created!
I've never had problems with broken introtext. So that's okay.

I just wonder in the future if ever other features of the file will change, then I won't see them, cause override.

Is it better to change the code each time?
That's not a problem for me.

Paul Frankowski - Staff

3 weeks ago #Permalink
we can consider to add option to add HTML filter on/off
Ok, many thanks!


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

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 112
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 97
Toufiq

Toufiq

Total Accepted Answers: 89
FUTURECLIENT

FUTURECLIENT

Total Accepted Answers: 2
Kamruzzaman Alam

Kamruzzaman Alam

Total Accepted Answers: 2

115

Templates

295806

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