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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 105
  • Total: 105

Polls

Started by HaxXxoR, March 28, 2006, 07:29:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HaxXxoR

Is there a way to add a block to the site that is linked to a certain section in the forums so that when you make a new poll that it shows up in the block. Just thought it would be a cool idea. Let me know. Thanks in advance.

insanemustang

I too would be interested in seeing this.  I know you can link to an external poll, but that defeats the purpose of having it on the forums at all.

Hope someone can do it!

MentalMuscle

I believe this should do it:

ssi_showPoll($topic);

I got the code from this post:

http://www.tinyportal.net/smf/index.php?topic=1930.0

insanemustang

that thread is super confusing to me

HaxXxoR

same here..... is there a way to create a new section in the forums for polls only and then just tie it in with that?

MentalMuscle

#5
Although I'm not an SMF guru at first glance all you should have to do is replace $topic in the parenthesis with the top # as shown in the URL

ssi_showPoll(topic=3752);

MentalMuscle

Quote from: HaxXxoR on March 28, 2006, 10:55:32 PM
same here..... is there a way to create a new section in the forums for polls only and then just tie it in with that?

I'm sure there is, but to have one poll show at a time other variables would need to be specified to determine latest poll created.  The PHP block code would still use $topic to display a single poll.

insanemustang

And what kind of block do we put ssi_showPoll(topic=3752); in

IchBin


Xarcell

There is no "polls only" feature within SMF. I been requesting it since last year, and was really hoping it would be in 1.1, but it's not.

If you want to help support adding that feature to SMF, so that in certain boards, user's can only make polls, reply to this thread: http://www.simplemachines.org/community/index.php?topic=65873.0


This website is proudly hosted on Crocweb Cloud Website Hosting.