xoops forums

jayjay

Not too shy to talk
Posted on: 2004/7/28 9:16
jayjay
jayjay (Show more)
Not too shy to talk
Posts: 175
Since: 2003/9/10
#1

Poll hack: show poll results in a block on start page

Hi everyone!

Some time ago Kubaz hacked the xoopspoll module so that the poll results (instead of the poll questions) would show if anyone had already voted on a poll.

I added a new block to his hack. The block allows you to directly show the poll results. This means you can show the results of your polls at your start page from now on

Download xoopspoll hack

An example can be seen on my site or at the bottom of this post:
http://www.sint-niklaas.be

Starting from Kubaz' hack, I changed these files:

xoops_version.php:
- made new entries under "blocks"

blocks/xoopspoll.php:
- made new b_xoopspoll_results() function
- sprintf hack for better display percentages

language/english/modinfo.php:
- new entry for results block name

Resized Image

KubaZ

Just popping in
Posted on: 2004/8/20 14:24
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#2

Re: Poll hack: show poll results in a block on start page

thanks for expanding my hack :)

theprof

Quite a regular
Posted on: 2004/8/20 14:47
theprof
theprof (Show more)
Quite a regular
Posts: 225
Since: 2004/7/14
#3

Re: Poll hack: show poll results in a block on start page

Kubaz that is a nice theme...is it available?