• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 ad_sidebar_bottom

Craig

Active member
#1
Good day to you all.

I am having a bit of an issue with some code for advertising at ad_sidebar_bottom

Code:
<a href="http://miraclesforkids.org"><img src="MFKLogo.gif" /></a>
I uploaded my picture in the root.

When I refresh the page there is no picture showing, but the link works fine.

Thanks in advance for the help
 

Jake Bunce

XenForo moderator
Staff member
#4
public_html is not correct.

What is the full URL of the image (http://...)? You can use that for the img src to remove all doubt. Sometimes relative paths don't work due to base href problems in some browsers.
 

Craig

Active member
#5
public_html is not correct.

What is the full URL of the image (http://...)? You can use that for the img src to remove all doubt. Sometimes relative paths don't work due to base href problems in some browsers.
Well this one didn't work;

Code:
<a href="http://miraclesforkids.org"><img src="http://costamesakarate.com/MFKLogo.gif"/></a>
 

Craig

Active member
#7
That's because the image URL isn't working:

http://costamesakarate.com/MFKLogo.gif

Make sure the image is uploaded to the web root so this URL works.
ok, I have tried ;

<a href="http://miraclesforkids.org"><img src="MFKLogo.gif"/></a>
<a href="http://miraclesforkids.org"><img src="http://costamesakarate.com/MFKLogo.gif"/></a>
<a href="http://miraclesforkids.org"><img src="http://costamesakarate.com/forum/MFKLogo.gif"/></a>

All to no avail.... sigh....

I uploaded MFKLogo.gif right inside the public_html folder and right out side of the public_html folder.
 

Bram

Well-known member
#14
What you can do is the following (quick fix) so you dont need to upload any images to your site.
  1. Upload the image to www.tinypic.com and save the link that is called direct links to layouts.
  2. <a href="http://miraclesforkids.org" target="_blank"><img src="INSERT THE LINK FROM TINYPIC HERE"/></a> (added a target blank so the link opens a new window, otherwise your visitors will leave your site)
  3. Copy paste the entire line of step 2 and paste it in the ad_sidebar_bottom template
  4. Save and done
Like I said a quick fix. Tip is for the next time to create a map under your forum folder via FTP (if its not there already) and upload an image called example.jpg or something there.

Your path then will be /forum/images/example.jpg

I feel your pain as I have been struggling with all those basic things myself for years. Good thing is that there are tons of friendly helpful people on the interwebs and with practice comes skills.

Hope this works for you as it seems its for the good cause (y)
 

Craig

Active member
#15
What you can do is the following (quick fix) so you dont need to upload any images to your site.
  1. Upload the image to www.tinypic.com and save the link that is called direct links to layouts.
  2. <a href="http://miraclesforkids.org"><img src="INSERT THE LINK FROM TINYPIC HERE"/></a>
  3. Copy paste the entire line of step 2 and paste it in the ad_sidebar_bottom template
  4. Save and done
Like I said a quick fix. Tip is for the next time to create a map under your forum folder via FTP (if its not there already) and upload an image called example.jpg or something there.

Your path then will be /forum/images/example.jpg

I feel your pain as I have been struggling with all those basic things myself for years. Good thing is that there are tons of friendly helpful people on the interwebs and with practice comes skills.

Hope this works for you as it seems its for the good cause (y)
Yes Miracles is a great charity. They helped my step daughter, and wife while my step-daughter was being treated for leukemia. The karate studio we are building is in partnership with them.
 

Craig

Active member
#17
What you can do is the following (quick fix) so you dont need to upload any images to your site.
  1. Upload the image to www.tinypic.com and save the link that is called direct links to layouts.
  2. <a href="http://miraclesforkids.org" target="_blank"><img src="INSERT THE LINK FROM TINYPIC HERE"/></a> (added a target blank so the link opens a new window, otherwise your visitors will leave your site)
  3. Copy paste the entire line of step 2 and paste it in the ad_sidebar_bottom template
  4. Save and done
Like I said a quick fix. Tip is for the next time to create a map under your forum folder via FTP (if its not there already) and upload an image called example.jpg or something there.

Your path then will be /forum/images/example.jpg

I feel your pain as I have been struggling with all those basic things myself for years. Good thing is that there are tons of friendly helpful people on the interwebs and with practice comes skills.

Hope this works for you as it seems its for the good cause (y)
Thank you so very much!