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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,219
  • Total Topics: 21,352
  • Online today: 556
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Bug in Poll block

Started by ynohtna, October 24, 2005, 03:50:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

USO_Joe

would you post the snippet for either?

iowamf

SSI.PHP - function ssi_RecentPoll - just added the "No Polls Left" as a test.

// This user has voted on all the polls.
if ($row === false)
//hack in:
{
                echo "No Polls Left<br>";
return array();
}

$request = db_query("

Tee

Is there a fix for this yet?


doug

jdougher

I'd love a fix for this as well.

IchBin

Bloc hasn't released a fix yet. If there is someone that is a PHP guru, all I think we need is to have it return a "View Results" link after you have voted.  Ideally it would be nice to have both. :)

Tee

I remember a while back in yabb, there was a problem with polls and it was in the polls.php where something needed to be changed to "null"....

This was the fix for it then, but coding has changed a lot:

<edit file>
Sources/SPolls.php
</edit file>

<search for>
         WHERE (FIND_IN_SET('$settings[7]', c.memberGroups)!=0 OR c.memberGroups='' OR '$settings[7]'='Administrator' OR '$settings[7]'='Global Moderator') $id_query") or database_error(__FILE__, __LINE__);
</search for>

<replace>
         WHERE (FIND_IN_SET('$settings[7]', c.memberGroups)!=0 OR c.memberGroups IS NULL OR '$settings[7]'='Administrator' OR '$settings[7]'='Global Moderator') $id_query") or database_error(__FILE__, __LINE__);
</replace>

juffieesther

Does anybody know if there is a fix for this?:

Quote from: IchBinâââ,¬Å¾Ã,¢ on December 12, 2005, 11:26:33 PM
Bloc hasn't released a fix yet. If there is someone that is a PHP guru, all I think we need is to have it return a "View Results" link after you have voted.  Ideally it would be nice to have both. :)

gffb

I know this is an old topic but has this been fixed as I cant see a poll when I activate a block ssi_function - most recent poll or even Top poll

G6Cad


gffb

Quote from: G6 on February 04, 2008, 07:33:27 AM
No fix in TP V098

ok no worries i used this mod to work around it for the time being.

http://custom.simplemachines.org/mods/index.php?mod=765

Very easy to install for aditional themes also.

This website is proudly hosted on Crocweb Cloud Website Hosting.