vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   "circle repping" (https://vborg.vbsupport.ru/showthread.php?t=151125)

steve71 07-01-2007 05:29 PM

"circle repping"
 
// MDP
// Reset older rep to 0 and then get new count
$db->query_write("
UPDATE " . TABLE_PREFIX . "reputation SET reputation=0 WHERE userid=$userid AND whoadded=" . $vbulletin->userinfo['userid']
);

// Now get current reputation level
$newrep = $db->query_first("
SELECT sum(reputation) AS newtotal
FROM " . TABLE_PREFIX . "reputation
WHERE userid=$userid
");

$userinfo['reputation'] = $newrep['newtotal'];
// End



This is from the circle rep hack.
https://vborg.vbsupport.ru/showthread.php?t=118770

Anybody able to tweak this so it works with 3.6.7?
Currently it doesn't seem to allow the reverse rep..in other words if I give a member 5 points, I cannot deduct 5 points afterwards and visa versa. The attempt appears to have been successful, but no change to their totals.


All times are GMT. The time now is 02:59 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.00893 seconds
  • Memory Usage 1,711KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (1)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