vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   All polls are public polls- for admin? (https://vborg.vbsupport.ru/showthread.php?t=73798)

Caiman 01-05-2005 01:29 AM

All polls are public polls- for admin?
 
How about this, I know there is an option to make a poll public so everyone can see who voted, but I'd like to be able to make it so all polls act like this if an admin is viewing them, instead of having to go into admin cp>posts>who voted and so on...

Can I do this with conditional work?

Xenon 01-05-2005 01:39 PM

not tested, but it should work i think

open showthread.php

find
PHP Code:

    // get poll info
    
$pollinfo $DB_site->query_first("
        SELECT *
        FROM " 
TABLE_PREFIX "poll
        WHERE pollid = 
$pollid
    "
); 

and below add:
PHP Code:

if ($bbuserinfo['permissions']['adminpermissions'] & CANCONTROLPANEL)
{
$pollinfo['public'] = 1;



Caiman 01-23-2005 07:20 AM

Hey thanks, been a while since I've checked into here. It kinda works, the poll result numbers become links like they would for a public poll and I am taken for instance to

poll.php?do=showresults&pollid=7

everything works and I see the results page, except I dont see any usernames of who voted (like I would in a normal public poll)... any ideas?

Thanks again!

Xenon 01-23-2005 02:45 PM

when the results are shown on showthread, it works

if you go to poll.php you have to apply the canges to poll.php as well :)

Haiko 01-24-2005 12:49 AM

Stefan,

Long time fan and lurker, first time poster ... will this also obfuscate who voted to all members who are not Admins by default?

Caiman 01-24-2005 11:28 AM

Thanks Xenon! :)

Xenon 01-24-2005 03:56 PM

@Caiman: your welcome :)

@Haiko: i have no idea what "obfuscate" means, but from what i understood, the answer is no. The hack just changes Admins fetures, normal users won't see any difference

Marco van Herwaarden 01-24-2005 08:19 PM

obfuscate = hide (i know the second is spelled correct ;))


All times are GMT. The time now is 11:19 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.00957 seconds
  • Memory Usage 1,721KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete