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)

Chris M 10-22-2005 01:44 PM

Glad it's working :) Next are forum-specific permissions - When I do usergroups it'll be an Extension, meh :p

Chris

steven s 10-25-2005 02:22 AM

What about hiding from unregistered guests.
Right now someone not logged in sees 'Thanks for Voting '

Chris M 10-25-2005 02:35 AM

In the [high]showthread_post_start[/high] plugin, change:
PHP Code:

if ($showvotedtemplate) {
    if (
$pollinfo['active']) {
        unset(
$poll);
        eval(
'$poll = "' fetch_template('pollresult_voted') . '";');
    }


to:
PHP Code:

if ($showvotedtemplate) {
    if (
$pollinfo['active']) {
        unset(
$poll);
        if (
$vbulletin->userinfo['userid']) {
            eval(
'$poll = "' fetch_template('pollresult_voted') . '";');
        } else {
            
$poll '';
        }
    }


That should work :)

Chris

steven s 10-25-2005 02:46 AM

Quote:

Originally Posted by Chris M
That should work :)

Certainly did, thanks!

Chris M 10-25-2005 02:48 AM

Your welcome :)

Chris

68 Z-28 10-26-2005 06:53 AM

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.

msgotit 10-28-2005 05:38 PM

This is awesome! Another thing to look at is having the option to turn it off. I know that takes a little more and probably a table edit, but sometimes I would like to hide it, others I would like to show it.

Great job!!

Simms 10-30-2005 05:06 PM

Awesome...been waiting for this. Installed and working, but like those above, I would *love* to have the option of whether I wanted the results hidden or not depending on the thread.

Either way, thanks!

Hurricane 10-31-2005 01:21 PM

Chris M, for hints and ideas, see my old (3.0.X) hack or even look back to the 2.X by Firefly and Scott MacVicar.

https://vborg.vbsupport.ru/showthread.php?p=496898

It may give you ideas on how to add the ability to select the hide.

68 Z-28 11-07-2005 03:07 AM

Any updates? :)


All times are GMT. The time now is 09:16 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.01757 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)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