51 (edited by chacmool 2003-10-24 09:54)

Re: Poll for PunBB

Kennel: Ahh, no problem. I did the same smile

Im done with all my exams now, so there's some time for php instead. I'm gonna look at Scriptweaver's problem right away. Still dont'n know how to solve the mozilla-issue though...

Re: Poll for PunBB

We recently installed this mod at the site I moderate, Customers Suck!, and I have to say it works great!  Thanks, guys!

Re: Poll for PunBB

Maybe a good idea to add the bug-fix here too... this one fixes the ·  Fixed a bug where users not logged in could vote.-bug.

FIND (in viewtopic.php, line ~124):
// Already votet -> Show the results
if(strpos($voters, ','.$cur_user['id'].',') !== false)
    $showresult = true;

REPLACE WITH:
// Already votet -> Show the results
if(strpos($voters, ','.$cur_user['id'].',') !== false || !$cur_user['id'])
    $showresult = true;

54

Re: Poll for PunBB

Just tried to install v1.1, but when installing via install_mod.php, this error came up:

An error was encountered
File: <snip>/install_mod.php
Line: 20

PunBB reported: Unable to add column polls to table options
Database reported: Duplicate column name 'polls' (Errno: 1060)

55

Re: Poll for PunBB

Ah yeh, forgot I already tried to install 1.01. No wonder theres duplicated columns big_smile

56

Re: Poll for PunBB

Eventually got it installed (nice long install guide:)) and it works perfectly. Cheers!

57

Re: Poll for PunBB

I've got a request, that would be rather handy for the way we use the poll function...

We use it to vote for different questions, rules, suggestions and other similiar stuff in our organisation, and we also have a separate forum part for our board where the board members can do the "final voting" for things. It would be very useful to be able to see which of the members that have voted, so you can tell the other ones to do so.

Well, other than that, it works great! Kickass mod! Thanks for the work you've done already!

Re: Poll for PunBB

Magebarf wrote:

I've got a request, that would be rather handy for the way we use the poll function...

We use it to vote for different questions, rules, suggestions and other similiar stuff in our organisation, and we also have a separate forum part for our board where the board members can do the "final voting" for things. It would be very useful to be able to see which of the members that have voted, so you can tell the other ones to do so.

Well, other than that, it works great! Kickass mod! Thanks for the work you've done already!

It'l be no problem to implement I think... maybe I'll look at it sometime smile

I've hade som thoughts about doing another page in the admin-section for this kind of things.

59 (edited by chacmool 2003-12-05 19:03)

Re: Poll for PunBB

Magebarf:
I'm done with the poll-admin-info-stats-thing!

Also solved the quote-problem now smile
( New file available in the first post. )

60 (edited by chacmool 2003-12-05 19:02)

Re: Poll for PunBB

"Patch" to fix the quote-problem:

In both post.php and edit.php:
#---------[ FIND ]----------------------------------------------------------
#

$answer = addslashes($_POST['answers'][$i]);

#
#---------[ REPLACE ]-------------------------------------------------------
#

$answer = stripslashes(htmlspecialchars($_POST['answers'][$i], ENT_QUOTES));

#
#---------------------------------------------------------------------------

Re: Poll for PunBB

Uhm... I just installed it and I can add the poll and stuff but I can see it when I open the post..
should I go through the 2 million steps again and spend an extra 20mins?

Re: Poll for PunBB

Its alot of steps but the problem is only in post.php.

Change only that again smile

Re: Poll for PunBB

Hmm, did you mean: "but I CAN'T see it when"?

Then the problem's in viewtopic.php and not in post.php.

Re: Poll for PunBB

Oh sorry!

65

Re: Poll for PunBB

Chacmool, 1.1.2 is for a blank install, right?

If so, you think you could make a patch from 1.1?

That'd be great.