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

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

I have tried code such as: <a href="http://img120.imageshack.us/my.php?image=tdl19mk9.jpg" target="_blank"><img src="http://img120.imageshack.us/img120/6332/tdl19mk9.th.jpg" border="0"/></a> into the header but nothing will show. How can I fix this?

Comments

  • 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: http://lussumo.com/community/discussion/8280/how-can-i-insert-a-picture-from-a-hosting-site-into-my-menu-header/#Item_0 Description: Adds a picture to your vanilla forum pages. Version: 0.1 Author: Sage_of_Fire Author Url: http://evansphotographic.com */ if ( !in_array($Context->SelfUrl, array('settings.php')) && isset($Head) ) { $bannerPicture = ' <a href="http://img120.imageshack.us/my.php?image=tdl19mk9.jpg" target="_blank"><img src="http://img120.imageshack.us/img120/6332/tdl19mk9.th.jpg" 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:

    /path/to/vanilla/extensions/ok-heres-anything/default.php

    "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 http://lussumo.com/docs/doku.php?id=vanilla:administrators:troubleshooting#theme_changes 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.