How to add attachment to sidebar?

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.
 
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">
 
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.
 
Look for Unlimited sidebar add-on by borbole you can simply add /sidebar edit from front end.
 
Look for Unlimited sidebar add-on by borbole you can simply add /sidebar edit from front end.

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

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 .
 
Top Bottom