Quote:
Originally Posted by Paul M
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') . '";');
}
}
}
}