Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2013, 12:35 AM
mathforum mathforum is offline
 
Join Date: Nov 2005
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Span align question

Hi everyone,

I want to add some text to the same line in the postbit legacy template which contains the post date and post number. I've found the right location and the code I need works but I can't get it to align properly. Here's a picture of what it looks like now.



First I tried:
Code:
<span style="color: #a22547; text-transform: uppercase; 
font-weight: bold;text-align=center">
</span>
but that ended up with the text appearing right next to the date. So for now the only thing I could think of was adding manual spaces in html a few times to create some kind of gap for now. This is a horrible method though and obviously I can't use this as a solution so any ideas as to how I can align this text "Thread Author" in the center of the text box?
Reply With Quote
  #2  
Old 11-24-2013, 12:39 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the location you added that to?
Reply With Quote
  #3  
Old 11-24-2013, 12:42 AM
mathforum mathforum is offline
 
Join Date: Nov 2005
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just after this bit in the legacy template:
Code:
<span class="date" style="color: #a22547; text-transform: uppercase; font-weight:
bold;">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']">,&nbsp;<span class="time" style="color: #a22547;">{vb:raw post.posttime}</span></vb:if>
</span>
</vb:if>
Reply With Quote
  #4  
Old 11-24-2013, 12:49 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this.

Code:
<span style="color: #a22547; text-transform: uppercase; 
font-weight: bold; float:right;">Thread Author
</span>
Reply With Quote
  #5  
Old 11-24-2013, 12:53 AM
mathforum mathforum is offline
 
Join Date: Nov 2005
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now it's on the right side against the post number. Tried using float:center as well but didn't work.

Reply With Quote
  #6  
Old 11-24-2013, 01:01 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok try this one.

Code:
<span style="color: #a22547; text-transform: uppercase; 
font-weight: bold; padding-left:auto; padding-right:auto;">Thread Author
</span>
Reply With Quote
  #7  
Old 11-24-2013, 01:09 AM
mathforum mathforum is offline
 
Join Date: Nov 2005
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Now it's back to the left side. I wish I had better news and I appreciate your time!
Reply With Quote
  #8  
Old 11-24-2013, 01:12 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you pm me a admin account, so I can try it on your site, as I am able to center it fine on mine.
Attached Images
File Type: jpg center author.jpg (24.7 KB, 0 views)
Reply With Quote
Благодарность от:
mathforum
  #9  
Old 11-24-2013, 01:14 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe try:
HTML Code:
<span class="date" style="color: #a22547; text-transform: uppercase; font-weight:
bold; padding-left:auto; padding-right:auto;">Thread Author
</span>

Quote:
Originally Posted by mathforum View Post
Just after this bit in the legacy template:
Code:
<span class="date" style="color: #a22547; text-transform: uppercase; font-weight:
bold;">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']">,&nbsp;<span class="time" style="color: #a22547;">{vb:raw post.posttime}</span></vb:if>
</span>
</vb:if>
Also, put it before the </vb:if> conditional not after.
Reply With Quote
Благодарность от:
mathforum
  #10  
Old 11-24-2013, 01:24 AM
mathforum mathforum is offline
 
Join Date: Nov 2005
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Max - still didn't work. We have a very custom forum design so maybe there is some non-standard CSS attribute messing this up. Appreciate the suggestion.

ozzy47 is taking a look at my code right now I think so we'll see what he finds.
Reply With Quote
Благодарность от:
Max Taxable
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 12:01 PM.


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.04337 seconds
  • Memory Usage 2,286KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete