MyBB Community Forums

Full Version: How can I insert hyperlink in Poll?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
How can I insert hyperlink an title or options in a Poll?
for example:
In title: "Poll: blah blah ..... (Click here to read more about poll)"

Also the same thing in poll options.
No, by default you can't add HTML in Title.

But you can use BBCodes in Poll Options, like;
[img]./images/logo.gif[/img]
BBCode didn't worked for URL:
[url=http://testdomain.com/showthread.php?tid=1421]test test[/url]
it shows codes in title!
Yes, however it works if you use in Poll Options. (Not in poll's title)
Thank you, So there is no way to insert hyperlink in Poll's title. Sad
I'm using poll on index and members couldn't follow all posts.

I'll use in poll's options now. Thanks
I think its possible (never had a look at that area before, so I guess) but you've to edit a core file.
It only worked in topic's page that contains poll, but in index page it shows bbcodes and urls even in options!
I guess the modification you used has possibly missed the $parser-> options in poll options, while displaying poll on index.

Are you using any plugin or any modification to show poll on index ??
I'm using "Poll on Index" plugin for that purpose.
I think the issue is that he was using $forum['some_thing'] however there is NO $forum defined. Its a Plugin's support then. I'm reporting it to move to plugin's support.

Open plugin file and find;
for($i = 1; $i <= $poll['numoptions']; ++$i)
and ADD the following code just BEFORE that line;
		$tid = intval($poll['tid']);
		$thread = get_thread($tid);
		$fid = intval($thread['fid']);
		$forum = get_forum($fid);