vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Moving the VB logo to the right? (https://vborg.vbsupport.ru/showthread.php?t=134414)

zkilzz 12-20-2006 07:42 AM

Moving the VB logo to the right?
 
Hello!
Right now the default for the logo placement is left. How do i move this over to the right side? Like the extra buttons here on vbulletin.org 'home' 'forum' 'mods' 'chat'

regards

Marius

ragtek 12-20-2006 07:57 AM

edt the header template

zkilzz 12-20-2006 08:01 AM

I know. But what to code. This my current template.

Code:

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

$_phpinclude_output

Here you can see my problem.



http://www.bilforumet.net/images/align.jpg

ragtek 12-20-2006 08:28 AM

change align="center"> into align="right">

zkilzz 12-20-2006 08:36 AM

Quote:

Originally Posted by ragtek (Post 1142094)
change align="center"> into align="right">

Sorry mate!

That turned it into this.

http://www.bilforumet.net/images/feil.jpg

rogersnm 12-20-2006 09:28 AM

Try:
HTML Code:

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

$_phpinclude_output


zkilzz 12-20-2006 09:34 AM

I fixed it.

Code:

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

$_phpinclude_output


rogersnm 12-20-2006 09:35 AM

Didn't I just post that code?

zkilzz 12-20-2006 09:43 AM

Okay now i have a new alignment problem!

I need to get the logo a bit down to align with the main table.


http://www.bilforumet.net/images/feil2.jpg

rogersnm 12-20-2006 09:45 AM

ok, just ignore me...

you could try:
HTML Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]">&nbsp;</td>
        <td align="$stylevar[right]" style="padding-top: 10px;"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->
<br>
<!-- content table -->
$spacer_open

$_phpinclude_output

Find padding-top: 10px; and change 10 to the amount of padding you want (experiment with it)

zkilzz 12-20-2006 09:46 AM

Quote:

Originally Posted by rogersnm (Post 1142113)
Didn't I just post that code?

Haha you did! I didn't see it until now!

rogersnm 12-20-2006 10:06 AM

lol, ok, I'll forgive you :p

zkilzz 12-20-2006 10:21 AM

Quote:

Originally Posted by rogersnm (Post 1142131)
lol, ok, I'll forgive you :p

I have tried to pad it but it only pushes the main table further down so it dont align again. Hmmm what to do?

rogersnm 12-20-2006 11:44 AM

you could try getting rid of the line break xD
HTML Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]">&nbsp;</td>
        <td align="$stylevar[right]"><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


zkilzz 12-21-2006 09:42 AM

Finally! :D Thanks guys! Now its only the imagemapping and text left:)


All times are GMT. The time now is 01:22 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.01434 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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