Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 10:37 pm EST
Geeklog Forums
Is it possible to create a poll in a block?
Paul
Anonymous
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
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
7
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
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
7
6
Quote
Paul
Anonymous
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
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
8
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
From your own PHP block function, you can then call COM_showPoll (see lib-common.php).
bye, Dirk
6
5
Quote
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
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
5
6
Quote
All times are EST. The time is now 10:37 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content