vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Reputation question (https://vborg.vbsupport.ru/showthread.php?t=75383)

mp3dreaming 01-29-2005 08:03 PM

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.

Paul M 01-29-2005 08:14 PM

Most things are possible if someone writes them. :)

mp3dreaming 01-30-2005 04:57 AM

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?

Paul M 01-30-2005 09:17 AM

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.

Tekton 01-30-2005 10:56 AM

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~ :D you'd have to set that "WHERE userid = 'X'" part to whatever you happen to be doing at the time.

tnguy3n 01-30-2005 11:58 AM

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.

Tekton 01-30-2005 12:00 PM

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.


All times are GMT. The time now is 07:30 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.01180 seconds
  • Memory Usage 1,731KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete