Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Reputation in the CMS Details »»
Reputation in the CMS
Version: 1.00, by ZGeek ZGeek is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.1.2 Rating:
Released: 04-06-2011 Last Update: Never Installs: 5
Template Edits
Re-useable Code Translations  
No support by the author.

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>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
tbworld

Comments
  #2  
Old 08-12-2011, 01:17 AM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for sharing
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03816 seconds
  • Memory Usage 2,244KB
  • Queries Executed 16 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (1)post_thanks_box_bit
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete