vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Poll Write-In & Change Vote Hack (https://vborg.vbsupport.ru/showthread.php?t=142964)

TomasDR 03-25-2007 11:24 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1211893)
Thanks! I'm going to donate today or tomorrow. I appreciate the work.

Thank you, I am open to all suggestions and feature requests.

A_V 03-25-2007 11:35 PM

I find a small bug

I have in my settings that max option in poll's is 0 (to desactivate the max)

This mod allways show the error of mutch options in post that permission of administrator.


I can resolve editing the plugin "Write-in vote code"

in line with:

PHP Code:

if ($vbulletin->options['maxpolloptions'] < $pollinfo['numberoptions']) 


i replace with:
PHP Code:

if ($vbulletin->options['maxpolloptions'] < $pollinfo['numberoptions'] && $vbulletin->options['maxpolloptions'] > 0

and no more problems ;-)

TomasDR 03-26-2007 12:14 AM

Quote:

Originally Posted by A_V (Post 1212282)
I find a small bug

I have in my settings that max option in poll's is 0 (to desactivate the max)

Thank you I forgot to consider that some admins may have set their maxpolloptions to unlimited (0).

TomasDR 03-26-2007 01:40 AM

Quote:

Originally Posted by bchertov (Post 1212175)
Does this hack allow users to change their votes on any poll (if the correct options are selected)? If so that would be fabulous! It would be good if vote-change feature could selected without the write in option.

Strongly considering installing!

Now this is an admin option, see Version 1.2 notes.

Also fixed one bug and a permission loophole.

PS. Sorry for the rapid updates.

bchertov 03-26-2007 05:02 AM

If this can in fact be used to allow people to change votes in a poll, that would be an answer to a long standing popular request in these parts! I suggest you either edit the title of your post to reflect that or publish just that feature as a separate hack. :up:

bashy 03-26-2007 05:06 AM

Yes it can :)

bchertov 03-26-2007 04:31 PM

Quote:

Originally Posted by TomasDR (Post 1212352)
Now this is an admin option, see Version 1.2 notes.

Fabulous! I will install this soon!

odie3 03-26-2007 11:42 PM

Very nice!

bada_bing 03-27-2007 07:07 PM

has anyone tried this hack with vbportal installed and if so how does this work on the portal?

bchertov 03-28-2007 04:34 AM

Installed! Worked great!

It would be nice if the Allow write-in votes were offered when editing the poll.


All times are GMT. The time now is 03:06 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.01172 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
  • (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