vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Navbar color? (https://vborg.vbsupport.ru/showthread.php?t=118615)

UncoderMom 06-14-2006 11:18 PM

Navbar color?
 
When I add new code to navbar on my site it breaks the background color on some of my templates!

Also, how do I center a logo in header? currently its =left

my broken navbar.. thanks!

Ntfu2 06-15-2006 04:38 AM

change =left to =center :) try that

remove the class="vbmenu_control" when you are doing the template edit

example
Code:

<td class="vbmenu_control"><a href="arcade.php">Arcade</a></td>
should be
Code:

<td><a href="arcade.php">Arcade</a></td>
you'll have to change that on any theme the <td class="vbmenu_control"><a href="arcade.php">Arcade</a></td> doesnt work on ;)

UncoderMom 06-15-2006 04:21 PM

Thank you!! Fixed my broken templates in a jiffy!! I cant believe I didnt ask sooner!


now for my header logo issue, lol. I actually dont have a =left her is my code....
PHP 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 -->

<!-- 
content table -->
$spacer_open

$_phpinclude_output 

what do I cange to make the logo center?

Nevermind. I played witht he code and figured it outI changed it to...

PHP 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]">
<
img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></tr></table>
<!-- /
logo -->

<!-- 
content table -->
$spacer_open

$_phpinclude_output 


but now I would like to add a left and right image that reapeats so that the image stretches :)

SaintDog 06-15-2006 05:38 PM

You can use CSS for the background. Something such as:

Code:

style="background: #FFFFFF url("./path/to/image.gif");"
Simply add that to the TD cell you wish to have the image repeat and swicth out the background image for the other TD.

UncoderMom 06-16-2006 12:12 AM

That is some useful info! but I dont know if thats what I need for logo streaching..take a sliver ov the logo end pieces then name them something like Logo_left and Logo_right then repeat I dont know templating very well only lagistics. I assume it will be some kind of

<img src="path/to/logo_right.gif" border="0" repeat-y;

that is a very ruff guess lol, but it should also be =right and vis versa for the left logo image then the meet up with the center logo image.....Im I making any sence lol

I think Im gonna add a few backgrounds to some of my styles now though lol


All times are GMT. The time now is 03:37 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.01023 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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