Reputation in the CMS
I couldn't find this any place so forgive me if it has been posted before. I wanted to add the Reputation link in the CMS (Why wasn't this added already!)
Locate template: vbcms_postbit_legacy Search for: Code:
<ul class="postcontrols"> Insert this on the next line: Code:
<vb:if condition="$show['reputationlink']"> <li> <a class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase reputation}" /></a> </li> </vb:if> This is my entire template if you just want to copy / paste Code:
{vb:raw template_hook.postbit_start} <a name="comment_{vb:raw post.postid}"> <li class="postbit postbit-lite{vb:if !$post['avatarurl'], ' noavatar'}" id="post{vb:raw post.postid}"> {vb:raw post.scrolltothis} <vb:comment> <span class="postbit-chkbox"> <input type="checkbox" id="post_imod_checkbox_{vb:raw post.postid}" class="inlinemod" name="postlist[{vb:raw post.postid}]" value="{vb:raw post.checkbox_value}" title="{vb:rawphrase select_this_item_for_inline_moderation}" tabindex="1" /> </span> </vb:comment> <vb:if condition="$post['avatarurl']"><a href="{vb:link member, {vb:raw post}}" class="avatarlink"><img src="{vb:raw post.avatarurl}" {vb:raw post.avwidth} {vb:raw post.avheight} alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" border="0" /></a></vb:if> <div class="postbithead"> <label for="post_{vb:raw post.postid}"> <vb:if condition="$show['member']"> <a href="{vb:link member, {vb:raw post}}" class="username">{vb:raw post.username}</a> <vb:else /> <span class="username">{vb:raw post.username}</span> </vb:if> <vb:if condition="$show['profile']"> <span>{vb:rawphrase profile_x, {vb:link member, {vb:raw post}}, {vb:raw post.postid}}</span> </vb:if> - <span class="postdate">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw post.posttime}</span></vb:if></span> </label> </div> <vb:if condition="$show['moderated']"><p class="moderated shade">{vb:rawphrase moderated_post}</p></vb:if> <div id="post_message_{vb:raw post.postid}"> <blockquote class="posttext restore"> {vb:raw post.message} </blockquote> </div> <div class="postbitfoot floatcontainer"> <ul class="postcontrols"> <vb:if condition="$show['reputationlink']"> <li> <a class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase reputation}" /></a> </li> </vb:if> <vb:if condition="$show['reportlink']"> <li> <a class="report" href="{vb:raw post.reportlink}<vb:if condition="$show['return_node']">&return_node={vb:raw show.return_node}</vb:if>" rel="nofollow" title="{vb:rawphrase report_bad_post}"><img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" class="inlineimg" /></a> </li> </vb:if> <vb:if condition="$post['editlink']"> <li> <img style="display: none" id="progress_{vb:raw postid}" src="{vb:stylevar imgdir_misc}/progress.gif" alt="{vb:rawphrase loading_editor_please_wait}" /> <a href="{vb:raw post.editlink}<vb:if condition="$show['return_node']">&return_node={vb:raw show.return_node}</vb:if>" class="edit" name="vB::QuickEdit::{vb:raw post.postid}" title="{vb:rawphrase edit_comment}"><img src="{vb:stylevar imgdir_misc}/blog/edit_generic.png" alt="{vb:rawphrase edit_comment}" class="inlineimg" /> {vb:rawphrase edit}</a> </li> </vb:if> <vb:if condition="$show['show_widget_comments_link']"> <li> <a name="comments_reply_{vb:raw postid}" href="{vb:raw vboptions.bburl}/newreply.php?{vb:raw session.sessionurl}do=newreply&p={vb:raw postid}" onclick="load_html('widget_respond_{vb:raw postid}', 'ajax.php?do=get_comment_reply&postid={vb:raw postid}', '', null, function() {vB_Editor['editor_{vb:raw postid}'] = new vB_Text_Editor('editor_{vb:raw postid}', 1, 'nonforum', '1', undefined, '');} ); return false"> {vb:rawphrase reply} </a> </li> </vb:if> <vb:if condition="$post['replylink']"> <li> <a href="{vb:raw post.replylink}<vb:if condition="$show['return_node']">&return_node={vb:raw show.return_node}</vb:if>" class="reply" rel="nofollow"><img src="{vb:stylevar imgdir_button}/reply_40b.png" alt="{vb:rawphrase edit_comment}" class="inlineimg" /> {vb:rawphrase reply}</a> </li> </vb:if> <vb:if condition="$show['quickreply'] AND !$show['threadedmode']"> <li> <a href="{vb:raw post.replylink}" rel="nofollow" id="qr_{vb:raw post.postid}" onclick="return false">{vb:rawphrase quick_reply_to_this_message}</a> </li> </vb:if> <vb:if condition="$show['spam']"> <li> <img src="{vb:stylevar imgdir_misc}/spam_detected.png" alt="{vb:rawphrase spam_post}" border="0" /> </li> </vb:if> <vb:if condition="$show['deletedpost']"> <li> <vb:if condition="$show['managepost']"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=managepost&p={vb:raw post.postid}"><img src="{vb:stylevar imgdir_misc}/trashcan.gif" alt="{vb:rawphrase manage}" border="0" /></a> <vb:else /> <img src="{vb:stylevar imgdir_misc}/trashcan.gif" alt="{vb:rawphrase deleted_post}" border="0" /> </vb:if> </li> </vb:if> <vb:if condition="$show['redcard']"> <li> <a href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" title="{vb:rawphrase received_infraction}"><img src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="{vb:rawphrase received_infraction}" border="0" /></a> </li> <vb:elseif condition="$show['yellowcard']" /> <li> <a href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}"><img src="{vb:stylevar imgdir_button}/yellow-card_sm.png" alt="{vb:rawphrase received_warning}" border="0" /></a> </li> </vb:if> </ul> </div> <script type="text/javascript"> <!-- vBulletin.register_control("vB_QuickEdit", "{vb:raw post.postid}", 'Post'); //--> </script> </li> Download No files for download. |