By Prakash Reddy on Wednesday, 15 June 2016
Posted in General
Replies 3
Likes 0
Views 264
Votes 0
Hi,

For some reasons, it would be more helpful if I can use full path for the images while inserting into content when composing a new blog. (currently it is inserting as "images/easyblog_images...", instead I need it as "http://mywebsite.com/images/easyblog_images/..."

Is it possible to do this change myself in the code, please guide in which file I can do this fix. I could not figure it out easily. I just need to add Base URI to the image path in the content so that when this is used in API/other places, the images will not appear as broken.

Thanks
Prakash.
Hey Prakash,

This is not possible right now as urls are being used as relative urls. This is to avoid issues when you switch domain names. Unfortunately there is no quick work around for this currently.
·
Wednesday, 15 June 2016 19:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark, Thanks for the reply.
Hope you are doing well.

I don;t mean to include full path correction in the component at your side.
I will change in my website, as there is less likely we may change the domain name.

If you can point me to the file where I can append Root URI to the image insert logic before adding to HTML editors, that would be great.

-Prakash.
·
Wednesday, 15 June 2016 20:02
·
0 Likes
·
0 Votes
·
0 Comments
·
It's not an easy task to make such change but if you need, you can hack the mediamanager in /administrator/components/com_easyblog/includes/mediamanager/mediamanager.php but I really would advise you not to.
·
Wednesday, 15 June 2016 22:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post