The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#152
|
||||
|
||||
: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. |
#153
|
||||
|
||||
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 ? |
#154
|
||||
|
||||
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. |
#155
|
|||
|
|||
Hi
How How Can I show The Starts |
#156
|
|||
|
|||
This is great - thank you very much
|
#157
|
||||
|
||||
Thanks. Installed. At first it didn't show but I found that I had disabled reputation from Admin CP. All good now.
|
#158
|
|||
|
|||
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 |
#159
|
||||
|
||||
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). |
#160
|
|||
|
|||
nice idea
thanks |
#161
|
|||
|
|||
Quote:
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') . '";');
}
}
}
}
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|