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

[Block] Polls for TP/SMF - and associated SSI hack

Started by Thurnok, October 21, 2006, 07:21:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dragooon


Dragooon

I tried this And The pol bars cbreak the lines and I even tried your SSI modifications to solve it but failed

Dragooon

#32
I tried everything works fine on my test forum but on my main forum it says Page cannot be displayed when voted
EDIT:I even tried replacing the 2 SSI but still failed.

clemenzo

My attempt to package this along with my rotating color poll bars mod is approved! Check out http://custom.simplemachines.org/mods/index.php?mod=765

Whiteyez

Quote from: Thurnok on January 24, 2007, 08:59:48 AM
Sure... this of course assumes you already have a number of polls and you manually enter the ones you want as part of the random display into the array...

example:

// if you are using php version < 4.2.0, you need to seed the random generator
srand((float) microtime() * 10000000);

// change <postnum> to actual post numbers - this is your array of polls
$randpollarray = array(<postnum>, <postnum>, <postnum>...);

// grabs a random key from the array
$randpollkey = array_rand($randpollarray);

// get the postnum value from the random array element
$randpollvalue = $randpollarray[$randpollkey];

ssi_showPoll($randpollvalue);


Hmmm i dont get it, where do i put this?

IchBin


Whiteyez



Spasm


pianoman723

Quote from: Thurnok on October 21, 2006, 07:21:13 AM
In order for your members to actually vote from the Poll block, you need the SSI hack found here.

Forgive me if this has already been answered, but this topic appears to have been removed.  Could someone point me to the relocation or tell me how I can get the hack?  Thanks!

This website is proudly hosted on Crocweb Cloud Website Hosting.