vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Reputation as Numbers and/or Green Bars (https://vborg.vbsupport.ru/showthread.php?t=237985)

Thr33 03-10-2010 10:00 PM

Reputation as Numbers and/or Green Bars
 
1 Attachment(s)
Hey guys, im very new to PHP so this took me wayyyy longer than it should have done lol.

in postbit_legacy and/or postbit

find
PHP Code:

            <vb:if condition="$show['reputation']">
                <
span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
            </
vb:if> 

replace with
PHP Code:

            <vb:if condition="$show['reputation']">
                <
span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Reputation: {vb:raw post.reputation}</span>
            </
vb:if> 

I also added the rep symbol infront of the "Reputation", you can do this by adding
PHP Code:

<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase add_reputation}" /> 

before.

Dr.osamA 03-11-2010 08:07 AM

installed

thanxxx man
________
Amateur ++++

Merlinii 03-12-2010 12:43 AM

I was unable to get it to work

Here is my code from postbit
Any suggestions?

</vb:if>

{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Reputation: {vb:raw post.reputation}</span>
</vb:if>

Merlinii 03-12-2010 12:49 AM

Ok, also replaced it in postbit_legacy and it is now working correctly.

Thanks!
Good Job!

paradoxx109 08-21-2010 06:30 AM

how can I enable the green bars?

Thr33 12-06-2010 04:15 AM

@paradox109, The green bars are {vb:raw post.reputationdisplay}, instead of {vb:raw post.reputation} for numbers.

@Merlinii, You could just change the code to something similar without the span class, so it would look like this:
Code:

<vb:if condition="$show['reputation']">
<dt>Reputation</dt> <dd>{vb:raw post.reputation}</dd>
</vb:if>

This would have the same effect plus it will align the columns like the rest of the extra_user_info

POL_ED 12-15-2010 09:52 PM

Quote:

Originally Posted by TopFloorDjs (Post 2129907)
@paradox109, The green bars are {vb:raw post.reputationdisplay}, instead of {vb:raw post.reputation} for numbers.

@Merlinii, You could just change the code to something similar without the span class, so it would look like this:
Code:

<vb:if condition="$show['reputation']">
<dt>Reputation</dt> <dd>{vb:raw post.reputation}</dd>
</vb:if>

This would have the same effect plus it will align the columns like the rest of the extra_user_info

may by like this ..
Reputation >> {vb:rawphrase reputation}
Code:

<vb:if condition="$show['reputation']">
<dt>{vb:rawphrase reputation}</dt> <dd>{vb:raw post.reputation}</dd>
</vb:if>


rjive 01-15-2011 02:03 AM

Thank you for this information. I found it to be VERY useful.

Can anyone help me to get the rep to display on the member profile? Thanks in advance.

POL_ED 02-01-2011 09:43 PM

Display Reputation Comments on Members Profile Page
Display Reputation Comments Given
and
Display Reputation POINTS in User CP

seite7 02-06-2011 07:05 AM

It seems this view doesn't honor the setting "User can hide reputation".
Anyone knows how to achieve that?

shzad1 02-06-2011 04:47 PM

http://img535.imageshack.us/img535/9639/reputationk.jpg

Can i Get this in Straight line rather than 3 different lines :(

My code is :

Code:

<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase add_reputation}" />
                                        <vb:if condition="$show['reputation']">
                                                <vb:if condition="$show['reppower']">
                                        <dt>{vb:rawphrase reppower}</dt>
                                        <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
                                                </vb:if>


whyiteasy 02-07-2011 02:47 AM

how to set it under the rep power function?

Like as this below

http://www.desiupload.com/out.php/i720710_Capture.PNG

Thr33 02-23-2011 10:23 PM

siete7, it should respect if the user has decided not to show reputation, hense the code
Code:

<vb:if condition="$show['reputation']">
shzad1, just remove the <dt></dt> and <dd></dd>.

whyiteasy, Add </ br> after the RepPower script

Last_Zero 02-24-2011 06:51 PM

You Can Show The Rep Image + Numbers In The Same Time Like This

Code:

<vb:if condition="$show['reputation']">
                <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Reputation: {vb:raw post.reputation}<br/>{vb:raw post.reputationdisplay}</span>
            </vb:if>

And Thanks Installed

tidus78 02-28-2011 07:26 AM

Hello,installed.

Now https://vborg.vbsupport.ru/external/2011/02/3.jpg

I would like this on 2 rows : https://vborg.vbsupport.ru/attachmen...1&d=1298567642

This is my legacy :
Quote:

<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Reputazione: {vb:raw post.reputation}</dt> <dd>{vb:raw post.reputationdisplay}</span>
</vb:if>

Thr33 07-22-2011 03:17 AM

Just remove the span. So be like:
Code:

<vb:if condition="$show['reputation']">
<dt>Reputazione: {vb:raw post.reputation}</dt> <dd>{vb:raw post.reputationdisplay}</dd>
</vb:if>


Nimaveli 08-21-2011 04:24 PM

Does anyone know what the code to add Rep Power aswell is?

Thanks.

Jaejoong1 09-13-2011 09:28 PM

It gives me

adding child to non-existent node

when i edit it in the postbit legacy

i can't find it in postbit

any tips?

del Drago 11-19-2011 07:26 PM

This mod needs updated. vBulletin 4.18 changes the way that reputation is displayed. raw post.reputationdisplay no longer works.

tidus78 11-20-2011 11:38 PM

I Agree

Now https://vborg.vbsupport.ru/external/2011/11/17.jpg

Ikkyy 11-24-2011 03:22 PM

Waiting for update ! 4.1.8

youhack 11-24-2011 03:29 PM

please if you can, then do so here
http://rghost.ru/31853121/image.png
for 4.1.8

orio 12-01-2011 05:15 PM

Please Update!

Thr33 12-04-2011 09:19 PM

Only the reputationdisplay has been removed from vBulletin code. The vb:raw post.reputation (reputation as a number) is still active and working.

Jamzyb 12-10-2011 10:18 PM

Quote:

Originally Posted by Last_Zero (Post 2166435)
You Can Show The Rep Image + Numbers In The Same Time Like This

Code:

<vb:if condition="$show['reputation']">
                <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Reputation: {vb:raw post.reputation}<br/>{vb:raw post.reputationdisplay}</span>
            </vb:if>

And Thanks Installed

THANKS!! Just what I wanted :cool:

initiald 03-07-2012 11:21 PM

Could you please help me how to change this code to display reputation number on post profile.
here my code..

Quote:

<vb:if condition="$show['reputation']">
<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>
</vb:if>

DM BoNeZ 03-08-2012 12:39 AM

how do you make it so when the person has -rep it shows red numbers and when the person has positive rep it shows in green numbers

marccap 05-15-2012 04:08 PM

is there a 4.1.12 mod version around?

VAG 05-15-2012 06:12 PM

Looking forward to the 4.1.12 mod too. The old one shows the rep icon above the reputation.

marccap 05-16-2012 01:24 PM

I assume something around here needs amending for 4.1.12 but ive had no luck

<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}">

marccap 05-25-2012 09:01 PM

bump

reefaqua 06-16-2012 05:06 PM

Not working for 4.2.0 - any update?

dwx 06-22-2012 09:20 PM

OK, I just left the green dots alone, and I added another line for Reputation to the end of my user's information:

Look for this:
PHP Code:

<vb:if condition="$show['reppower']">
                    <
dt>{vb:rawphrase reppower}</dt
                    <
dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd
                        </
vb:if> 


Directly after it add:
PHP Code:

<!-- Beginadded Reputation display as a number -->
<
vb:if condition="$show['reputation']">
                    <
dt>{vb:rawphrase reputation}</dt
                    <
dd id="reputation_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputation}</dd
                        </
vb:if>
<!-- 
end of changes --> 

This works for VB4.2. I ONLY tested it on my site with my installed skins. Sorry, I can't do more than just post the hack here.

Fary 07-02-2012 07:31 PM

Hey .. i done everything but still its not working in my forum im using 4.0.8

scorpss 07-03-2012 06:57 PM

i have a probleme , i dont find the codes :(

here is my postbit legacy :


Quote:

{vb:raw template_hook.postbit_start}
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->

<div class="posthead">
<span class="postdate {vb:raw post.statusicon}">
<vb:if condition="$show['announcement']">
<span class="date">{vb:rawphrase x_until_y, {vb:raw post.startdate}, {vb:raw post.enddate}}</span>
<vb:else />
<span class="date">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']">&nbsp;<span class="time">{vb:raw post.posttime}</span></vb:if></span>
</vb:if>
</span>
<span class="nodecontrols">
<vb:if condition="$post['postid'] AND $post['threadid'] AND !$show['moderated']">
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="<vb:if condition="$show['inlinemod']">ie</vb:if>postcounter">#{vb:raw post.postcount}</a><a id="postcount{vb:raw post.postid}" name="{vb:raw post.postcount}"></a>
</vb:if>
<vb:if condition="$show['moderated']">{vb:rawphrase moderated_post}</vb:if>
<vb:if condition="$show['inlinemod']">
<label for="post_imod_checkbox_{vb:raw post.postid}"><input class="postimod" type="checkbox" id="post_imod_checkbox_{vb:raw post.postid}" name="plist[{vb:raw post.postid}]" value="{vb:raw post.checkbox_value}" /></label>
</vb:if>
</span>
</div>
<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
{vb:raw post.onlinestatus}
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</vb:if>
</div>
<span class="usertitle">
{vb:raw post.usertitle}
</span>
<vb:if condition="$post['rank']">
<span class="rank">{vb:raw post.rank}</span>
</vb:if>
{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">

</vb:if>
<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>
<vb:if condition="$post['userid']">
<hr />
<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>

{vb:raw template_hook.postbit_userinfo_right_after_posts}


<vb:if condition="$show['infraction'] OR $show['reppower']">
<dl class="user_rep">
<vb:if condition="$show['infraction']">
<dt>{vb:rawphrase infractions}</dt>
<dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
</vb:if>
<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
<dt>{vb:rawphrase reppower}</dt>
<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
</vb:if>
</vb:if>
</dl></dl>
</vb:if>
{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</vb:if>
</div>
<div class="postbody">
<div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
{vb:raw template_hook.postbit_messagearea_start}
<vb:if condition="$post['title'] OR $show['messageicon']">
<h2 class="title icon">
<vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
</h2>
</vb:if>


<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
</vb:if>
<div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">
<div id="post_message_{vb:raw post.postid}">
<blockquote class="postcontent restore ">
{vb:raw post.message}
</blockquote>
</div>

<vb:if condition="$show['attachments']">
<div class="attachments">

<vb:if condition="$show['thumbnailattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_thumbnails}" /> {vb:rawphrase attached_thumbnails}</legend>
{vb:raw post.thumbnailattachments}
</fieldset>
</vb:if>

<vb:if condition="$show['imageattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
{vb:raw post.imageattachments}
</fieldset>
</vb:if>

<vb:if condition="$show['imageattachmentlink']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
<ul>
{vb:raw post.imageattachmentlinks}
</ul>
</fieldset>
</vb:if>

<vb:if condition="$show['otherattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_files}</legend>
<ul>
{vb:raw post.otherattachments}
</ul>
</fieldset>
</vb:if>

<vb:if condition="$show['moderatedattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attachments_pending_approval}</legend>
<ul>
{vb:raw post.moderatedattachments}
</ul>
</fieldset>
</vb:if>

</div>
<!-- / attachments -->
</vb:if>
</div>
</div>
<vb:if condition="$show['postedited'] || $post['signature']">
<div class="after_content">
<vb:if condition="$show['postedited']">
<!-- edit note -->
<blockquote class="postcontent lastedited">
<!-- <img src="{vb:stylevar imgdir_button}/edit_40b.png" class="inlineimg" alt="" /> -->
<vb:if condition="$show['postedithistory']">
{vb:rawphrase last_edited_link_by_x_on_y_at_z_postid, {vb:raw post.edit_username}, {vb:raw post.edit_date},
{vb:raw post.edit_time}, {vb:raw post.historyurl}}
<vb:else />
{vb:rawphrase last_edited_by_x_on_y_at_z, {vb:raw post.edit_username}, {vb:raw post.edit_date}, {vb:raw post.edit_time}}
</vb:if>
<vb:if condition="$post['edit_reason']">
<span class="reason">{vb:rawphrase reason}:</span> {vb:raw post.edit_reason}
</vb:if>
</blockquote>
<!-- / edit note -->
</vb:if>
{vb:raw template_hook.postbit_signature_start}
{vb:raw ad_location.ad_showthread_firstpost_sig}
<vb:if condition="$post['signature']">
<blockquote class="signature restore"><hr width="50%" size="1" align="left" /><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
</vb:if>
{vb:raw template_hook.postbit_signature_end}
</div>
</vb:if>
<div class="cleardiv"></div>
</div>
</div>
<div class="postfoot">
<!-- <div class="postfoot_container"> -->
<div class="textcontrols floatcontainer">
<span class="postcontrols">
<img style="display:none" id="progress_{vb:raw post.postid}" src="{vb:stylevar imgdir_misc}/progress.gif" alt="{vb:rawphrase loading_editor_please_wait}" />
<vb:if condition="$post['editlink']">
<a class="editpost" href="{vb:raw post.editlink}" name="vB::QuickEdit::{vb:raw post.postid}"><img src="{vb:raw vboptions.cleargifurl}" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}</a>
<vb:if condition="THIS_SCRIPT != 'usernote' && THIS_SCRIPT != 'announcement'"><span class="seperator">&nbsp;</span></vb:if>
</vb:if>
<vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}&amp;noquote=1" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
<span class="seperator">&nbsp;</span>
</vb:if>
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a>
<vb:if condition="$show['multiquote_post']"><span class="seperator">&nbsp;</span></vb:if>
</vb:if>
<vb:if condition="$show['multiquote_post']">

<a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" />&nbsp;</a>
</vb:if>
</span>
<span class="postlinking">
<vb:if condition="!$post['forwardlink'] && THIS_SCRIPT != 'usernote' && THIS_SCRIPT != 'announcement'">
<vb:if condition="$promote_sectionid AND $promote_sectionid != -1">
<a href="{vb:raw promote_url}" class="promotecms">{vb:rawphrase promote_to_article}</a>
<span class="seperator">&nbsp;</span>
</vb:if>
</vb:if>

{vb:raw template_hook.postbit_controls}
{vb:raw post.iplogged}
<vb:if condition="$post['forwardlink']">
<a class="forwardpost" href="{vb:raw post.forwardlink}" rel="nofollow"><img src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase forward_message}" /> {vb:rawphrase forward}</a>
<vb:if condition="$show['reputationlink'] OR $show['infractionlink'] OR $show['moderated'] OR $show['spam'] OR $show['deletedpost'] OR $show['redcard'] OR $show['yellowcard']"><span class="seperator">&nbsp;</span></vb:if>
</vb:if>
<vb:if condition="$show['reputationlink']">
<span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" title="{vb:rawphrase add_reputation}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase add_reputation}" /> -->&nbsp;</a></span>
</vb:if>

<vb:if condition="$show['infractionlink']">
&nbsp;<a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&amp;p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}"><!-- <img src="{vb:stylevar imgdir_button}/add-infraction_sm.png" alt="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}" /> --> &nbsp;</a> &nbsp;
</vb:if>
<vb:if condition="$show['reportlink']">
&nbsp;<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> -->&nbsp;</a> &nbsp;
</vb:if>

<vb:if condition="$show['moderated']">
<img class="moderated" src="{vb:stylevar imgdir_misc}/moderated_sm.png" alt="{vb:rawphrase moderated_post}" />
</vb:if>
<vb:if condition="$show['spam']">
<img class="spam" src="{vb:stylevar imgdir_misc}/spam_detected.png" alt="{vb:rawphrase spam_post}" />
</vb:if>
<vb:if condition="$show['deletedpost']">
<vb:if condition="$show['managepost']">
<a class="deleted" href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=managepost&amp;p={vb:raw post.postid}" title="{vb:rawphrase manage}">&nbsp;</a>
<vb:else />
<img class="deleted_nolink" class="inlineimage" src="{vb:stylevar imgdir_button}/deleted_sm.png" alt="{vb:rawphrase deleted_post}" />
</vb:if>
</vb:if>
<vb:if condition="$show['redcard']">
<a class="redcard" href="infraction.php?{vb:raw session.sessionurl}do=view&amp;p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_infraction}"><!-- <img src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="{vb:rawphrase received_infraction}" /> --> &nbsp;</a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&amp;p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_warning}"><!--<img src="{vb:stylevar imgdir_button}/yellow-card_sm.png" alt="{vb:rawphrase received_warning}" /> --> &nbsp;</a>
</vb:if>
<vb:if condition="$post['api_platform']">
<vb:if condition="$post['api_platform_link']">
<a class="mobile mobile_{vb:raw post.api_platform}" href="{vb:raw post.api_platform_link}" rel="nofollow" title="{vb:rawphrase {vb:raw post['api_platform_link_title']}}">{vb:rawphrase {vb:raw post['api_platform_link_phrase']}}</a>
<vb:else />
<span class="mobile mobile_{vb:raw post.api_platform}">{vb:rawphrase {vb:raw post['api_platform_link_phrase']}}</span>
</vb:if>
</vb:if>
</span>
<!-- </div> -->
</div>
</div>
<hr />
</li>
{vb:raw template_hook.postbit_end}
[B]


can someone help?

scorpss 07-03-2012 07:01 PM

i found this :

Quote:

<vb:if condition="$show['reputationlink'] OR $show['infractionlink'] OR $show['moderated'] OR $show['spam'] OR $show['deletedpost'] OR $show['redcard'] OR $show['yellowcard']"><span class="seperator">&nbsp;</span></vb:if>
</vb:if>
is it right one?

Thr33 09-12-2012 11:57 PM

in 4.2.0 (BETA 1)+ you have to add it below this:
PHP Code:

<dl class="userinfo_extra"

INSTEAD OF OVER IT LIKE BEFORE! So it should look like this:
PHP Code:

                <dl class="userinfo_extra">
<
vb:if condition="$show['reputation']">
                <
dt>REP</dt> <dd>{vb:raw post.reputation}</dd>
            </
vb:if> 

Anyone who has still got problems please inbox me and i will sort it out directly with you, with custom templates it may take 1-2-1 assistance.

vbandroid 08-15-2013 09:07 PM

can this work as a plugin?

J o o k 02-03-2014 06:07 AM

I changed the coding to say "reputationdisplay" so it will display the bars instead of numbers, and when I do that it says "Reputation Array" where the reputation bars should be. When I put it only as "reputation" in the coding, it shows the number value.

What am I missing?

J o o k 02-03-2014 06:11 AM

Sorry. This is what I have as far as coding goes.

postbit and postbit legacy are the same
<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Reputation: {vb:raw post.reputation}</span>
</vb:if>

I'm on a 4.2.2


All times are GMT. The time now is 08:52 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.01488 seconds
  • Memory Usage 1,915KB
  • 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
  • (8)bbcode_code_printable
  • (7)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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