Thread: Forum Display Enhancements - Global Threads for VB4
View Single Post
  #112  
Old 02-19-2012, 07:26 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit your threadbit_global template.

Erase everything in it and replace it with this:

Code:
<li class="threadbit {vb:raw globalthread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$globalthread['postuserid'] AND !$globalthread['del_userid']"> guest</vb:if><vb:if condition="$globalthread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw globalthread.realthreadid}">
	<div class="rating{vb:raw globalthread.rating}<vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
		<div class="threadinfo" title="{vb:raw globalthread.preview}">
			<!--  status icon block -->
			<a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw globalthread.dot_count}, {vb:raw globalthread.dot_lastpost}}"</vb:if>></a>

			<!-- title / author block -->
			<div class="inner">
				<h3 class="threadtitle">
                    <vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw globalthread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
					</vb:if>	

                    <vb:if condition="$show['threadicon']">
                            <img src="{vb:raw globalthread.threadiconpath}" alt="{vb:raw globalthread.threadicontitle}" border="0" />
                    </vb:if>

					<vb:if condition="$globalthread['sticky']">
					 	<img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" />
					</vb:if>
                                        
 					<vb:if condition="$globalthread['movedprefix'] OR $globalthread['typeprefix'] OR $globalthread['moderatedprefix'] OR $globalthread['prefix_rich']">
						<span id="thread_prefix_{vb:raw globalthread.realthreadid}" class="prefix understate">
							{vb:raw globalthread.movedprefix}
							{vb:raw globalthread.typeprefix}
							{vb:raw globalthread.moderatedprefix}
							{vb:raw globalthread.prefix_rich}
						</span>
					</vb:if>
                	<a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a>
				</h3>

				<div class="threadmeta">				
					<div class="author">
						<vb:if condition="$show['rmanage']">
							<span class="rmanage"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=editthread&amp;t={vb:raw globalthread.redirectthreadid}">{vb:rawphrase manage}</a></span>
						</vb:if>						
						<vb:if condition="!$show['detailedtime']">
							{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw globalthread.postusername}, {vb:raw globalthread.startdate}, {vb:raw globalthread.starttime}, {vb:stylevar dirmark}}
						<vb:else />
							{vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw globalthread.postusername}, {vb:raw globalthread.startdate}, {vb:stylevar dirmark}}
						</vb:if>
						<vb:if condition="$show['unsubscribe']">
							 &nbsp; <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}do=newreply&amp;t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase reply}</a>
							 | <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;return=ucp&amp;t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a>
						</vb:if>
						<vb:if condition="$globalthread['pagenav']">
							<dl class="pagination" id="pagination_threadbit_{vb:raw globalthread.realthreadid}">
								<dt class="label">{vb:raw globalthread.totalpages} {vb:rawphrase pages} <span class="separator">&bull;</span></dt>
								<dd>
									{vb:raw globalthread.pagenav}
									<vb:if condition="$show['pagenavmore']"> <span class="separator">...</span> <span><a href="{vb:raw globalthread.lastpagelink}">{vb:raw globalthread.totalpages}</a></span></vb:if>
								</dd>
							</dl>
						</vb:if>
						<!-- iconinfo -->
						<div class="threaddetails td">
							<div class="threaddetailicons">
								<vb:if condition="$show['taglist']">
									<img src="{vb:stylevar imgdir_misc}/tag.png" alt="{vb:raw globalthread.taglist}" />
								</vb:if>
								<vb:if condition="$show['rexpires']">
									<img src="{vb:stylevar imgdir_misc}/expires.gif" alt="{vb:rawphrase expires_on_x_y, {vb:raw globalthread.expiredate}, {vb:raw globalthread.expiretime}}" />
								</vb:if>
								<vb:if condition="$show['moderated']">
									<img src="{vb:stylevar imgdir_misc}/moderated_small.gif" alt="{vb:rawphrase x_moderated_posts, {vb:raw globalthread.hiddencount}}" />
								</vb:if>
								<vb:if condition="$show['deletedthread']">
									<img src="{vb:stylevar imgdir_misc}/trashcan_small.gif" alt="{vb:rawphrase x_deleted_posts, {vb:raw globalthread.deletedcount}}" />
								</vb:if>
								<vb:if condition="$show['paperclip']">
									<a href="javascript://" onclick="attachments({vb:raw globalthread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw globalthread.attach}}" /></a>
								</vb:if>
								<vb:if condition="$show['subscribed']">
									<img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
								</vb:if>
							</div>
						</div>
					</div>
					
				</div>

			</div>
		</div>
		
		<!-- threadstats -->
		<vb:if condition="!$show['notificationtype']">
		<ul class="threadstats td alt" title="<vb:if condition="$globalthread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw globalthread.dot_count}, {vb:raw globalthread.dot_lastpost}}</vb:if>">
			<vb:if condition="$show['threadmoved']">
				<li>&nbsp;</li>
				<li>&nbsp;</li>
			<vb:else />
				<li>{vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;t={vb:raw globalthread.threadid}" onclick="who({vb:raw globalthread.threadid}); return false;" class="understate">{vb:raw globalthread.replycount}</a></li>
				<li>{vb:rawphrase views}: {vb:raw globalthread.views}</li>
			</vb:if>
			<li class="hidden">{vb:rawphrase rating}{vb:raw globalthread.rating} / 5</li>
		</ul>
		</vb:if>					
		<!-- lastpost -->
		<dl class="threadlastpost td<vb:if condition="$show['notificationtype']"> alt</vb:if>">
		<vb:if condition="$show['threadmoved']">
			<dt class="lastpostby hidden">&nbsp;</dt>
		<vb:else />
			<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
			<dd>{vb:raw memberaction_dropdown}</dd>
			<dd>{vb:raw globalthread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw globalthread.lastposttime}</span></vb:if>
			<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
			</dd>
		</vb:if>
		</dl>

		<vb:if condition="$show['notificationtype']">
		<!--  notification -->
		<div class="threadnotification td" >
			<label for="thread_imod_checkbox_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.notification}</label>
		</div>
		<label class="threadimod td">
			<input type="checkbox" name="deletebox[{vb:raw subscribeglobalthread.$globalthreadid}]" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" value="yes" tabindex="1" />
		</label>
		</vb:if>
		
		<vb:if condition="$show['inlinemod']">
		<!-- fourth block -->
		<label class="threadimod td alt">
			<input type="checkbox" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" name="imodcheck[{vb:raw globalthread.realthreadid}]" tabindex="1" />
		</label>
		</vb:if>
		
	</div>
</li>
Should fix it... I will have to update the template on the next update.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03505 seconds
  • Memory Usage 1,830KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete