Full URL in IMG src

Permalink 2 users found helpful
Hi all,

I have a blog setup with an rss feed and it all works great, except for one small thing. The image is not showing up in my user's emails when feedburner sends the article.

It's an issue of the src not using the full url of my site. i.e. /files/1234/3214/myimage.jpg when what I want is:http://www.mysite.com/files/1234/3214/myimage.jpg....

I've searched the forums for several days now and I see some things that point to base_url and some other things, but nothing I try seems to work.

Here's the link to the exact blog post I'm talking about:http://www.laketownrpi.us/index.php/community/palantiri/...

If anyone could help me out with this, I'd sure appreciate it!

Thanks!

tw

 
enlil replied on at Permalink Reply
enlil
try
<img src="<?php echo BASE_URL; ?>/files/1234/3214/myimage.jpg">
twpaige replied on at Permalink Reply
Yes... but -where- do I put that? I'm using an image block, not a content block for the image.
enlil replied on at Permalink Reply
enlil
I'm poking around in problog but not coming up with anything yet. Your best bet would be to post this in the support section of the add-on page:

http://www.concrete5.org/marketplace/addons/problog/support/...
enlil replied on at Permalink Reply
enlil
i think im on to this one... im throwing together a custom image block that should fix this!!
enlil replied on at Permalink Best Answer Reply 1 Attachment
enlil
see attached...

unzip and drop the image2 folder into your root/blocks folder via ftp then install it through Dashboard > Block Types. Use this to display the images on your pages and let me know if the rss responds to it...
twpaige replied on at Permalink Reply
zomg! You went way beyond the call on this one, enlil! Thank you! Taking a look at it now.
twpaige replied on at Permalink Reply
Enlil,

You're my hero! Thank you so much for taking the time to help such a neophyte out. What a great block addition!

-tw
twpaige replied on at Permalink Reply
I'll know for sure if the image shows up in the email delivery tonight when Feedburner sends it out around 1AM. The RSS link shows the correct path for the img src though, so I'm confident it'll all work correctly. I'll follow up and let you know for sure.

Thanks again!
twpaige replied on at Permalink Reply
Tested and complete. Works great, TYVM!