By Richard Stoffiere on Thursday, 22 September 2016
Posted in Technical Issues
Replies 4
Likes 0
Views 352
Votes 0
I am using EasyBlog5 with the built-in Composer. When I insert images into a block in the Composer, EasyBlog is saving the link in the database like:

src="//http://www.mysite.com/images/easyblog_articles/34/image_thumbnail_cows-584858990.jpg"/>


The images display correctly on the site. However, it seems that the link should be stored with the preceding "http:" like:

src="http://www.mysite.com/images/easyblog_articles/34/image_thumbnail_cows-584858990.jpg"/>


Or just the image path, and prepend the site upon display, so the image source would be stored like:

src="http://cloud.stackideas.com/images/easyblog_articles/34/image_thumbnail_cows-584858990.jpg"/>


I am not certain if I have something configured incorrectly within EasyBlog. The issue was discovered when as I was trying to use the EasyBlog plugin in Acymailing. Is there a workaround for this, or is there something within the EasyBlog configuration I need to change?

Thanks!!
Rick
FYI - In the third quote in the initial post, the system added your site to the URL. It should just start with "images/..."

Rick
·
Thursday, 22 September 2016 20:47
·
0 Likes
·
0 Votes
·
0 Comments
·
I am using EasyBlog5 with the built-in Composer. When I insert images into a block in the Composer, EasyBlog is saving the link in the database like:

src="//http://www.mysite.com/images/easyblog_articles/34/image_thumbnail_cows-584858990.jpg"/>

Yes, this is default behaviour in Easyblog the way it store.


The images display correctly on the site. However, it seems that the link should be stored with the preceding "http:" like:

src="http://www.mysite.com/images/easyblog_articles/34/image_thumbnail_cows-584858990.jpg"/>

The reason why we didn't store http protocol is because what if some site admin decide to change their site to SSL (https protocol), mean all the image link will show broken on the page, because all the link already hardcoded to show http protocol.

src="http://cloud.stackideas.com/images/easyblog_articles/34/image_thumbnail_cows-584858990.jpg"/>

May i know where you saw this image link on your page?

I am not certain if I have something configured incorrectly within EasyBlog. The issue was discovered when as I was trying to use the EasyBlog plugin in Acymailing. Is there a workaround for this, or is there something within the EasyBlog configuration I need to change?

May i know what is the issue when you use Acymailing integration with Easyblog?
·
Friday, 23 September 2016 11:53
·
0 Likes
·
0 Votes
·
0 Comments
·
I understand now why the protocol would not be stored. I guess I was wondering my the image wasn't stored just with the relative URL, like "images/easyblog_articles...".

What I see with the AcyMailing plugin is this:

<img src="http://www.mysite.com//www.mysite.com/images/easyblog_articles/33/b2ap3_thumbnail_chain-455245205.jpg" style="border:0px; text-decoration:none;">
·
Friday, 23 September 2016 19:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

The reason that the images are not being stored as relative paths because this will be problematic to some sites especially when they have SEF enabled.

For instance, the browser does not know that the path in the address bar is on SEF or not, it simply thinks that if your path is http://site.com/some/path/to/some/articles as the root path of the site. Using a relative URL would be problematic.
·
Saturday, 24 September 2016 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post