XF 2.1 Add images to a poll


Active member
Running a photo contest with a bunch of images. It sure would be much easier if thumbnail images were shown as part of the poll and they simply clicked next to the one they like.

Is that possible in either XF or as an add-on?
In ACP -> Appearance -> Templates search for poll_macros.

In poll_macros search for

<xf:option value="{$responseId}">{$response.response|censor}</xf:option>

at macro "poll_block" line 31.

and change it to:

<xf:option value="{$responseId}">{$response.response|raw}</xf:option>

then you can use something similar to
<img src="/attachments/123">

as your poll choice.
Sorry to bring up an old thread, but I have the same question.

Is there a way to make poll choices images? Using IMG BB code doesn't work. I tried what @Yodrak posted above to allow <img src="/attachments/123"> as a poll option, but that didn't work either. Throws an "oops" error, presumably because HTML isn't allowed in poll options.

Here's an example of what it looked like using vBulletin:

Thanks Nicodak. Unfortunately that addon won't work for my needs. I gather up all the photos first, then post the poll to vote on them.

Ideally I would be able to include HTML or BB code in the poll options.
Top Bottom