e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
321 stars 213 forks source link

problem with {e_MEDIA_IMG} in forum signature #3574

Open Jimmi08 opened 5 years ago

Jimmi08 commented 5 years ago

Admin uploads image via Media manager // this is just example from where they copy path

image

Copy path to user signature this way (old image paths works)

image

But result is relative image path, so in forum there is added wrong path...

<img src="e107_media/416f4602e3/images/2018-12/e-pack181st.png"

image

We tried {e_MEDIA_IMG_ABS} and add {e_BASE}. Nothing.

tgtje commented 5 years ago

@Jimmi08 think seen this behaviour before (movies??) : Look at url in the last image .... try adding a / in front of this (i.e) try to gain an 'absolute path). I do believe (from recalling, don't know when or which version) it (the sc) 'sits' to deep ( eg does not knows the domain... Hard to translate the idea behind ../ or ./ or / in this Using a FULL path url should function always (testing) but it is likely the sc path use..

Jimmi08 commented 5 years ago

@tgtje we fixed this by adding siteurl before shortcode, but this should be fixed (and now it's possible by adding "full" parameter to parsing). I just don't know where is this managed (I tried to check signature, but it looks like more bbcodes problem)

wrxxy commented 5 years ago

Just wondering if anyone has looked at this issue as I have just tried to update one of our members signature's but no luck as it works in there user profile but not on the users threads/posts in the forum's... Here is what it used to look like when it was working, [img:width=75&height=170]{e_FILE}public/1499565967_9_FT7040_eao_commem1.png[/img] different location from V1 e107 [img:width=75&height=170]{e_MEDIA_IMAGE}2019-04/donatingmember17g18g.png[/img] and new location from V2 e107....

wrxxy commented 5 years ago

found it , it should read like so [img:width=75&height=170]http://www.yourwebsite/{e_MEDIA_IMAGE}2019-04/donatingmember17g18g.png[/img]