vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Show poll results in descending order (https://vborg.vbsupport.ru/showthread.php?t=82660)

Andreas 06-07-2005 10:00 PM

Show poll results in descending order
 
Description
With this hack poll results will be shown in descending order by number of votes, instead of being ordered by the options (as they were entered).

Details
Files to modify: 2
Deficullty: Easiest

History
1.00 Initial Version
1.01 Updated installation instructions to point to the exact place in poll.php
1.02 Fixed a Bug that caused wrong votes

dsboyce8624 06-08-2005 12:38 AM

So the winner is on top?

Works for me.

Andreas 06-08-2005 12:42 AM

Yes.

Example
Without this Hack
Option1 2 20%
Option2 1 10%
Option3 3 30%
Option4 4 40%

With this Hack
Option4 4 40%
Option3 3 30%
Option1 2 20%
Option2 1 10%

dsboyce8624 06-08-2005 01:20 AM

Sweet.

iSpanish 06-08-2005 01:27 AM

Nice job

Good hack

thanks KirbyDE


Marboosh

Guest190829 06-08-2005 01:38 AM

Woah Kirby, you're on fire with hack releases.

/me clicks install.

TTG 06-08-2005 03:20 AM

Cool .. quick .. simple and it works :)

Clicked install

bigcurt 06-08-2005 03:38 AM

Roger that easy install


[high]* bigcurt installs
[/high]


[high]* bigcurt thanks Mr. Kirby :).[/high]

FleaBag 06-08-2005 02:52 PM

Very nice, thanks a lot. There were 3 references to the code in poll.php - I just added the hack under the first one and all seems to be working well. :)

Andreas 06-08-2005 02:58 PM

@FleaBag
Unfortunately this is not the correct place.
Instructions updated, thank you.


All times are GMT. The time now is 07:36 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.01584 seconds
  • Memory Usage 1,725KB
  • 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
  • (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