vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Aligning forum body and logo (https://vborg.vbsupport.ru/showthread.php?t=149079)

Miller85 06-06-2007 09:32 PM

Aligning forum body and logo
 
I realise it's probably a really simple question but I have extremely limited coding skills and similarly have been unable to find anything through searching here. If I've missed an obvious thread then apologies...

Anyway, a friend sorted the basic style for my forum (http://forums.airsofters.co.uk) when it was released. He's since "disappeared" and now we're looking at restyling the forum to look a bit more interesting. The problem is now the forum stretches to fill the browser window. Ideally we'd like it centred, with an underlying graphic visible on one side.

Essentially, the aim is something like this:

http://entropiaforum.com/forums/

Centred logo, centred body, background graphic.

Through really awful hit and miss methods we've at least got the idea of a background graphic in place:

http://forums.airsofters.co.uk/index.php?styleid=3


That's clearly a long, long way from ideal though as everything is completely buggered. Any input on how we can achieve the desired look would be great, thanks

David

no mods 06-06-2007 10:42 PM

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Put that for your header template, it will center what ever your logo is.

Miller85 06-06-2007 11:11 PM

Thanks, I will try that shortly - unfortunately it seems the server my forum is on is currently offline lol.

Any idea on aligning the main body to the centre too..?

Thanks again

Okay, I swapped out the header code with the code you posted - the logo hasn't moved.

From the AdminCP I clicked Styles and Templates > Style Manager > Edit all settings > and then pasted it in the header box, replacing the previous code. Is this not the right place?


All times are GMT. The time now is 03:30 AM.

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.01961 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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