Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extended Reputation Display Details »»
Extended Reputation Display
Version: 2.14, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 07-30-2006 Last Update: 09-08-2007 Installs: 383
Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

This modification is no longer available or supported.

This hack extends the existing reputation display system from just the light/dark green pips to green and golden pips, and then golden stars as the pips limit is reached.

The dark green pips are followed by light green pips, which are then followed by 'golden' pips. When the limit these can display is reached, the display is prefixed by a golden Star, and started again. If your reputation is zero then the neutral grey pip is displayed. Negative reputations are displayed in a similar manner using light and dark red pips and stars.

Each time you 'lap' the limit of the pips display, another star is added. The number of stars in unlimited. The number and value of the pips in each group of pips is defined by six settings in the vboptions > reputation options. A line break can be inserted after the stars. The extended display system can be enabled/disabled in the options.

Just follow the install instructions in the zip file to install this product.


History:

v2.10 : First Release for vb 3.6
v2.11 : Dependancies updated for 3.6.0 Gold.
v2.12 : Updated for Version Checking.
v2.13 : Dependancies Updated (not released).
v2.14 : Rogue setting in XML file removed.

Show Your Support

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

Comments
  #152  
Old 10-05-2007, 12:14 AM
gakousei's Avatar
gakousei gakousei is offline
 
Join Date: Jun 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:erm: I see...
I thought I just have to inverse some lines. I tried to change the .xml file's code but nothing works.
I wish I could have the skill to do that by myself but it seems to be too complicate for beginners.
Too bad I can't receive any help for this request.
Reply With Quote
  #153  
Old 10-05-2007, 07:55 PM
gakousei's Avatar
gakousei gakousei is offline
 
Join Date: Jun 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to be persistent, but I tried a lot and I can't find any issues.
At least can you tell me what do I need to change ?
Reply With Quote
  #154  
Old 10-05-2007, 10:57 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

Sorry, the code is provided as is, I do not have the time to look into an individual re-write.

As best I remember (this is a very old modification, in fact the first one I ever released) the whole process relies on starting with the total score and subtracting downwards, which means you have to start with the largest value icons (i.e. the stars). So you can't just re-order them.
Reply With Quote
  #155  
Old 10-13-2007, 04:19 PM
nyqnzguju nyqnzguju is offline
 
Join Date: May 2007
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

How How Can I show The Starts
Reply With Quote
  #156  
Old 11-01-2007, 05:42 AM
JoyB JoyB is offline
 
Join Date: Oct 2003
Location: UK
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great - thank you very much
Reply With Quote
  #157  
Old 11-02-2007, 10:57 AM
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Location: USA-Egypt-UAE
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. Installed. At first it didn't show but I found that I had disabled reputation from Admin CP. All good now.
Reply With Quote
  #158  
Old 11-16-2007, 07:37 PM
Barteh Barteh is offline
 
Join Date: Aug 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are there any special steps to be followed when upgrading from a previous version? I'm not sure which one it is, but it's probably about two years old.

I assume you need to uninstall the previous plugin first and I'm assuming this action won't affect the rep fields in the user database in any way - but I'll probably be murdered in the streets if it does
Paul, if possible I'd like some confirmation on this
Reply With Quote
  #159  
Old 11-16-2007, 07:53 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

What version do you have installed ?

Uninstalling it will not affect any actual reputation scores, but depending on what version you have, you can probably just import this with overwrite = yes (and upload the latest images).
Reply With Quote
  #160  
Old 11-16-2007, 07:59 PM
BuRaCh BuRaCh is offline
 
Join Date: Aug 2006
Location: istanbul/turkey
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice idea
thanks
Reply With Quote
  #161  
Old 11-16-2007, 08:11 PM
Barteh Barteh is offline
 
Join Date: Aug 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
What version do you have installed ?

Uninstalling it will not affect any actual reputation scores, but depending on what version you have, you can probably just import this with overwrite = yes (and upload the latest images).
My predecessor installed it, he didn't hand over the original files and I don't see any version numbers in the code. If this helps, I found out he installed it on 9 july 2005.

Code:
if ($vbulletin->options['erenable'])
{
	if ($posneg <> 'off')
	{
		$repval = $post['reputation'];	
		$post['reputationdisplay'] = '';

		if (!$post['reputationlevelid'])
		{
			$post['level'] = $vbulletin->options['reputationundefined'];
		}

		$linemax_exd = 0;
		$linemax_val = 	($vbulletin->options['erbav'] * $vbulletin->options['erbac']) + 
						($vbulletin->options['erbbv'] * $vbulletin->options['erbbc']) + 
						($vbulletin->options['erbcv'] * $vbulletin->options['erbcc']) ;
		$linemax_cnt = $vbulletin->options['erbac'] + $vbulletin->options['erbbc'] + $vbulletin->options['erbcc'] ;

		if ($repval == 0)
		{
			$posneg = 'grey';
			eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_reputation') . '";');
		}
		else 
		{
			if ($repval < 0)
			{
				$repa = 'red';
				$repb = 'redh';
				$repc = 'redh';
				$repx = 'redstar';
				$repval *= -1;
			}
			else
			{
				$repa = 'green';
				$repb = 'greenh';
				$repc = 'gold';
				$repx = 'goldstar';
			}
			$count = $linemax_cnt;
			while ($count > 0 and $repval > $linemax_val) 
			{
				$count -= 1;
				$repval -= $linemax_val;
				$posneg = $repx;
				$linemax_exd += 1;
				eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_reputation') . '";');
			}
			if ($vbulletin->options['ernewline'])
			{
				if ($linemax_exd) { $post['reputationdisplay'] .= "<br>"; }
			}
			$count = $vbulletin->options['erbac'];
			while ($count > 0 and $repval > 0) 
			{
				$count -= 1;
				$repval -= $vbulletin->options['erbav'];
				$posneg = $repa;
				eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_reputation') . '";');
			}
			$count = $vbulletin->options['erbbc'];
			while ($count > 0 and $repval > 0) 
			{
				$count -= 1;
				$repval -= $vbulletin->options['erbbv'];
				$posneg = $repb;
				eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_reputation') . '";');
			}
			$count = $vbulletin->options['erbcc'];
			while ($count > 0 and $repval > 0) 
			{
				$count -= 1;
				$repval -= $vbulletin->options['erbcv'];
				$posneg = $repc;
				eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_reputation') . '";');
			}
		}
	}
}
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 01:10 PM.


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.05295 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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