Wrong relative URL for images in frontend with a subdomain

More
10 years 4 weeks ago #50545 by esinet
I'm so sorry, but it doesn't work ...
When i create a new item in backend and change category in frontend, thumbnail stil disappear ...
I must use my site without SEF ...

But great thanks ti help me to find a solution.
Best regards

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #50588 by esinet
hello,
I'm the echo of Sarki (JCE Fr) to send you some info.
Everything is on the thread here: www.sarki.ch/jce/forum/problemes-divers/...-en-frontend?start=6

In summary, Sarki was found that part of the code generated by phpThumb in view "Blog" disappeared in sight between the backend editing and publishing frontend: div class = "image left" below:
Code:
<div class = "image left"> <a class="hasTip" title="" href="/joomla336/index.php/categorie-2/item/15-test-sarki"> <img alt = "Test Sarki" src="/joomla336/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/images/sampledata/fruitshop/bananas_2.jpg&w=200&h=200&aoe=1&q=95"> </ div>

For Sarki, there is a solution by adding a / to images / ... each time you insert an image.
To me it seems that disabling the SEF can make me a temporary solution.
I'll try (or ask for Sarki) to contact the developer of JCE. If you know him, do not hesitate to make him up this concern.
Why am I the only one that kind of thing happen?
Have a nice day

Bonjour,
Je me fais l'echo de Sarki (JCE Fr) pour vous transmettre quelques infos.
Tout est sur le fil de discussion ici : www.sarki.ch/jce/forum/problemes ... nd?start=6

En résumé, Sarki a trouvé qu'une partie du code généré par phpthumb disparaissait dans la vue Blog entre l'édition backend et une édition en frontend : la div class="image left" ci-dessous :
<div class="image left">
<a class="hasTip" title="" href="/joomla336/index.php/categorie-2/item/15-test-sarki">
<img alt="Test Sarki" src="/joomla336/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/images/sampledata/fruitshop/bananas_2.jpg&w=200&h=200&aoe=1&q=95">

</div>

Pour Sarki, il y a une solution en ajoutant un / devant images/... à chaque insertion d'une image.
Pour moi, il semble que la désactivation du SEF puisse m'apporter une solution temporaire.
Je vais essayer (ou demander à Sarki de) de contacter le développeur de JCE.
Si vous le connaissez, n'hésitez pas à lui faire remonter ce souci.

POurquoi je suis le seul à qui ce genre de truc arrive ?
Bonne continuation

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #50589 by ggppdk
Hello

i will look at this

just do 1 more thing:

can you test with the default blog template and not with custom blog-1 template ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #50590 by esinet
Hello,
With all the help you have given me, I am ready to test all possibilities.
But here ... I have only one template blog, one that exists by default.
Do you want me to create another to see?

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #50628 by ggppdk
Hello

i found what is happening

-- images are inserted by JCE in frontend with relative path, and then saved in Database properly (as relative paths)

but
when you load the item again in frontend the JOOMLA SEF plugin is adding (for display reasons ?) absolute prefix in front of the images



-- JCE is not handling this properly
-- tinyeMCE detects this and reconverts URL to relative

i tested:
SAME text is given to both editor, that is the absolute path created by JOOMLA SEF plugin src="..." replacement
and
tinyMCE converts it to relative


so i think that this is a JCE bug,

we could implement a workaround, but this bug should be reported to JCE authors


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #50633 by ggppdk
Hello

updated textarea field to encode the textarea value, this should prevent SEF plugin from taking effect,

also i believe no bug is inserted by this, e.g. adding < > inside description should continue to be possible, Joomla 'editor' FORM element does this so we are doing same


raw.githubusercontent.com/FLEXI ... xtarea.php

-- replace the flexicontent "textarea.php" field
plugins/flexicontent_fields/textarea/textarea.php


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.798 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline