vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Change reputation 'gem' levels (https://vborg.vbsupport.ru/showthread.php?t=76586)

boozehound 02-17-2005 10:00 PM

Change reputation 'gem' levels
 
Change the amount of reputation needed to acquire each reputation 'gem' (as displayed in the postbit) and the type of gem displayed for each level (bright or normal).

Adding this hack will add a new option in admincp, called 'Reputation Level Manager'. In this page you can:
  • Change the amount reputation needed to acquire each gem
  • Change the type of gem displayed per level (either bright or normal)
  • Add new levels
  • Delete levels

Note that these 'gems' are separate from the normal 'reputation levels' which govern the description shown when you mouseover the gems in the postbit.

The levels are shown for positive values only; negative reputations are simply a mirror image of the positive reputation levels, and the same rules apply regarding the type of gem displayed and the amount of reputation need (albeit, negative).

Further note that to install this hack requires the ability to run SQL queries, as this hack adds an additional table.

Fully tested on 3.0.3, 3.0.4, 3.0.5 and 3.0.6.

Update 1.01 20th Feb 2005

- Settings are now cached, so this hack incurs a cost of only one query per page (for pages that show reputation levels, e.g. threads)
- Installer included

kall 02-18-2005 06:53 PM

"more" queries?

How many "more" queries? One per post? One per poster?

boozehound 02-18-2005 06:58 PM

Quote:

Originally Posted by kall
"more" queries?

How many "more" queries? One per post? One per poster?

One per post. If/when I update this (I've already been requested to add support for more types of images) I'll use caching to reduce this to one per page.

ambrosious 02-19-2005 06:07 PM

In my admincp/index.php, I cannot find the lines you are refer to. Can you give me a couple of lines above and below that?

ambrosious 02-19-2005 06:32 PM

Got it installed, not working as of yet, all the rep gems look the same.

boozehound 02-20-2005 01:06 AM

Quote:

Originally Posted by ambrosious
In my admincp/index.php, I cannot find the lines you are refer to. Can you give me a couple of lines above and below that?

Anywhere you want really but I put it in here:
Code:

                construct_nav_option($vbphrase['user_reputation_manager'], 'adminreputation.php?do=modify', '|');
                construct_nav_option($vbphrase['add_new_user_reputation'], 'adminreputation.php?do=add');
                construct_nav_option($vbphrase['view_reputation_comments'], 'adminreputation.php?do=list');

<-- in here -->

                construct_nav_group($vbphrase['user_reputations']);

Quote:

Originally Posted by ambrosious
Got it installed, not working as of yet, all the rep gems look the same.

They will do until you change the levels in the new admincp page. If you have done so and there is no change, make sure you've changed includes/functions_reputation.php correctly, which includes the function (fetch_reputation_image) that governs how the rep gems are displayed.

ambrosious 02-20-2005 01:10 AM

Others are seeing it, I'm not, but I've had the same browser windows open for awhile, maybe that's it?!

boozehound 02-20-2005 04:42 PM

Update:

- Cost of installing this hack is now only one query per page that shows reputation levels (as opposed to one per post as before).
- Queries replaced by installer.

boozehound 02-20-2005 04:43 PM

Quote:

Originally Posted by ambrosious
Others are seeing it, I'm not, but I've had the same browser windows open for awhile, maybe that's it?!

Are you still having problems with this?

ambrosious 02-20-2005 10:29 PM

Yes, I still see the same old gems as always... don't have a clue why.


All times are GMT. The time now is 12: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.01258 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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