vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User Rating hack (https://vborg.vbsupport.ru/showthread.php?t=57849)

Almax1 10-16-2003 06:27 PM

thanx m8 ;)
top man

Almax1 10-16-2003 06:32 PM

ermm the top rated are in random order ???

oh well nm the rest of the hack is neat m8 ;)

Sc0rp 10-16-2003 06:58 PM

take my last code again (Post #50) somehow the html got screwed

Almax1 10-16-2003 09:45 PM

na m8 same prob random order

Almax1 10-16-2003 10:08 PM

it lists users in reverse order sorry

Sc0rp 10-17-2003 06:37 PM

double check this step:

Code:

====================================================================
step 3:
edit memberlist.php
====================================================================

find:

  if ($what=="topposters") {
    $orderby="posts";
    $direction="DESC";
  }

UNDER that ADD:

-(start copying)-

  if ($what=="toprated") {
    $orderby="userrating";
    $direction="DESC";
  }

-(stop copying)-

save memberlist.php

if its still not working I can take a look at it if u want, anywhere I can contact you?

Almax1 10-18-2003 03:14 PM

already checked hmmmm dunno weird

its just listing members in reverse order ???

Sc0rp 10-18-2003 07:01 PM

weird as it says DESC..

hmm well I guess its worth a shot to replace DESC with ASC.. even though THAT would cause it to reverse in logic sence :p

so do this,

Replace:
PHP Code:

  if ($what=="toprated") {
    
$orderby="userrating";
    
$direction="DESC";
  } 

With:
PHP Code:

  if ($what=="toprated") {
    
$orderby="userrating";
    
$direction="ASC";
  } 


Almax1 10-23-2003 02:47 PM

mmm think u missed summit

in memberlist.php
few lines after your inserted code it has
==========================================
if ($orderby=="" or ($orderby!="username" and $orderby!="posts" and $orderby!="joindate" and $orderby!="lastpost")) {
$what = 'username';
$orderby="username";
}

if ($direction!="DESC") {
$direction = "ASC";
}

============================

therefore it wont work right will it ???

Sc0rp 10-25-2003 05:22 PM

++++ yes,

replace:

if ($orderby=="" or ($orderby!="username" and $orderby!="posts" and $orderby!="joindate" and $orderby!="lastpost"))

with:

if ($orderby=="" or ($orderby!="username" and $orderby!="posts" and $orderby!="joindate" and $orderby!="lastpost" or $orderby!="userrating"))

sorry :)


All times are GMT. The time now is 08:26 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.01045 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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