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

How to add attachment to sidebar?

Discussion in 'Resource and Add-on Discussions' started by nrep, Mar 29, 2013.

  1. nrep

    nrep Well-Known Member

    On one of the forums I'm looking at converting to XF, we've got a photo of the month competition. Each member posts a photo in a thread and then there's a poll to choose the winner.

    Currently, I've got a vBulletin mod to display the winning pic on the sidebar. However, I'm not sure how I can do the same thing with XF.

    Is there a way using existing add-ons or simple coding so that I can upload an attachment somewhere and have it display in the sidebar, all from the frontend? Perhaps by pulling the latest attachment from a particular thread? I want to allow moderators to be able to do this, so there won't be FTP/Admin Panel access.
     
  2. Dodgeboard

    Dodgeboard Well-Known Member

    You could use simple image code in ad_sidebar_below_visitor_panel to do what you are trying to do. it would be quite easy.

    example:

    Code:
    <img src="yourpicture.jpg" alt="Picture Name" width="304" height="228">
     
    nrep likes this.
  3. nrep

    nrep Well-Known Member

    Ah, sorry I should have explained more (will edit first post) :oops:. I'm hoping to do it so that it can be managed via the frontend by moderators/admins, without an ongoing need to modify templates.
     
  4. iTuN3r

    iTuN3r Well-Known Member

    Look for Unlimited sidebar add-on by borbole you can simply add /sidebar edit from front end.
     
    nrep likes this.
  5. nrep

    nrep Well-Known Member

    Thanks! That's an interesting way of doing it - ideally I'd like to be able to do it just by uploading an image somewhere, but this would also work from the frontend with a little more effort.
     
  6. iTuN3r

    iTuN3r Well-Known Member

    Well you can simply insert html code and you are done :) You can also upload the image to your server directory and just use imagepath .
     

Share This Page