Paul

Anonymous
flirty
I would like to have a poll in a block so I can limit that poll to a certain topic.
This would allow me to a have different polls on different pages.
Would this work, or would I run into a problem when people are trying to vote on more than 1 poll?
If it would work how do I get the poll to show up in a block?
Thanks,
Paul

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
I guess that would work.

Polls are identified by their ID, so they shouldn't interfere with each other (otherwise we wouldn't be able to have two polls on this very site right now ...).

bye, Dirk

Paul

Anonymous
confused
I see a "Block Function:" option in the "PHP Block Options" section, is this what I read something about calling a function there. How do I call the poll function if that is what I'm trying to do? Or, do I have to use the "Normal Block Options" section to add the code to get the poll?
If I need code to do this what is the code?

Please excuse the lack of knowledge here, I'm kind of learning as we go here....
Thanks again for all your help,
Paul

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
See What are the different block types for? for some basics.

From your own PHP block function, you can then call COM_showPoll (see lib-common.php).

bye, Dirk

Status: offline

congleal

Forum User
Full Member
Registered: 11/08/04
Posts: 179
Quote by Dirk: See What are the different block types for? for some basics.

From your own PHP block function, you can then call COM_showPoll (see lib-common.php).

bye, Dirk


Dirk,
It isn't very clear to me how to do this? Another reason I would like to use the block option is hopefully to insert a graphic. Is it possible?
If you could please clarify the instructions to use the block mode and tell me if it is possible to use a graphic, I would appreciate it very much.

Lee