News:

Wondering if this will always be free?  See why free is better.

Main Menu

Voter Visibility

Started by Ray Cardillo, May 02, 2012, 12:25:01 PM

Previous topic - Next topic

Ray Cardillo

Okay, I appreciate the input, because understanding the use case helps me figure out what features people want to see in the future.  I kinda see where you are coming from, but for now, you will just have to educate everyone on what they should be doing (and why).

From your use case though, I can see a need for a feature that allows you to lock or limit visibility settings somehow.  For example, you might be better served by a feature that allows an admin to "lock" the visibility for a particular board by setting it to a certain value.

That should be good enough to satisfy what your use case is right?  That way all posts to that particular board would always have a certain (admin selected) visibility setting.  I can see a feature like that being somewhat useful to some folks.  However, I will not have time to implement that anytime soon... too much going on... and I'm gathering up details on a few other requests that have been made.
Author of the Voter Visibility mod customization.  Adds the ability to see (and control who sees) who voted for what.  Allows you to conduct secret ballots.  Can also be used to coordinate volunteer signups, and more.

FrizzleFried

Perhaps you could change it so that visibility is turned ON by default rather than OFF?  My users complain when it's turned off ... which being by default ... happens a lot.

FrizzleFried

I am still seeing this error once in a while...

Quote
http://www.<removed>.com/index.php?action=votelog;topic=2011
8: Undefined index: poll
File: /home/ahaforum/public_html/Sources/VoteLog.php
Line: 79

Just a FYI...

iksa

I'd also like very much if this mod was compatible with this mod.

Another suggestion: It would be nice to be able to pre-configure a poll and set the exact date and time the polling starts and ends. In my organization we do democratic decisions by using these polls and we would need a way to specify those exact times. The results should of course stay visible also after the end time.

Doc.Blade

Hello,

I just installed this mod, and have a slight issue.

The mod seems to be working perfectly, but i have a black background forum with White font.

When i look at the mod results, the font is all in white, and so is the window that opens to show who voted what, so i cant see the results, unless i highlight the names in the fields.

Is there any way to change the background colour of the tables at all? Or the colour of the font for just that page?

Thank you

Doc

Ray Cardillo

I will have to see what I can do about that in the next release.  In the meantime, you will have to hand edit the CSS for that table to match the style on the rest of your site.

The vote results table uses a special component (jQuery Tablesorter) and the CSS that I created as part of this mod will be located in the Themes directory (...\Themes\default\css\votelog.css).  That's what you'll need to hand edit (make sure you CTRL-F5 refresh to force browser to see the changes).

I'm not entirely sure about all the colors you will need to change, but a quick review of their documentation should put you in complete control of getting all of the colors exactly as you would like.

Also take a look at the CSS examples they have on that documentation page (look for the "Themes" section) and then look at the CSS on the theme you're using on your SMF site if you want to match color codes perfectly.

That should do the trick.  Hope this helps!!
Author of the Voter Visibility mod customization.  Adds the ability to see (and control who sees) who voted for what.  Allows you to conduct secret ballots.  Can also be used to coordinate volunteer signups, and more.

Doc.Blade

That is awesome, thank you for that.

I finally got the time to look at this, sorry for the delay in responding.

I finally found what to edit.

You will need to manually search for the first line for these, do not copy and paste that into your find / search window, as i have changed it from the default settings, and / or the line you need is a few lines down in the code.


The code below edits the background colour of the Table Headings:

Search for:

table.votelog thead tr th, table.votelog tfoot tr th {


Find after, and change to desired colour:

background-color: #




The code below edits the background colour of the rest of the table:

Search for:

table.votelog tbody td {


Find after, and change to desired colour:

background-color: #




The code below edits the font colour of the rest of the table font:

Search for:

table.votelog tbody td {


Find after, and change to desired colour:

color: #




Thank you for pointing me in the right direction.

I hope this also helps others out that might be in the same boat :)

Draffi

Have a problem with SMF 2.0.4, Default Theme, no errors during installation:

Inside the Log i can see only the date from the user who was voting at this day, when the Poll was publishing.

All other votes (from other days) i can read only "not available"

Somebody an Idea?

azirion

Hi

Im sorry, newbie question: How can I access the Vote Log results once I started the poll?

azirion

Ok from what I have read, there seems to be a button at the left of the poll which I can´t see. Therefore I cant have access to the voting log.

Im running the core theme, with SimplePortal. And the language is Spanish es.  May this be the problem? I mean the language?

azirion


sun-man

Hi,

im note sure where to ask and get an answer.

I have installed that mod and in 5 oder 10 times the "visibility" in the database is set to "private poll" (Voter visibilty in Database set to "0" instead of "2").

Any ideas about that?

Rachelisit?

#72
After installing I get this error when I attempt to create a poll:

QuoteThe database value you're trying to insert does not exist: show_voters

So I jumped into the database, and what do you know but it does actually exist as a value but apparently doesn't recognize it. Tried a reinstall without errors, problem persists. Any idea how I can resolve it?

Rachelisit?

Ok, additional error found. Silly and nitpicky sure, but it is an error none the less.

The wrong word is used to describe the hidden nature. hxxp:www.merriam-webster.com/dictionary/discrete [nonactive] is defined as separate and different from each other, hxxp:www.merriam-webster.com/dictionary/discreet [nonactive] is the one meaning not likely to be seen or noticed by many people.

I've been trying to find where it places the displayed text in the code to edit the word on my own site at least without success. Pouring through the mod files isn't helping me find it either. Where is that line of displayed text hiding?

shayneb

I do not have the button that's supposed to show up so I can see who voted on what. Everything else seems to be working fine. Does anyone have any ideas? I am using a custom theme and am not opposed to manually changing things if need be.

demlak

in a fresh 2.0.9. install this mod does not install..

you have to edit mods-common.xml

$context['show_view_results_button'] = $context['allow_vote'] && (!$context['allow_poll_view'] || !$context['poll']['show_results'] || !$context['poll']['has_voted']);]]></search>

should be replaced by:
$context['show_view_results_button'] = $context['allow_vote'] && $context['allow_poll_view'] && !$context['poll']['show_results'];</search>

donchulio

i tried to install the mod today (thanks for your hard work)
but there was an error with the display.php file and I cannot see who voted 

The voting and everything else works fine (2.0.9). Btw. Where can I find the mods-common.xml?

stucki

Thanks for this Mod,

but i can´t install it on a new 2.0.10 instalation. I got some failure:

./Sources/Display.php


Code: (Search) [Auswählen]

$context['show_view_results_button'] = $context['allow_vote'] && (!$context['allow_poll_view'] || !$context['poll']['show_results'] || !$context['poll']['has_voted']);




Code: (after add) [Auswählen]


// only show the view voters button if there is something worth showing that will not throw an error
$context['show_view_votelog_button'] =
$context['allow_poll_view'] &&
( allowedTo('admin_forum') ||
($pollinfo['vote_visibility'] == 2) ||
($pollinfo['vote_visibility'] == 1 && $user_info['id'] == $pollinfo['id_member'])
);


It is possible to update the mod?

Ray Cardillo

Quote from: Rachelisit? on June 20, 2014, 09:36:52 PM
I've been trying to find where it places the displayed text in the code to edit the word on my own site at least without success. Pouring through the mod files isn't helping me find it either. Where is that line of displayed text hiding?

OMG... this is a great catch!!  My Computer Science mind made me type DISCRETE automatically.  Unfortunately this will not be an easy fix, because it involved DB tables, etc.  However, I do agree that it's important.  I'm going to be updating this mod soon to be compatible with 2.0.9+ so I'll test this upgrade also.

I'll have a fair amount of testing between all the little things though.  Regarding that other problem, I would assume it was DB permissions since you confirmed that all else was well.
Author of the Voter Visibility mod customization.  Adds the ability to see (and control who sees) who voted for what.  Allows you to conduct secret ballots.  Can also be used to coordinate volunteer signups, and more.

Ray Cardillo

I just uploaded a new release.  See release notes below.

  • 2.1 - Updated to be compatible with latest SMF and other minor updates
    • Added support for SMF 2.0.9-2.0.11 (only verified against 2.0.11).
    • Updated jQuery library to latest stable release.
    • Corrected visibility label from "DISCRETE" to "DISCREET".
    • Changed default visibility level to PUBLIC based on user feedback.
Author of the Voter Visibility mod customization.  Adds the ability to see (and control who sees) who voted for what.  Allows you to conduct secret ballots.  Can also be used to coordinate volunteer signups, and more.

Advertisement: