Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Rating hack Details »»
User Rating hack
Version: 1.00, by Sc0rp Sc0rp is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 07-16-2003 Last Update: Never Installs: 10
 
No support by the author.

[high]VERSION 2.0 RELEASED, CLICK HERE[/high]

Oke this is my very first 'released' hack and allthough its pretty simple I presonally quite like it

what this basicly does is count rating towards users when they reply or start a new thread, of course you can specify in what forums it will do this and how much rating points they will get when replying or starting a new thread, you can also TAKE rating away when a user replies or starts a thread.

In my eyes this is perfect to keep your users monitored automaticly, for example.. say you got a babes board, like rip-productions and users can request babe pix, say you withdraw 5 points each time this user requests pix of a babe so eventually he will reach 0 or even less (-10 whatever..) you can spot this way more easily and do something about it..

of course this is not entirely automated yet I am going to make this hack more advanced, so you can get certain stats (list users with rating betwean x and x.. as an example) but for now this is gonna have to do as I do not have a lot of time to work on this..

Im sure a lot of you will think this is a useless hack but hey.. I thought it would come in handy for my board so maybe others could use it aswell

anyways, to install the hack just follow the instructions in the attached file, screenshots are beneath this post.. please click the install button when you use this hack!

and BACKUP your files! allthough I have tested this hack it may still have bugs!

[high]IF YOU USE THIS HACK PLEASE PRESS INSTALL [/high]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 10-16-2003, 06:27 PM
Almax1 Almax1 is offline
 
Join Date: Sep 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx m8
top man
Reply With Quote
  #53  
Old 10-16-2003, 06:32 PM
Almax1 Almax1 is offline
 
Join Date: Sep 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ermm the top rated are in random order ???

oh well nm the rest of the hack is neat m8
Reply With Quote
  #54  
Old 10-16-2003, 06:58 PM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

take my last code again (Post #50) somehow the html got screwed
Reply With Quote
  #55  
Old 10-16-2003, 09:45 PM
Almax1 Almax1 is offline
 
Join Date: Sep 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

na m8 same prob random order
Reply With Quote
  #56  
Old 10-16-2003, 10:08 PM
Almax1 Almax1 is offline
 
Join Date: Sep 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it lists users in reverse order sorry
Reply With Quote
  #57  
Old 10-17-2003, 06:37 PM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #58  
Old 10-18-2003, 03:14 PM
Almax1 Almax1 is offline
 
Join Date: Sep 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

already checked hmmmm dunno weird

its just listing members in reverse order ???
Reply With Quote
  #59  
Old 10-18-2003, 07:01 PM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

so do this,

Replace:
PHP Code:
  if ($what=="toprated") {
    
$orderby="userrating";
    
$direction="DESC";
  } 
With:
PHP Code:
  if ($what=="toprated") {
    
$orderby="userrating";
    
$direction="ASC";
  } 
Reply With Quote
  #60  
Old 10-23-2003, 02:47 PM
Almax1 Almax1 is offline
 
Join Date: Sep 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ???
Reply With Quote
  #61  
Old 10-25-2003, 05:22 PM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

++++ 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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11543 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete