vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Extended Reputation Display (https://vborg.vbsupport.ru/showthread.php?t=122589)

gakousei 10-05-2007 12:14 AM

: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.

gakousei 10-05-2007 07:55 PM

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 ?

Paul M 10-05-2007 10:57 PM

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.

nyqnzguju 10-13-2007 04:19 PM

Hi

How How Can I show The Starts

JoyB 11-01-2007 05:42 AM

This is great - thank you very much :)

haytham 11-02-2007 10:57 AM

Thanks. Installed. At first it didn't show but I found that I had disabled reputation from Admin CP. All good now.

Barteh 11-16-2007 07:37 PM

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 :eek:
Paul, if possible I'd like some confirmation on this :)

Paul M 11-16-2007 07:53 PM

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).

BuRaCh 11-16-2007 07:59 PM

nice idea
thanks;)

Barteh 11-16-2007 08:11 PM

Quote:

Originally Posted by Paul M (Post 1383946)
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') . '";');
                        }
                }
        }
}



All times are GMT. The time now is 09:08 PM.

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.01154 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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