Posted by shiv_sms on January 31, 2011 at 6:11am
hi
i am new to drupal, so pls pardon me for such silly qtn. i have pulled down advanced and added it to my drupak site. I have created 2 binary polls and now iam not able to figureout how to display it for users to participate and also be able to see the results. I want to show it either in a block or in a page. By default advanced poll only creates a "latest poll" kind of block. that also doesnt show any of the choices. it just shows the results that nobody has voted yet.
If some could help me out on this.
shiv
Comments
Here are the steps: Copy the
Here are the steps:
Voila! now you should see the block.
Multiple Polls in the Block
Hello,
I'd like to know if this is possible in this Block to have Three Last Poll?
Thanks
François
After you vote, it will show
After you vote, it will show a link to Older Polls.
With a quick tweak in advpoll.module, you can have Older polls to show-up even before voting.
Thanks Vako, do you have any
Thanks Vako,
do you have any idea on about writing this "Quick tweak".
Thanks again
François
Open the file ->
Open the file ->
\sites\all\modules\advpoll\advpoll.moduleDo a search for "Older"
Change the line:
if ($node->voted) {$output .= '<p>'. l(t('Older polls'), 'polls', array('class' => 'old-polls', 'title' => t('View the list of polls on this site.'))) .'</p>';
}
to
$output .= '<p>'. l(t('Older polls'), 'polls', array('class' => 'old-polls', 'title' => t('View the list of polls on this site.'))) .'</p>';
Note that all we're doing is removing the IF statement.
creating a poll
How do I create a poll