Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How can I insert a picture from a hosting site into my menu header.

I have tried code such as: <a href="" target="_blank"><img src="" border="0"/></a> into the header but nothing will show. How can I fix this?


  • Options
    Exactly where did you put it, which file?
  • Options
    Not sure what the problem is, or what the hang up seems to be, but try nuggets, it will at least simplify the process!
  • Options
    Also, I don't know how wise it is to point to an external image, much better to store it on the same server as Vanilla?
  • Options
    <?php /* Extension Name: Picture Banner Extension Url: Description: Adds a picture to your vanilla forum pages. Version: 0.1 Author: Sage_of_Fire Author Url: */ if ( !in_array($Context->SelfUrl, array('settings.php')) && isset($Head) ) { $bannerPicture = ' <a href="" target="_blank"><img src="" border="0"/></a> '; $Head->AddString($bannerPicture); } ?> Just cut and paste the code above into a new file in your extensions file (call it whatever you want), then access your forum settings (the settings tab) and pick the extensions option on the left. Click the checkbox labeled 'Picture Banner' and you should have it! Hope this helps! (and sorry if it doesn't; I'm in a hurry!)
  • Options
    it can't be just anything, it has to be:


    "ok-heres-anything" can be PictureBanner, or something that you'll recognize.
  • Options
    *Slaps head with palm* Sorry, I forgot to mention the 'default.php' requirement. fysicsluvr is of course, right; you have to paste the code into a new document titled 'default.php', which has to go into a new folder in your extensions folder before it'll work. And even then, I gave you the wrong code, so it won't work then, either. If you'd like to learn about how to add something to the top of your forum pages, my advice is that you check out Mark's extension tutorial on how to add the five extra links at the top of the pages. It won't fix your problem, but it'll show you how you could do it. Sorry for the misguidance...
This discussion has been closed.