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)

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!!


All times are GMT. The time now is 08:02 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.01264 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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