vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can't center my header (https://vborg.vbsupport.ru/showthread.php?t=169302)

katie hunter 01-31-2008 11:27 PM

Can't center my header
 
1 Attachment(s)
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


Reecey 02-01-2008 06:17 AM

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

SpreadingLight 02-01-2008 06:24 AM

Can something like this be done to the Forum Jump also, to center it?

Reecey 02-01-2008 06:27 AM

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

[edit] yeh that should work

SpreadingLight 02-01-2008 08:37 AM

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 :o I had thought the original question was solved.

katie hunter 02-01-2008 06:17 PM

Quote:

Originally Posted by Reecey (Post 1433721)
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.

katie hunter 02-02-2008 11:46 PM

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.

Freesteyelz 02-03-2008 12:10 AM

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

Reecey 02-03-2008 12:14 AM

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 :D

Freesteyelz 02-03-2008 12:16 AM

Seriously, you don't need admin access to fix the issue. I can help you without it.

Reecey 02-03-2008 12:19 AM

oh and how else are you ment to do it :mad:

I'm getting sick of people moaning when i say i will help. if she restricts my permissions what the HELL can i do. im helping her out.

you know what its up to her .

Freesteyelz 02-03-2008 12:26 AM

All I need is the header code and to see the images used (as specified in post #8). While the URL would be nice (so I can see the layout) it's not necessary.

I'm not preventing you from helping her. I'm just giving Katie another option.

snakes1100 02-03-2008 12:26 AM

@Reecey
i think you took Freesteyelz post a little to much to heart, you dont really need admin access to help ppl, simply posting the code for them to use is sufficiant.

I was wondering why are you trying to wrap a td tag around the start of a table tag to center it and close the td tag before the end of the table tag?

katie hunter 02-03-2008 12:28 AM

1 Attachment(s)
Quote:

Originally Posted by Freesteyelz (Post 1434964)
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

I will pm you the url ;)

Reecey thanks for the help but i don't give admin permission to anyone, i am really paranoid when it comes to stuff like these, I've lost my old vb software, domain and other modification because i trusted people, No offense but i am highly paranoid when it comes to admin stuff but thanks <333

snakes1100 02-03-2008 12:30 AM

I dont understand why you dont post your URL, seeing as its easy to find anyways.

Freesteyelz 02-03-2008 12:32 AM

I'll post the updates here so anyone who has taken the time will know what's been done.

katie hunter 02-03-2008 12:34 AM

Quote:

Originally Posted by snakes1100 (Post 1434982)
I dont understand why you dont post your URL, seeing as its easy to find anyways.

Here you go http://forum.nihonomaru.com

Quote:

Originally Posted by Freesteyelz (Post 1434984)
I'll post the updates here so anyone who has taken the time will know what's been done.

I've posted the attachments pictures in this post 14

Reecey 02-03-2008 12:45 AM

EUREEEEEKA IVE GOT IT :D

here right in your "header" template search for this :

Code:

<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Once you've found it replace it with this :

Code:

<td align="center"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
And you will end up with the header being in the center like :
http://soundhabbo.com/forum/index.php?styleid=28

There ya go :D

katie hunter 02-03-2008 12:51 AM

Quote:

Originally Posted by Reecey (Post 1434991)
EUREEEEEKA IVE GOT IT :D

here right in your "header" template search for this :

Code:

<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Once you've found it replace it with this :

Code:

<td align="center"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
And you will end up with the header being in the center like :
http://soundhabbo.com/forum/index.php?styleid=28

There ya go :D

It is Arika, if that is what you mean by my admin name =]
I will try it and let you know if it works.

Hmm what about this one ?

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.
This is the new banner i want to use but it doesn't fully show.

https://vborg.vbsupport.ru/external/2008/02/48.jpg

Reecey 02-03-2008 12:57 AM

i wasn't meaning your forum name i was meaning the science term "EURIKA" it means ive sussed it :D does it work ?

EDIT: just to let you know ive changed my banner back to the left now coz i don't want it in the center rofl.

katie hunter 02-03-2008 01:04 AM

Quote:

Originally Posted by Reecey (Post 1435002)
i wasn't meaning your forum name i was meaning the science term "EURIKA" it means ive sussed it :D does it work ?

EDIT: just to let you know ive changed my banner back to the left now coz i don't want it in the center rofl.

Okay.... Thanks :)
I will test it and let you know

but

WEll all i want now is how to use a bigger banner, width wise, the default banner width is 516 but i want to use the banner i made which is 700 wide. If you just try to edit the number from 516 to 700 in the header, it will mess the header totally, it won't fix it.

Reecey 02-03-2008 01:07 AM

it could be because of the size setting's of the style i can't really say what is the problem as i can't see it

irishelite 02-13-2008 08:38 PM

Quote:

Originally Posted by Reecey (Post 1434991)
EUREEEEEKA IVE GOT IT :D

here right in your "header" template search for this :

Code:

<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Once you've found it replace it with this :

Code:

<td align="center"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
And you will end up with the header being in the center like :
http://soundhabbo.com/forum/index.php?styleid=28

There ya go :D


I've been trying to center the header on my own website and this advise really helped. Thanks so much!! :D


All times are GMT. The time now is 10:38 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.01226 seconds
  • Memory Usage 1,806KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete