vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Hide Poll Results (https://vborg.vbsupport.ru/showthread.php?t=98957)

djnth 12-12-2005 11:13 AM

This mod will be extremely useful!! I need to conduct a poll but don't want voters to be influenced by current votes.

Noonster 12-14-2005 07:47 PM

I have installed the xml file however I cant see anywhere where I can change settings for this or anything ??

It shows installed on the products page but thats all I get ??

Noonster 12-14-2005 07:49 PM

Ignore the above I have realised this doesnt give options as it just hides everything!!
- Cant wait for the next release as I wont be able to use it until then :(

Thanks
Darren

djnth 12-15-2005 09:56 AM

I wish I knew PHP. Where did everyone learn PHP? School? Books? Self-taught?

djnth 12-15-2005 09:57 AM

how's the update coming along?

Noonster 12-15-2005 02:06 PM

Quote:

Originally Posted by djnth
how's the update coming along?

hopefully he will be able to get it out before the end of the week like he wants - really need to use something like this but need the option to only hide if I want it tooo.

Cant wait :D

Ncturnal 12-16-2005 06:27 PM

Quote:

Originally Posted by 68 Z-28
This will be good for now. For the board I admin on the hide polls in specific forums would be AWESOME. This way I could just turn off the poll results in the "Truck of the month" forum where polls and voting take place.

Also, is it possible to add it where the poll starter can choose to hide the results or not? In previous versions, you'd just click a box, and the results would be hidden, reguardless of forum or usergroup(only forum mod, super mod, or admin could see results).

Thanks for gettin this done.

I was going to post the same thing. :) Also, I'd like admins to be able to see the results regardless. I know they can see it in the admin panel anyway, but I'd still like to exclude the admins all the time.

djnth 12-19-2005 07:06 PM

has there been any progress on this mod?

CodeRed 12-21-2005 03:07 PM

doh... man this would come in real handy...

i just need a certain number of polls hidden... not all of them.

ill stay tuned for an update

djnth 12-21-2005 11:49 PM

Awww...I got all excited when I got an email saying there was a new post to this thread.

skogen 01-02-2006 08:30 AM

An updated version of this plugin would be loved by me! :)

It would be just good enough if I just could hide poll results from one specific forum...

/Fredrik

djnth 01-03-2006 07:15 AM

I'm sure the person coding this just got busy, waiting for someone to update code really makes me feel helpless and is prompting me to learn PHP.

skogen 01-09-2006 07:57 AM

While waiting for an update I have another question.
Is it possible to modify the current plugin-code to just hide the results from one particular poll?

/Fredrik

djnth 01-20-2006 03:24 AM

Does anyone know how to code this? I am willing to donate to the cause.

jgrakowski 01-23-2006 12:22 AM

this is what i NEED in order for me to use this...

-you must check a box to activate hide the poll results when you post poll
-the person who posted the poll can see the results no matter what usergroup he is in
-admins and supermods (or specified) can always see the results

djnth 01-23-2006 12:41 AM

I don't think it's ever going to happen, I'm going to have to find a new way of doing this.

thebassman 01-27-2006 11:24 PM

Yeah, some updates to this mod would be great... are there other alternatives? I need something like this for photography contests I run on my board.

djnth 01-31-2006 05:04 AM

I have been holding off on voting for some time now on a best of 2005 I need to run ASAP. I just don't know where else to look. Maybe someone could post in another thread that someone is needed to take over this project if the original author wouldn't mind of course. Getting a hold of him could be a chore though...he hasn't been around these parts for a while now.

msgotit 02-01-2006 02:47 PM

I think that it would be relatively simple to at least make it so you can check a box to activate the hide poll feature, I will look into it and pm Chris to see what he wants to do.

djnth 02-02-2006 08:50 AM

I'm very grateful for the work the original author put into this but without at least the feature to pick which polls have hidden results, this mod isn't as useful as it could be. I do hope that someone can continue what could be a very useful mod.

cbtrussell 02-09-2006 06:17 PM

We definitely need this plugin with the ability to turn on or off on a per-poll basis. Willing to sponsor this enhancement if it helps!

Thanks!

msgotit 02-09-2006 09:46 PM

Quote:

Originally Posted by cbtrussell
We definitely need this plugin with the ability to turn on or off on a per-poll basis. Willing to sponsor this enhancement if it helps!

Thanks!

I have it done, I have PMed Chris to see what he wants to do, but haven't heard back, I would like to get this out for everyone, but don't know what the next step is. If any of you have any thoughts let me know.

thebassman 02-09-2006 09:52 PM

Why not just release it as a new mod, and give Chris credit if you don't hear back (and post the link in this thread) ;)

Tralala 02-09-2006 11:01 PM

Yes, agreed with thebassman!

I, for one, would like to see an enhanced version of this, as the current version comes up a bit short. It's an excellent idea and I'd like to see it taken just a tad further.

djnth 02-10-2006 04:59 AM

Thank you so much!!

Quote:

Originally Posted by msgotit
I have it done, I have PMed Chris to see what he wants to do, but haven't heard back, I would like to get this out for everyone, but don't know what the next step is. If any of you have any thoughts let me know.


msgotit 02-11-2006 01:34 AM

Here is the code, I will admit it hasn't been tested extensively, but it does hide or show the results, if there are any problems please let me know. Chris told me to post this in here and then he would add it, hope this works out for everyone!

The one down side is this template edit, I couldn't find any other way to do it.
Hide Poll Install

Edit Template editpoll:

Find:

HTML Code:

<tr>
  <td>
    <label for="cb_closepoll"><input type="checkbox" name="closepoll" value="yes" id="cb_closepoll" $pollinfo[closed] />$vbphrase[to_close_this_poll_check_this_box]</label>
  </td>
</tr>

Add Below it:

HTML Code:

<tr>
  <td>
    <label for="cb_hidepoll"><input type="checkbox" name="hidepoll" value="yes" id="cb_hidepoll" $pollinfo[hidden] />$vbphrase[to_hide_this_poll_check_this_box]</label>
  </td>
</tr>

Good luck all.

EDIT: This does now have a DB change, it adds a column to the poll table.

MorrisMcD 02-11-2006 11:37 PM

Do I need to install his original hack and THEN this update? Or can I just do yours?

Nevermind.. I guess just install yours, or if upgrading, overwrite.. (I just decided to do it)

djnth 02-12-2006 04:16 AM

where does the xml file go?

msgotit 02-12-2006 01:42 PM

Quote:

Originally Posted by djnth
where does the xml file go?

I should have named it just like Chris did. You upload it into products just like the other one. It will do everything for you and then you make the template change and should be good to go. Sorry for the lack to information. Select overwrite, and that should work.

djnth 02-12-2006 06:46 PM

Ok thanks!!

djnth 02-15-2006 07:20 AM

I installed this and I have one MAJOR problem. I'm using vBAdvanced CMPS and the poll on the front page is pulling polls that are supposed to be hidden and displaying the results. Even when I'm not logged in as an ADMIN, just as a guest. Now I have people that are able to see the results of a secret vote. You can view it at www.azdancemusic.com

msgotit 02-16-2006 12:34 AM

Quote:

Originally Posted by djnth
I installed this and I have one MAJOR problem. I'm using vBAdvanced CMPS and the poll on the front page is pulling polls that are supposed to be hidden and displaying the results. Even when I'm not logged in as an ADMIN, just as a guest. Now I have people that are able to see the results of a secret vote. You can view it at www.azdancemusic.com

Sorry about that, didn't think about it. You will have to go into the currentpoll.php mod and edit it. At line 65 (in mine) so it should be around there, add hidepoll to the list of fields to get:

Find this:

PHP Code:

SELECT thread.pollidopenthreadidreplycountforumidquestionpoll.datelineoptionsvotesactivenumberoptionstimeoutmultiplevoters, public $query[pollfields

Change it to:

PHP Code:

SELECT thread.pollidhidepollopenthreadidreplycountforumidquestionpoll.datelineoptionsvotesactivenumberoptionstimeoutmultiplevoters, public $query[pollfields

Then find this:

PHP Code:

if ($pollinfo['showresults']) 

And change it to this:

PHP Code:

if ($pollinfo['showresults'] && !$pollinfo['hidepoll']) 

I think that will do it, let me know if it doesn't. I don't think there is a way to do it in the product so this is it, let me know if you need anything else.

Mark

EDIT: PS. I haven't actually tried this so I don't know for sure, but it should work.

skogen 02-23-2006 03:50 PM

Need urgent help!

When I and other users try to make a new poll I got errors

PHP Code:

Database error in vBulletin 3.5.3:

Invalid SQL:
INSERT INTO poll
        
(questiondatelineactivetimeoutmultiple, public, maxoptionshidepollnumberoptions,
optionsvotes)
VALUES
        
(Do you want to compte?', 1140716784, 1, 50, 0, 1, 0, 0, 2, 'Yes |||No!', '0|||0');

MySQL Error  : Unknown column '
hidepoll' in 'field list'
Error Number : 1054
Date         : Thursday, February 23rd 2006 @ 06:46:24 PM
Script       : http://www.mysite.com/forum/poll.php
Referrer     : http://www.mysite.com/forum/poll.php?do=newpoll&t=11273
IP Address   : 192.168.0.1
Username     : any
Classname    : vb_database 


msgotit 02-24-2006 04:17 AM

Skogen,

Can you look at your database tables? If so, did the hidepoll field get put in to the poll table?

Because it is trying to insert hidepoll in there I would assume that you have used the one I posted, and I would suggest trying to re-import it. If I had to guess, it didn't add the field, and I am not sure why. Let me know if that works!

BrandiDup 02-24-2006 05:28 PM

exactly what I needed! thank you very much :)

bobc973 03-01-2006 03:46 PM

Quote:

Originally Posted by msgotit
Skogen,

Can you look at your database tables? If so, did the hidepoll field get put in to the poll table?

Because it is trying to insert hidepoll in there I would assume that you have used the one I posted, and I would suggest trying to re-import it. If I had to guess, it didn't add the field, and I am not sure why. Let me know if that works!

What are the type, attributes, null and default values if we want to add it manually to the table?

Thanks!

msgotit 03-02-2006 12:12 PM

Quote:

Originally Posted by bobc973
What are the type, attributes, null and default values if we want to add it manually to the table?

Thanks!

First you have to be using the xml product I posted in the middle of the the last page. If you open that up you will see it but I believe it is tinyint with default 0. Hope this helps!

Mark

bobc973 03-02-2006 03:55 PM

Yes that was it tinyint, length 1, default 0. THANK YOU!

Hurricane 03-03-2006 03:56 PM

I know this is not the proper way of doing this, but here is a modification of the modified version of the regular hack.

This one is for admins. Only the admins can hide results to polls and admins can always see the results.

THIS IS NOT AN UPGRADE! Do not install with the other one! This is named differently so you can not overwrite the other one. You will have to uninstall the other one first and install this one.

gonkowonko 03-04-2006 08:32 PM

Quote:

Originally Posted by Hurricane
I know this is not the proper way of doing this, but here is a modification of the modified version of the regular hack.

This one is for admins. Only the admins can hide results to polls and admins can always see the results.

THIS IS NOT AN UPGRADE! Do not install with the other one! This is named differently so you can not overwrite the other one. You will have to uninstall the other one first and install this one.

Love it works lovely :D


All times are GMT. The time now is 04:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01438 seconds
  • Memory Usage 1,839KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (5)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete