PDA

View Full Version : Displaying IMG On Poll!?


paul41598
02-05-2007, 09:18 AM
If I have a poll that has images in it, how can I get them to show on my homepage? Right now it gives a link like http://www.blah.com/image.jpg ?
instead oof showing the actual image

Any workaround?

Brian
02-05-2007, 09:53 AM
http://www.vbadvanced.com/forum/showthread.php?t=19295

Our Sponsors
 

paul41598
02-05-2007, 09:56 AM
shoulda did a search more throughghly, thanks Brian

paul41598
02-05-2007, 11:29 AM
hmm I have this:


$pollmod['question'] = $bbcode_parser->parse($pollmod['question'], $pollmod['forumid'], $mod_options['portal_poll_allowsmilies']);


not working. I'll try one more time

Our Sponsors
 

Brian
02-05-2007, 11:35 AM
You are running v2.2.1, right? Some variables changed in that version, so that's the only reason I can think of that code wouldn't work. If you're running an older version and don't want to upgrade for some reason then you should be able to change each instance of $pollmod to $pollinfo in that code and have it work with older versions.

paul41598
02-05-2007, 11:43 AM
ya its 2.2.1.

Brian
02-05-2007, 11:45 AM
You do have your forum options set to allow images in polls for that fourm, right? That's the only other thing I can think of that would prevent that code from working. If that's not it and you'd like to submit a support ticket I'll be glad to take a look at things for you.

paul41598
02-05-2007, 11:46 AM
ya the images work fine in the actual poll. Just the CMPS that doesnt. Ok thanks for ur help buddy

paul41598
02-05-2007, 12:02 PM
fixed it Brian :)

find:


$option['question'] = $bbcode_parser->parse($splitoptions["$key"], '', $mod_options['portal_poll_allowsmilies']);


change to:


$option['question'] = $bbcode_parser->parse($splitoptions["$key"], $pollmod['forumid'], $mod_options['portal_poll_allowsmilies']);

Brian
02-06-2007, 12:36 PM
Ahhhh, sorry. I thought you were referring to an image in the poll's question instead of the choices. Glad you were able to figure it out either way though. :)

kevnj
03-03-2007, 03:15 PM
Works great thanks guys.

Just was wondering if an option can be added. To allow a redirect cause when using pictures they tend to throw off the cmps page. I run photopost vbagallery. I would like to use the thumbnails and when clicked go to the photopost gallery that shows the orginal file. Is this possible ?