Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2005, 08:03 PM
mp3dreaming mp3dreaming is offline
 
Join Date: Jan 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Reputation question

Hey,

I'm wondering, is it possible to show up the devided part for the reputation? That means, the negative points (total sum of them) and positive points (total sum of them)?

Just wondering if it's possible and if so, how difficult is it?

Grtz,
J.
Reply With Quote
  #2  
Old 01-29-2005, 08:14 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Most things are possible if someone writes them.
Reply With Quote
  #3  
Old 01-30-2005, 04:57 AM
mp3dreaming mp3dreaming is offline
 
Join Date: Jan 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
Most things are possible if someone writes them.
LOL, That much I figured yea... hehe

I was merely wondering, the reputation works by adding the positive points together and deducting the negative ones thus giving the total reputation points. The points must be stored somewhere? Wouldn't it merely be a matter of adressing those individual points? It's just that I really like the rep system, but keeping track of the positive and negative points would be a great way to let the members know if they are doing a good job at the moment...

Perhaps there is another pointing system out there?
Reply With Quote
  #4  
Old 01-30-2005, 09:17 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All the reutation given (+ or -) is stored in a table, so yes, if someone wrote it, it would be possible. However - it would not take into account manual changes to someones reputation made by an administrator in the ACP.
Reply With Quote
  #5  
Old 01-30-2005, 10:56 AM
Tekton Tekton is offline
 
Join Date: Jun 2004
Location: Wisconsin
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
$howmany=array();
$getreps=$DB_site->query("SELECT userid, reputation ".TABLE_PREFIX."reputation WHERE userid = '????'");
while (
$getrepsx=$DB_site->fetch_array($getreps)){
if(
$getrepsx[reputation]>0){$howmany[0]+=$getrepsx[reputation];} // positive reps
else{$howmany[1]+=$getrepsx[reputation];} //negative reps

That would make $howmany[0] the positive amount and [1] the negative, right?

I may have done that wrong, since I'm doing it all in the quick reply box~ you'd have to set that "WHERE userid = 'X'" part to whatever you happen to be doing at the time.
Reply With Quote
  #6  
Old 01-30-2005, 11:58 AM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mp3dreaming
LOL, That much I figured yea... hehe

I was merely wondering, the reputation works by adding the positive points together and deducting the negative ones thus giving the total reputation points. The points must be stored somewhere? Wouldn't it merely be a matter of adressing those individual points? It's just that I really like the rep system, but keeping track of the positive and negative points would be a great way to let the members know if they are doing a good job at the moment...

Perhaps there is another pointing system out there?
add two new colums in reputation table to keep track on total negative & positve rep.
Reply With Quote
  #7  
Old 01-30-2005, 12:00 PM
Tekton Tekton is offline
 
Join Date: Jun 2004
Location: Wisconsin
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tnguy3n
add two new colums in reputation table to keep track on total negative & positve rep.
If you go that way, it'd prolly be better to add another field to the user table that contained both the positive and the negative amount.
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 11:00 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.04561 seconds
  • Memory Usage 2,223KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete