Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2010, 11:17 PM
Naan-Kadavul's Avatar
Naan-Kadavul Naan-Kadavul is offline
 
Join Date: Sep 2009
Location: Singpore
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to make a banner in center in vbulletin theme ?

How to make a banner in center in vbulletin theme ?

I want to make my banner align in the center instead of right/left side.

How can i do that ?

Here is my header code

Quote:
<!-- 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]" 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]
Someone Help with this issue.

Thanks,
NK
Reply With Quote
  #2  
Old 07-19-2010, 12:24 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

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>
</tr><tr>
<td align="center" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']"><div align="center"> $ad_location[ad_header_logo] </div><else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->


<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]
Reply With Quote
  #3  
Old 07-19-2010, 01:41 AM
Naan-Kadavul's Avatar
Naan-Kadavul Naan-Kadavul is offline
 
Join Date: Sep 2009
Location: Singpore
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah dude..it works..
check : www.moviejockey.com/forum

Thank you so much
NK
Reply With Quote
  #4  
Old 07-30-2010, 02:31 AM
Naan-Kadavul's Avatar
Naan-Kadavul Naan-Kadavul is offline
 
Join Date: Sep 2009
Location: Singpore
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still in some of my friend's pc its showing the banner on the left hand side. why is it so ?
Reply With Quote
  #5  
Old 07-30-2010, 07:10 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My bad... replace the <!--- logo --> code with this instead:

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><tr>
<td align="center" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']"><div align="center"> $ad_location[ad_header_logo] </div><else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->
That should do it, I had left an align=left in there.
Reply With Quote
  #6  
Old 08-03-2010, 03:34 AM
Avian321 Avian321 is offline
 
Join Date: Jul 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]"><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]
Someone Help with this issue.
If you still have problems afterwards then try that code.
Reply With Quote
  #7  
Old 08-03-2010, 04:51 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are using IE browser? Those members may be using FF browser? I had this issue in the past, can't remember what I did to correct it...was to many edits ago
Reply With Quote
  #8  
Old 08-06-2010, 05:32 AM
Naan-Kadavul's Avatar
Naan-Kadavul Naan-Kadavul is offline
 
Join Date: Sep 2009
Location: Singpore
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using mozilla firefox only..is there any solutions to this..??
Reply With Quote
  #9  
Old 08-06-2010, 10:54 PM
Cipher5 Cipher5 is offline
 
Join Date: Apr 2009
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use this code for most my headers,
works in IE, fire fox and chrome, etc.



PHP Code:
<!-- Header-->


<
div align="center">

<
table width="1200" border="0" cellpadding="0" cellspacing="0"  class="border">

     <
td style="background-image:url($stylevar[imgdir_misc]/headerx.png); background-repeat:repeat-x;"><table width="1" border="0" align="center" cellpadding="0" cellspacing="0">
      <
tr>

        <
td valign="top"><a href="index.php"><img src="$stylevar[imgdir_misc]/header.png" alt="" width="1200" height="300" border="0" /></a></td>
      
    </
tr>
     </
table>


<!-- 
Header End--> 

This centers the header, and you can change this to your image name or from png to jpg or gif, etc change the sizes to fit your needs, hope this helps you. header should be placed in your skins misc dir.

Any questions visit CheykaWebDesign com

Ed

_____________________________________________
Need Affordable Hosting? Checkout CheykaWebDesign.com
• Unlimited Bandwidth, Unlimited Space, Mysql Databases, FTP Access, etc. www.CheykaWebDesign.com We can move and host your website for you! Contact Sales@CheykaWebDesign.com
Reply With Quote
  #10  
Old 08-06-2010, 11:24 PM
Naan-Kadavul's Avatar
Naan-Kadavul Naan-Kadavul is offline
 
Join Date: Sep 2009
Location: Singpore
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But, where to put the code actually ?? Please see my code in the previous post.

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

Quote:
Originally Posted by BirdOPrey5 View Post
My bad... replace the <!--- logo --> code with this instead:

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><tr>
<td align="center" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']"><div align="center"> $ad_location[ad_header_logo] </div><else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->
That should do it, I had left an align=left in there.


Works Superbly Perfect, Thanks Brother !!!
!

Thanks to everyone who have helped me.. !!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04574 seconds
  • Memory Usage 2,269KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete