PDA

View Full Version : Show Reputation



r_hippy
11-20-2011, 06:34 PM
Is no longer showing after the newest vb4.1.8 update..

this was 4.1.7 postbit legacy reputation code.
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
</vb:if>

it was changed to this for 4.1.8.
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
<vb:each from="reputationdisplay" value="row">
<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend}
</vb:each>
</span>
vBadvanced CMP 4.1.2 reputation code .
<vb:if condition="$bbuserinfo['reputationdisplay'] OR ($bbuserinfo['rank'] AND $mod_options['portal_welcome_rank'])">
<div style="float:{vb:stylevar right}">
<vb:if condition="$bbuserinfo['reputationdisplay']">
{vb:rawphrase rep_power}: {vb:raw reppower}
<div align="{vb:stylevar right}" style="padding-bottom:{vb:stylevar cellpadding}px">{vb:raw bbuserinfo.reputationdisplay}</div>

thanks for any help on this matter..

Hippy

Erica
11-20-2011, 06:38 PM
Is no longer showing after the newest vb4.1.8 update..

this was 4.1.7 postbit legacy reputation code.
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
</vb:if>

it was changed to this for 4.1.8.
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
<vb:each from="reputationdisplay" value="row">
<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend}
</vb:each>
</span>
vBadvanced CMP 4.1.2 reputation code .
<vb:if condition="$bbuserinfo['reputationdisplay'] OR ($bbuserinfo['rank'] AND $mod_options['portal_welcome_rank'])">
<div style="float:{vb:stylevar right}">
<vb:if condition="$bbuserinfo['reputationdisplay']">
{vb:rawphrase rep_power}: {vb:raw reppower}
<div align="{vb:stylevar right}" style="padding-bottom:{vb:stylevar cellpadding}px">{vb:raw bbuserinfo.reputationdisplay}</div>

thanks for any help on this matter..

Hippy

just like i post it heres a picture with the red arrow pointing at it and did try default no parent same issue so its not the styles i got since they styles seamus did get upgrade it as well to 4.1.8
6360

Our Sponsors
 

POL_ED
11-20-2011, 06:50 PM
After upgrade from 4.1.7 --> 4.1.8 in my forum does not show the reputation icon on "Welcome Block" CMPS v4.1.2.
Templates Used :adv_portal_welcomeblock_lean, adv_portal_welcomeblock_expanded, postbit_reputation.

From vb 4.1.8 the postbit_reputation template no longer exists.
https://www.vbulletin.com/forum/entry.php/2493-Comma-List-Changes-in-vBulletin-4-1-8

How changed welcomeblock.php and adv_portal_welcomeblock_expanded in CMPS v4.1.2 for vb 4.1.8??

=================
For show rank in "Welcome Block" changed in /modules/welcomeblock.php

$vbulletin->userinfo['rank'] = str_replace('src="', 'src="' . $vbulletin->options['bburl'] . '/', $vbulletin->userinfo['rank']);
to

$vbulletin->userinfo['rank'] = str_replace('src="', 'src="', $vbulletin->userinfo['rank']);

r_hippy
11-21-2011, 07:03 PM
not sure about the fix you posted but reputation still showing a Array

Our Sponsors
 

Erica
11-21-2011, 07:14 PM
not sure about the fix you posted but reputation still showing a Array

Same here that seems to be for rank we need Reputation fix not rank.

r_hippy
11-21-2011, 09:11 PM
We need ya Brian..

thanks

gmhoward
11-23-2011, 04:27 PM
I have the same issue, I tried the suggested fix and it did not correct the problem.

Brian
11-30-2011, 02:39 PM
Thank you for pointing this out. I've just applied the fix to the forum/modules/welcomeblock.php file in the download package here, so if you will download the files from here again and update that one on your server, that should take care of the issue. Or if you would rather apply the fix manually, just look in the file for this code:

if ($mod_options['portal_welcome_rank'])

And add this just Above it:

if ($vbulletin->options['simpleversion'] >= 418)
{
$repimage = '';
foreach ($vbulletin->userinfo['reputationdisplay'] AS $rep)
{
$repimage .= '<img class="' . $rep['class'] . '" src="' . $vbulletin->stylevars['imgdir_reputation']['imagedir'] . '/reputation_' . $rep['posneg'] . $rep['imgext'] . '" alt="" />' . $rep['rowend'];
}
$vbulletin->userinfo['reputationdisplay'] = $repimage;
}

POL_ED
11-30-2011, 04:31 PM
Thank you Brian.
Icons rep vba 4.1.2 with vb 4.1.8 are now in place. :)

r_hippy
11-30-2011, 05:13 PM
once again thanks Brian..

Erica
11-30-2011, 07:41 PM
Thanks Brian.:)