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)
-   -   Mini Mods - Reputation in the CMS (https://vborg.vbsupport.ru/showthread.php?t=261566)

ZGeek 04-06-2011 10:00 PM

Reputation in the CMS
 
1 Attachment(s)
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&amp;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&amp;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']">&amp;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']">&amp;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&amp;p={vb:raw postid}"  onclick="load_html('widget_respond_{vb:raw postid}', 'ajax.php?do=get_comment_reply&amp;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']">&amp;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&amp;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&amp;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&amp;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>


archet1337 08-12-2011 01:17 AM

Thanks for sharing :)


All times are GMT. The time now is 03:56 AM.

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.02510 seconds
  • Memory Usage 1,758KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete