Welcome to Geeklog, Anonymous Sunday, May 26 2024 @ 05:17 am EDT

Geeklog Forums

Is it possible to create a poll in a block?


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 Banging your head
 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
 Quote

Paul

Anonymous
confused
Can someone help meI 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.... Doh! - that was a mistake
Thanks again for all your help,
Paul
 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
 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


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
 Quote

All times are EDT. The time is now 05:17 am.

  • 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