Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-31-2008, 11:27 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can't center my header

Hey,

I am trying to center my header but it just doesn't work, i tried playing around and still didn't get how to center it.

or trying to use a bigger banner , width wise
Quote:
I can't even use a bigger banner =/ current default width 516, if i use a banner around 700 width, it doesn't show it all, it only show it until the 516 width, i tried to edit the header code from 516 to 700 and the banner was even more messed up.
Header code

Code:
<!-- logo -->
<a name="top"></a>
<center>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/header_bg.jpg">
<tr>
<td valign="top" width="296"><img src="$stylevar[imgdir_misc]/header_left.jpg" width="516" border="0"></a></td>
<td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" /></td>
</tr>
</table>
</center>

<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
Attached Images
File Type: jpg header.jpg (41.3 KB, 0 views)
Reply With Quote
  #2  
Old 02-01-2008, 06:17 AM
Reecey Reecey is offline
 
Join Date: Dec 2007
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Header code

Code:
<!-- logo -->
<a name="top"></a>
<td align="$stylevar[center]">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/header_bg.jpg">
<tr></td>
<td align="$stylevar[left]"><td valign="top" width="296"><img src="$stylevar[imgdir_misc]/header_left.jpg" width="516" border="0"></a></td>
<td align="$stylevar[right]"><td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" /></td>
</tr>
</table>
</center>

<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
Try that if it dont work post back
Reply With Quote
  #3  
Old 02-01-2008, 06:24 AM
SpreadingLight SpreadingLight is offline
 
Join Date: Jan 2008
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can something like this be done to the Forum Jump also, to center it?
Reply With Quote
  #4  
Old 02-01-2008, 06:27 AM
Reecey Reecey is offline
 
Join Date: Dec 2007
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i will just check how i centered the header on my forum ill post back or edit.

[edit] yeh that should work
Reply With Quote
  #5  
Old 02-01-2008, 08:37 AM
SpreadingLight SpreadingLight is offline
 
Join Date: Jan 2008
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for checking. Now I have to see how exactly I modify the code to work with $forumjump.

I tried

Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td align="center">
$forumjump (and all the rest of the forumjump code)
</td>
</tr>
</table>
and the forumjump menu was aligned to the left.

The code worked at this neat test table html window:
http://www.davesite.com/webstation/html/chap12.shtml

There seems to be some code aligning the forumjump code to the left.


ADD: apologies for interrupting the thread I had thought the original question was solved.
Reply With Quote
  #6  
Old 02-01-2008, 06:17 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reecey View Post
Header code

Code:
<!-- logo -->
<a name="top"></a>
<td align="$stylevar[center]">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/header_bg.jpg">
<tr></td>
<td align="$stylevar[left]"><td valign="top" width="296"><img src="$stylevar[imgdir_misc]/header_left.jpg" width="516" border="0"></a></td>
<td align="$stylevar[right]"><td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" /></td>
</tr>
</table>
</center>

<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
Try that if it dont work post back
I've tried it but it didn't work. It is so buggy and the guy who made it , didn't tell me how to center it.
Reply With Quote
  #7  
Old 02-02-2008, 11:46 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't even use a bigger banner =/ current default width 516, if i use a banner around 700 width, it doesn't show it all, it only show it until the 516 width, i tried to edit the header code from 516 to 700 and the banner was even more messed up.
Reply With Quote
  #8  
Old 02-03-2008, 12:10 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Briefly looking over your code the <td> tags are out of place. While the code (below) may not resolve the entire issue it will make things more managable:

Code:
<!-- logo -->
<a name="top"></a>
<div style="margin:0 auto">
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/header_bg.jpg">
<tr valign="top">
<td align="$stylevar[left]" width="516px"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/header_left.jpg" border="0" /></a></td>
<td align="$stylevar[right]"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" /></td>
</tr>
</table>
</div>
<!-- /logo -->
 
<!-- content table -->
$spacer_open
 
$_phpinclude_output

After you apply these changes we can go from there. Since I don't have the URL to your site I'll need to see the images:

header_bg.jpg
header_left.jpg
header_right.jpg
Reply With Quote
  #9  
Old 02-03-2008, 12:14 AM
Reecey Reecey is offline
 
Join Date: Dec 2007
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do ya want me to give it a go on your forum link me to it and make me a user make me admin and restrict my perms to styles and languages and send me the info via pm of password sit link and username and ill give it a go
Reply With Quote
  #10  
Old 02-03-2008, 12:16 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seriously, you don't need admin access to fix the issue. I can help you without it.
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:04 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.05560 seconds
  • Memory Usage 2,272KB
  • Queries Executed 12 (?)
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
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete