TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 801
  • Total: 802
  • tino

Is there any way to show just one poll in a block?

Started by Homer_J_S, March 28, 2005, 02:05:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Homer_J_S

I would love to have a poll on the left side in a block but I don't know enough to get one to show. Is this possible yet with TP?

Thanks in advance.

IchBin

I would imagine it wouldn't be to hard to code a block for that. I'll see if I can't come up with one. I'm no expert, but I love trying. :) Bloc will have a little better perspective on this though.

Bjørn

Do you mean a poll that also is in the forum - or a stand-alone poll just for the blokc/TP?

The first option is pretty straightforward, since SSI.php already has this function built-in. The latter is more involved since it requires a new poll function to be made just for TP. But still not impossible.. ;)

Homer_J_S

Actually either one would do.
On the first option, Just so that it would it would only give the poll I wanted and not the most recent poll. For example if I created a forum strictly for polls. The poll that would show up in the block would be the one I could control and not something like the most recent poll created in the forum. I hope that made sense. I guess just so long as I had control over the poll that my users could view and if they had already voted it would automatically show them the results. 

Of course the second option would really be wonderful. Just to have a stand alone poll that would show you the results if you had already voted and I wouldn't have to create a seperate forum just for polls.

But as I said, any of these could help me out.       

Bjørn

I am going to release a new beta soon for the beta-testers, I can include "poll-in-block" type for this, since it probably is very handy there on the frontpage. The SSI.php variant will fetch the latest, but with some rewriting/copying of the function it can fetch one specific poll.

Homer_J_S

If you can make it fetch one specific poll that would be wonderful. Thanks so much and I eargerly await the next stable beta.  ;D

This website is proudly hosted on Crocweb Cloud Website Hosting.