vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Advanced Poll Options (https://vborg.vbsupport.ru/showthread.php?t=324148)

MarkFL 01-08-2017 10:13 PM

Quote:

Originally Posted by SilverBoy (Post 2580567)
I found the bug ..

in (Save Advanced Options For New Poll) plugin you forget to add (,) between reputation and usergroups.
the code must be like this
PHP Code:

$vbulletin->db->query_write("
            INSERT INTO " 
TABLE_PREFIX "advancedpolls
                (
                    pollid, postcount, membership, recentpost, reputation, usergroups 


Yep, that was just a typo, I've fixed that.

Quote:

Originally Posted by SilverBoy (Post 2580568)
Another issue, when trying to delete any thread even if it didn't have a poll I get an error message
PHP Code:

 Fatal errorCall to a member function query_write() on null in /home/manshor/public_html/forum/includes/class_dm_threadpost.php(1545) : eval()'d code on line 1 


I guess your site need $vbulletin to be declared globally there...I've added that.

Quote:

Originally Posted by SilverBoy (Post 2580569)
Another issue, the system didn't let unregistered users to vote on the poll even if I add unregistered group to the group list that can vote if I disabled it in the usergroup global options (usergoup seetings) and in forum permissions.

I'll look into that when I have more time. :)

SilverBoy 01-08-2017 10:15 PM

Did you update the download link Mark?

MarkFL 01-08-2017 10:19 PM

Quote:

Originally Posted by SilverBoy (Post 2580573)
Did you update the download link Mark?

No, not until I get time to check ALL issues. No need to go through that process until I have everything checked out.

MarkFL 01-08-2017 10:44 PM

Okay, yes in order for guests to be able to vote in polls you have to give them permission in the usergroup manager, and in forum permissions, just like any other usergroup. This product isn't going to override that. ;)

As for the other 2 issues, I will have an update uploaded when I am in for the evening. :)

SilverBoy 01-08-2017 10:46 PM

now it is 2:46am right here Mark :p

MarkFL 01-08-2017 10:50 PM

I'm 7 hours earlier. :)

MarkFL 01-09-2017 12:24 AM

Update - Version 1.0.1:
  • Minor bug fixes.

MarkFL 01-09-2017 01:25 AM

Update - Version 1.1:
  • Product now overrides usergroup and forum permissions to allow members of designated usergroups to vote.

X-or 01-09-2017 06:22 AM

very good ! thank you for sharing this (even though I don't plan to use it anytime soon)

a suggestion, feel free to ignore
add poll option : override usergroup & forum permissions
add admin cp option : select group which can override usergroup & forum permissions

this way you can make the mod available for more groups, while restricting who can override the base permission, just my 0.02, again feel free to ignore

MarkFL 01-09-2017 02:14 PM

Update - Version 1.2:
  • When editing polls, entries with 0 as value display as blank.


All times are GMT. The time now is 07:35 PM.

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.01102 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
  • (4)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
  • (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