7
Edit: Erm... clone a block. I'll give it a try.
Ok, just as Mithrandir said...
Open /modules/xoopspoll/xoops_version.php and find
le="color: #000000"><?php //Blocks $modversion['blocks'][1]['file'] = "xoopspoll.php"; $modversion['blocks'][1]['name'] = _MI_POLLS_BNAME1; $modversion['blocks'][1]['description'] = "Shows unlimited number of polls/surveys"; $modversion['blocks'][1]['show_func'] = "b_xoopspoll_show"; $modversion['blocks'][1]['template'] = 'xoopspoll_block_poll.html';
Below that paste
le="color: #000000"><?php $modversion['blocks'][2]['file'] = "xoopspoll.php"; $modversion['blocks'][2]['name'] = _MI_POLLS_BNAME1."1"; $modversion['blocks'][2]['description'] = "Shows one poll/survey"; $modversion['blocks'][2]['show_func'] = "b_xoopspoll_show"; $modversion['blocks'][2]['template'] = 'xoopspoll_block_poll_1.html'; $modversion['blocks'][3]['file'] = "xoopspoll.php"; $modversion['blocks'][3]['name'] = _MI_POLLS_BNAME1."2"; $modversion['blocks'][3]['description'] = "Shows one poll/survey"; $modversion['blocks'][3]['show_func'] = "b_xoopspoll_show"; $modversion['blocks'][3]['template'] = 'xoopspoll_block_poll_2.html';
Now go to /modules/xoopspoll/templates/blocks/ and copy
xoopspoll_block_poll.html as
xoopspoll_block_poll_1.html and
xoopspoll_block_poll_2.htmlOpen xoopspoll_block_poll_1.html and find
le="color: #000000"><?php <{foreach item=poll from=$block.polls}> <form style="margin-top: 1px;"
and add
<{if $poll.id is odd}> so that it becomes
le="color: #000000"><?php <{foreach item=poll from=$block.polls}> <{if $poll.id is odd}> <form style="margin-top: 1px;"
At the end of the file, locate
le="color: #000000"><?php </form> <{/foreach}>
and add
<{/if}>:
le="color: #000000"><?php </form> <{/if}> <{/foreach}>
That's it, a block that'll display odd polls. Do the same to
xoopspoll_block_poll_2.html, but using
<{if $poll.id is even}> and this should work fine