Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Change reputation 'gem' levels Details »»
Change reputation 'gem' levels
Version: 1.01, by boozehound boozehound is offline
Developer Last Online: Sep 2007 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 02-17-2005 Last Update: Never Installs: 11
DB Changes
 
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 02-18-2005, 06:53 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"more" queries?

How many "more" queries? One per post? One per poster?
Reply With Quote
  #3  
Old 02-18-2005, 06:58 PM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 02-19-2005, 06:07 PM
ambrosious ambrosious is offline
 
Join Date: Jun 2004
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 02-19-2005, 06:32 PM
ambrosious ambrosious is offline
 
Join Date: Jun 2004
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it installed, not working as of yet, all the rep gems look the same.
Reply With Quote
  #6  
Old 02-20-2005, 01:06 AM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-20-2005, 01:10 AM
ambrosious ambrosious is offline
 
Join Date: Jun 2004
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Others are seeing it, I'm not, but I've had the same browser windows open for awhile, maybe that's it?!
Reply With Quote
  #8  
Old 02-20-2005, 04:42 PM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 02-20-2005, 04:43 PM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 02-20-2005, 10:29 PM
ambrosious ambrosious is offline
 
Join Date: Jun 2004
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

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 03:06 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.04557 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_quote
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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