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: 123
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 111
  • Total: 111

Polls

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


WeBrain

I get this error written in the block i tried to put poll on :
Parse error: parse error, unexpected '=' in /home/webrain/public_html/skyshark/forum/Sources/Load.php(1607) : eval()'d code(34) : eval()'d code on line 1

Block is a php one and only has :"ssi_showPoll(topic=36);" in it
TP 0.8.6 SMF 1.1RC2

HaxXxoR

Try it without no quotes "" in it and it should work

WeBrain

lol it has no quotes in it lol  ;)

HaxXxoR

oh lol sorry it looked like it.

rbh

i got it to work by not using the topic=, just the topic number. instead of ssi_showPoll(topic=36); i use ssi_showPoll(36); of course changing the topic number to match yours. the only thing is, dont use frames from theme, at least the one i tried looked like crap. also, it only pulls the results, you can't actually vote from the box which is what i was hoping for. unless i am not doing something correct anyways.

elpvn

Work fine, that's a good solution for now  ;D

Creat a PHP bloc and add this

ssi_showPoll(number_your_poll_topic);


Ex:
topic= 36.0 has been post a poll then u just using this

ssi_showPoll(36);


Thank rbh for code  ;)

Larathiel

Quote from: rbh on April 20, 2006, 01:55:48 AM
i got it to work by not using the topic=, just the topic number. instead of ssi_showPoll(topic=36); i use ssi_showPoll(36); of course changing the topic number to match yours. the only thing is, dont use frames from theme, at least the one i tried looked like crap. also, it only pulls the results, you can't actually vote from the box which is what i was hoping for. unless i am not doing something correct anyways.
Adding a quick little link below the poll results fixes that. :)

ssi_showPoll(99);
echo '<small><a href="http://forums.blahblahblah.com/index.php?topic=99">vote here</a>';

rjholla2003

SSI Poll = Very good. :)  The flash poll I was using looked so nice, but it would dump tenths of a percent into the last option, throwing off all of the percentages.

RoarinRow

Quote from: Larathiel on June 19, 2006, 10:44:13 AM
Quote from: rbh on April 20, 2006, 01:55:48 AM
i got it to work by not using the topic=, just the topic number. instead of ssi_showPoll(topic=36); i use ssi_showPoll(36); of course changing the topic number to match yours. the only thing is, dont use frames from theme, at least the one i tried looked like crap. also, it only pulls the results, you can't actually vote from the box which is what i was hoping for. unless i am not doing something correct anyways.
Adding a quick little link below the poll results fixes that. :)

ssi_showPoll(99);
echo '<small><a href="http://forums.blahblahblah.com/index.php?topic=99">vote here</a>';


Sweet, thank you.  I've been waiting simple like this that utilized the existing forum s/w.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

This website is proudly hosted on Crocweb Cloud Website Hosting.