1. 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

Discussion in 'Troubleshooting and Problems' started by Craig, Mar 27, 2013.

  1. Craig

    Craig Active Member

    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
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You need to enter the correct path for the image file.
     
    Craig likes this.
  3. Craig

    Craig Active Member

    ok I changed it to
    <a href="http://miraclesforkids.org"><img src="public_html/MFKLogo.gif"/></a>
    but alas I am still a NO GO....
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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 likes this.
  5. Craig

    Craig Active Member

    Well this one didn't work;

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

    Jake Bunce XenForo Moderator Staff Member

  7. Craig

    Craig Active Member

    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.
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It's showing what appears to be a Wordpress 404 page. Maybe try removing any Wordpress .htaccess files?
     
  9. Craig

    Craig Active Member

    please forgive my ignorance, but i have no clue what that means or how to do it.
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Give me FTP access and I will confirm the correct location and URL of the image.
     
  11. Craig

    Craig Active Member

    ok
     
  12. Bram

    Bram Well-Known Member

    Where did you upload this image Craig? Under forum/images?
     
    Craig likes this.
  13. Craig

    Craig Active Member

    Well evidently I am vary bad at this, as I have yet to figure out where to place it, and how to properly write the code.
     
    Bram likes this.
  14. Bram

    Bram Well-Known Member

    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 likes this.
  15. Craig

    Craig Active Member

    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.
     
  16. Bram

    Bram Well-Known Member

    Fantastic initiative! All the best with the project Craig (y)
     
    Craig likes this.
  17. Craig

    Craig Active Member

    Thank you so very much!
     
  18. Craig

    Craig Active Member

    Thanks! Your recommendation worked like a charm.
     
    Bram likes this.
  19. Craig

    Craig Active Member

    I sent you a message.
    At the moment I have a temporary fix.
     
  20. Bram

    Bram Well-Known Member

    Looks excellent now with the image showing. Let's hope many people will click it (y)
     
    Craig likes this.

Share This Page