View Single Post
  #971  
Old 02-11-2013, 10:21 AM
Courty Courty is offline
 
Join Date: Apr 2010
Location: Oztralya
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, another quick question for Dartho or anyone else who speaks code, apologies if this should be in another thread.

If possible, I would like to align the 'Report' and 'Infraction' button to the left side, and the 'Reply' and 'Edit' buttons to the right. I worked out how to do it using a new div tag, but that pushed the right side onto a new line (which I don't want).

Here's what I'm working with, is there an easy mod to make this work?

Code:
<div class="{vb:raw post.statustitle}windowbg2" id="post{vb:raw post.postid}">
<a name="post{vb:raw post.postid}"></a>
<a href="{vb:link member, {vb:raw post}}">{vb:raw post.username}</a> {vb:raw post.posttime} {vb:raw post.postdate}
<vb:if condition="$show['avatar']"><br />
					<a href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
					</a>
				</vb:if>
</div>

<div class="windowbg">{vb:raw post.message}<br /><br />

		<!-- attachments -->
		<vb:if condition="$show['attachments']">
			<div><span>Attached: </span>
			<vb:if condition="$show['thumbnailattachment']">
					<span>{vb:raw post.thumbnailattachments}<br /></span>
			</vb:if>
		
			<vb:if condition="$show['imageattachment']">
					<span>{vb:raw post.imageattachments}<br /></span>
			</vb:if>
			
			<vb:if condition="$show['imageattachmentlink']">
					<span>{vb:raw post.imageattachmentlinks}<br /></span>
			</vb:if>
			
			<vb:if condition="$show['otherattachment']">
					<span>{vb:raw post.otherattachments}<br /></span>
			</vb:if>
			
			<vb:if condition="$show['moderatedattachment']">
					<span>{vb:raw post.moderatedattachments}<br /></span>
			</vb:if>
			
			</div>
		<!-- / attachments -->
		</vb:if>
<vb:if condition="$show['reportlink']"><a id="btn" href="{vb:raw post.reportlink}" rel="nofollow">{vb:rawphrase report_bad_post}</a></vb:if>
<vb:if condition="$show['infractionlink']">
<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if>
<vb:if condition="$post['replylink']"><a id="btn" href="{vb:raw post.replylink}" id="qrwq_{vb:raw post.postid}" rel="nofollow">{vb:rawphrase reply}</a></vb:if>
<a id="btn" 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}}">Infraction</a>
</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 border="0" src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="{vb:rawphrase received_infraction}" /></a>&nbsp;
<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 border="0" src="{vb:stylevar imgdir_button}/yellow-card_sm.png" alt="{vb:rawphrase received_warning}" /></a>
</vb:if>

</div>
	<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>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01004 seconds
  • Memory Usage 1,787KB
  • 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