Welcome, Guest. Please Login or Register.
May 11, 2025, 05:44:46 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  See who have Polled and what « previous next »
Pages: [1] Reply Ignore Print
Author Topic: See who have Polled and what  (Read 776 times)
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

See who have Polled and what
« on: March 27, 2003, 10:11:53 AM »
Reply with quote


That would be a great Mod!!

In my Board all want it for Public Votings. The Vote Poster should be able to make a public or secret Vote.

Surfx
Logged
chris
Guest
Re:See who have Polled and what
« Reply #1 on: March 27, 2003, 03:02:30 PM »
Reply with quote

Hmmm.... the problem is not to show who voted, but what they voted.... this would require some changes in the database....

If you only want to display who voted... it can be done quite easily... open "Display.php" and search for

         $totalvotes = $pollinfo['votes1'] + $pollinfo['votes2'] + $pollinfo['votes3'] + $pollinfo['votes4'] + $pollinfo['votes5'] + $pollinfo['votes6'] + $pollinfo['votes7'] + $pollinfo['votes8'];

and add the following few lines behind it:

         $dummy   = split(',',$pollinfo['votedMemberIDs']);
         if (count($dummy))
         {            
            foreach ($dummy as $curvoter)
            {
               $res      = mysql_query('SELECT IFNULL(realName, memberName) AS realName FROM '.$db_prefix.'members WHERE ID_MEMBER = '.$curvoter);
               echo mysql_error();
               $vinfo      = mysql_fetch_assoc($res);
               $vusers[]    = $vinfo['realName'];
            }
            $totalvotes   .= ' ('.implode(", ",$vusers).')';
         }


(If somebody wants to build a mod from this.... feel free to do so ;D)

MOSTLY UNTESTED!!!!
Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:See who have Polled and what
« Reply #2 on: March 27, 2003, 05:36:24 PM »
Reply with quote

thx a lot!!

If you have a little bit time to think about a such Mod, it would be great  :-*

Ill test the Code tomorrow

cf
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:See who have Polled and what
« Reply #3 on: March 27, 2003, 06:11:30 PM »
Reply with quote

Quote from: Surfy on March 27, 2003, 05:36:24 PM
thx a lot!!

If you have a little bit time to think about a such Mod, it would be great  :-*

Ill test the Code tomorrow

cf
Hmm, wer liest ist klar im Vorteil *lol* ;) !
Logged

Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:See who have Polled and what
« Reply #4 on: March 27, 2003, 06:38:52 PM »
Reply with quote

I modded my board to allow users to change their vote.  It required just one new field in the polls table.  It does take the anonimity out of it but only if you can see the into the db.  something like that could be extended to allow everyone to see how everyone else voted, but I wouldn't do it.  I never packaged my mod for release so its not really available.  But it was not too hard to slag together.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:See who have Polled and what
« Reply #5 on: March 27, 2003, 09:17:03 PM »
Reply with quote

Quote from: Daniel D. on March 27, 2003, 06:11:30 PM
Hmm, wer liest ist klar im Vorteil *lol* ;) !

i know that you both speak German  ;)

I hope too that Christian or someone else find time for this Mod, also if Chris hope that someone else will try it  :P  :-*   ;)


Surfy

Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:See who have Polled and what
« Reply #6 on: March 27, 2003, 09:20:29 PM »
Reply with quote

Er hat den Mod schon gepostet, dass wollte ich sagen...
Logged

Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:See who have Polled and what
« Reply #7 on: March 27, 2003, 10:31:57 PM »
Reply with quote

*hechel*

wer wie was wo  :o

genial  :D

*aufdiesuchemach*
Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:See who have Polled and what
« Reply #8 on: March 27, 2003, 10:39:44 PM »
Reply with quote

ahh, i see what u mean...

But i dont only want to display who voted, i want also the possiblility to see what the users votet..

If possible, that a vote Owner could say when he Post, if the vote should be public or secret  ;)

Surfy
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:See who have Polled and what
« Reply #9 on: March 27, 2003, 10:53:42 PM »
Reply with quote

Quote from: Surfy on March 27, 2003, 10:39:44 PM
ahh, i see what u mean...

But i dont only want to display who voted, i want also the possiblility to see what the users votet..

If possible, that a vote Owner could say when he Post, if the vote should be public or secret  ;)

Surfy

Like Christian Land stated, this would require significant database changes.... and wouldn't work on past polls - only future ones.

-[Unknown]
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:See who have Polled and what
« Reply #10 on: March 27, 2003, 11:05:35 PM »
Reply with quote

speaking about polls, i'm working on a mod for SSI version of the poll
hope it can come out this weekend
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:See who have Polled and what
« Reply #11 on: March 28, 2003, 04:10:12 AM »
Reply with quote

Quote from: [Unknown] on March 27, 2003, 10:53:42 PM
Like Christian Land stated, this would require significant database changes.... and wouldn't work on past polls - only future ones.

-[Unknown]

Nah... one new field to record who voted what... and I guess one new field if you want ot switch on/off secret mode.

Its the rest of th ecode that is a lot

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:See who have Polled and what
« Reply #12 on: March 28, 2003, 04:18:45 AM »
Reply with quote

Quote from: Jack.R.Abbit on March 28, 2003, 04:10:12 AM
Quote from: [Unknown] on March 27, 2003, 10:53:42 PM
Like Christian Land stated, this would require significant database changes.... and wouldn't work on past polls - only future ones.

-[Unknown]

Nah... one new field to record who voted what... and I guess one new field if you want ot switch on/off secret mode.

Its the rest of th ecode that is a lot

-Jack

Sorry, I meant to say.... to do it well.

Check my test board for more details, I am thinking about doing it when I get to my rewrite Poll.php.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  See who have Polled and what « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.120 seconds with 20 queries.