vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   newbie question: center title image (https://vborg.vbsupport.ru/showthread.php?t=88625)

imported_dutchie 03-12-2004 03:23 PM

newbie question: center title image
 
How?? I have been sent over to other forums, but couldn't find the answer there either.... Please help me out!

I want to center align the title image on my VB 3 forum... HOW?!?

MindTrix 03-12-2004 09:03 PM

This section is for releases only, not support.

However i just did this

Open HEADER template and find
PHP Code:

<!-- logo --> 

place
PHP Code:

 <center

before it.

Then find
PHP Code:

<!-- /logo --> 

and place
PHP Code:

</center

behind it

imported_dutchie 03-12-2004 09:36 PM

thnx, will try that!! thnx again!

MindTrix 03-12-2004 09:40 PM

Goodluck :)

Brad 03-12-2004 09:48 PM

There are many ways to do this, personaly I use

HTML Code:

<div align="center">text</div>

MindTrix 03-12-2004 09:54 PM

Yeah thats probably the best way :)

imported_dutchie 03-14-2004 09:51 AM

I tried it with
<div align="center">text</div>
and that worked.

Thanks for helping me out!

imported_Ashkarita 03-16-2004 06:37 PM

1 Attachment(s)
Is this the same thing as trying to center the top banner? I have tried everything under the sun to get this image to center and NOTHING has worked. I just tried what you suggested and the first one with straight center codes didn't work, and I'm not sure about the second one.

I swear to God I'm going to be labeled screencap problem queen, but this I attached a screencap. I want to get that banner to center on the page. I followed Zachery's rules at vBulletin.com by taking out the &nbsp's and that didn't work, so I'm lost.

To be quite honest I think that my board just enjoys making my life more difficult. It's like "hrm, I feel like letting ::chooses:: THIS work, but, umm, NOT this!" I swear it has a mind of its own! Moody, moody, moody :p

MindTrix 03-16-2004 06:39 PM

If you PM me your boards URL and admin username and pass i will do it for you.

MindTrix 03-16-2004 07:00 PM

Ashkarita = Sorted for her.

imported_Ashkarita 03-16-2004 07:09 PM

MindTrix, you're the greatest person alive and I will forever love you for helping me out! I'm brand new to vB, and you're awesome. Thanks for being patient and willing to help a newbie!

*snaps*

MindTrix 03-16-2004 07:13 PM

Lol bless :) Thank you

We are all Newbies remember, some just no more than others. Remember my offer in the PM and ill stand by it ;)

(everyone else -- no it was not a dirty offer)


What was the SNAP for?

Ryan Ashbrook 04-04-2005 10:38 PM

Quote:

Originally Posted by Brad
There are many ways to do this, personaly I use

HTML Code:

<div align="center">text</div>

Sorry to revive a really old thread but I did a search and found this but I'm not sure where to put this code here. I tired the first suggestion and it didn't work for me.
The annoying thing is that I've done this before but I changed bb programs for a while and I've forgotten how to do it in vB.
Thanks very much to whoever can help me out!

Hornstar 08-18-2005 08:44 PM

im also in need of centering my main page banner, nothing seems to work, ive tried about 3 different ways, and when i do, the banner just comes up as a link instead of the pic.

Zero Tolerance 08-18-2005 09:07 PM

Do what MindTrix's post said, only use <div align="center"> instead of "<center>" and "</div>" instead of "</center>" (center tags have been depreciated..)

- Zero Tolerance

dplevy 12-07-2007 05:57 PM

i cant get this to work either. what am i going wrong here?

RMFlyFish 12-10-2007 07:51 PM

I am having the same trouble getting my header to center. Here is my code.

Code:

<div align="center"><!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
    <td align="$stylevar[left]"><a href="http://www.rockymountainflyfish.com"><img src="http://coloradomountainfishing.com/images/logo.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
    <td align="$stylevar[right]">
        &nbsp;
    </td>
</tr>
</table>
<!-- /logo --></div>

<!-- content table -->
$spacer_open

$_phpinclude_output


RMFlyFish 12-16-2007 02:47 AM

bump

--------------- Added [DATE]1197857844[/DATE] at [TIME]1197857844[/TIME] ---------------

Does somebody have another solution to this?

valdet 12-21-2007 11:31 PM

Hello RMFlyfish, try these little replacements

Quote:

<tr>
<td align="$stylevar[center]"><a href="http://www.rockymountainflyfish.com"><img src="http://coloradomountainfishing.com/images/logo.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
If that doesnt work then just remove the stylevar setting and add the <center></center> around your image

Quote:

<td><a href="http://www.rockymountainflyfish.com"><center><img src="http://coloradomountainfishing.com/images/logo.gif" border="0" alt="$vboptions[bbtitle]" /></center></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
This one will also work.. :D

Quote:

<td><a href="http://www.rockymountainflyfish.com"><img src="http://coloradomountainfishing.com/images/logo.gif" border="0" align="center" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
Enjoy your choices..
Val.

RMFlyFish 12-22-2007 12:23 PM

Thanks a million. The second one worked perfect.

Jcvaz 10-10-2008 01:56 AM

sorry but i been trying to fix the following I have looked up and down this forum and cant seem to center the img :( can you guys help? here is the way the header is set.

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[center]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

--------------- Added [DATE]1223607767[/DATE] at [TIME]1223607767[/TIME] ---------------

oh i seemed to have fixed it but prob have way to many centers in there lol

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[center]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><center><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></center></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]


All times are GMT. The time now is 01:51 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.01297 seconds
  • Memory Usage 1,768KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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