Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2008, 09:47 AM
Reece^B Reece^B is offline
 
Join Date: Jan 2006
Location: Essex
Posts: 406
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Banner Align

Hey,

Im using this code to align my banner right.
However I can't get it to align far right.

<td align="right">
$random_banner[1]
</td>

Preview
http://img516.imageshack.us/my.php?image=pbcrq6.jpg
Reply With Quote
  #2  
Old 10-31-2008, 02:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does the table look like that it's in - is it's width 100%? Is there another column after the one your put the banner in? It's very hard to say what the problem is since we can't actually look at the page source.
Reply With Quote
  #3  
Old 11-01-2008, 11:42 AM
Reece^B Reece^B is offline
 
Join Date: Jan 2006
Location: Essex
Posts: 406
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The random banner code made by Jake Bunce from here.

http://www.vbulletin.com/forum/showthread.php?t=170826

The source code from the header template.

Code:
<!-- START HEADER -->
<body onLoad="MM_preloadImages('images/2e_forest/2EVOLVE_forestROLL_04.gif','images/2e_forest/2EVOLVE_forestROLL_05.gif','images/2e_forest/2EVOLVE_forestROLL_06.gif','images/2e_forest/2EVOLVE_forestROLL_07.gif','images/2e_forest/2EVOLVE_forestROLL_09.gif','images/2e_forest/2EVOLVE_forestROLL_10.gif')"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="426" height="147" valign="top"><table width="100" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="426" height="147" valign="top"><img src="images/2e_forest/2EVOLVE_forest_01.png" width="426" height="147"></td>
<td align="$stylevar[right]" id="header_right_cell">
<td align="right">
			$random_banner[1]
	</td>

        </tr>

    </table></td>
    <td width="253">&nbsp;</td>
    <td width="158">&nbsp;</td>
  </tr>
  <tr>
    <td height="35" colspan="2" valign="top"><table width="100" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="88" height="35" valign="top"><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','images/2e_forest/2EVOLVE_forestROLL_04.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_04.gif" alt="Frontpage" name="Image2" width="88" height="35" border="0"></a></td>
          <td width="108" valign="top"><a href="usercp.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/2e_forest/2EVOLVE_forestROLL_05.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_05.gif" alt="Control Panel" name="Image3" width="108" height="35" border="0"></a></td>
          <td width="113" valign="top"><a href="memberlist.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/2e_forest/2EVOLVE_forestROLL_06.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_06.gif" alt="Members" name="Image4" width="113" height="35" border="0"></a></td>
          <td width="104" valign="top"id="navbar_search"><a href="search.php$session[sessionurl_q]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/2e_forest/2EVOLVE_forestROLL_07.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_07.gif" alt="Search Boards" name="Image5" width="104" height="35" border="0"></a><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></td>
          <td width="85" valign="top"><a href="faq.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','images/2e_forest/2EVOLVE_forestROLL_08.gif',0)"><img src="images/2e_forest/2EVOLVE_forest_08.gif" alt="Faq" name="Image6" width="85" height="35" border="0"></a></td>
          <td width="91" valign="top"id="usercptools"><a href="$show[nojs_link]#usercptools" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','images/2e_forest/2EVOLVE_forestROLL_09.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_09.gif" alt="Quicklinks" name="Image7" width="91" height="35" border="0"></a><script type="text/javascript"> vbmenu_register("usercptools", true); </script></td>
          <td width="90" valign="top"><a href="register.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','images/2e_forest/2EVOLVE_forestROLL_10.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_10.gif" alt="Register!" name="Image8" width="90" height="35" border="0"></a></td>
        </tr>
      
    </table></td>
    <td>&nbsp;</td>
  </tr>
</table>
<!-- END HEADER -->


<!-- content table -->
$spacer_open

$_phpinclude_output
Reply With Quote
  #4  
Old 11-01-2008, 04:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It won't align completely right because you have two other columns after it which each have a width (one of 253, the other 158). What are they for - why do you have them? Get rid of them and do a colspan="3" in the first. (Actually, get rid of them, and the extra one below and redo the table columns - you only need one column in each row.)
Reply With Quote
  #5  
Old 11-02-2008, 04:18 PM
Reece^B Reece^B is offline
 
Join Date: Jan 2006
Location: Essex
Posts: 406
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

humm, I can't get it to work.

How should that code look?
Reply With Quote
  #6  
Old 11-02-2008, 04:25 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reece^B View Post
humm, I can't get it to work.

How should that code look?
Post what you tried and we can point out what is wrong.
Reply With Quote
  #7  
Old 11-02-2008, 05:15 PM
Reece^B Reece^B is offline
 
Join Date: Jan 2006
Location: Essex
Posts: 406
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<!-- START HEADER -->
<body onLoad="MM_preloadImages('images/2e_forest/2EVOLVE_forestROLL_04.gif','images/2e_forest/2EVOLVE_forestROLL_05.gif','images/2e_forest/2EVOLVE_forestROLL_06.gif','images/2e_forest/2EVOLVE_forestROLL_07.gif','images/2e_forest/2EVOLVE_forestROLL_09.gif','images/2e_forest/2EVOLVE_forestROLL_10.gif')"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="426" height="147" valign="top"><table width="100" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="426" height="147" valign="top"><img src="images/2e_forest/2EVOLVE_forest_01.png" width="426" height="147"></td>
<td align="$stylevar[right]" id="header_right_cell">
<td align="right">
			$random_banner[1]
	</td>

        </tr>

    </table></td>
    <td colspan="3"></td>
  </tr>
  <tr>
    <td height="35" colspan="2" valign="top"><table width="100" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="88" height="35" valign="top"><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','images/2e_forest/2EVOLVE_forestROLL_04.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_04.gif" alt="Frontpage" name="Image2" width="88" height="35" border="0"></a></td>
          <td width="108" valign="top"><a href="usercp.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/2e_forest/2EVOLVE_forestROLL_05.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_05.gif" alt="Control Panel" name="Image3" width="108" height="35" border="0"></a></td>
          <td width="113" valign="top"><a href="memberlist.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/2e_forest/2EVOLVE_forestROLL_06.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_06.gif" alt="Members" name="Image4" width="113" height="35" border="0"></a></td>
          <td width="104" valign="top"id="navbar_search"><a href="search.php$session[sessionurl_q]" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/2e_forest/2EVOLVE_forestROLL_07.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_07.gif" alt="Search Boards" name="Image5" width="104" height="35" border="0"></a><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></td>
          <td width="85" valign="top"><a href="faq.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','images/2e_forest/2EVOLVE_forestROLL_08.gif',0)"><img src="images/2e_forest/2EVOLVE_forest_08.gif" alt="Faq" name="Image6" width="85" height="35" border="0"></a></td>
          <td width="91" valign="top"id="usercptools"><a href="$show[nojs_link]#usercptools" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','images/2e_forest/2EVOLVE_forestROLL_09.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_09.gif" alt="Quicklinks" name="Image7" width="91" height="35" border="0"></a><script type="text/javascript"> vbmenu_register("usercptools", true); </script></td>
          <td width="90" valign="top"><a href="register.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','images/2e_forest/2EVOLVE_forestROLL_10.gif',1)"><img src="images/2e_forest/2EVOLVE_forest_10.gif" alt="Register!" name="Image8" width="90" height="35" border="0"></a></td>
        </tr>
      
    </table></td>
    <td>&nbsp;</td>
  </tr>
</table>
<!-- END HEADER -->


<!-- content table -->
$spacer_open

$_phpinclude_output
Reply With Quote
  #8  
Old 11-02-2008, 05:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The way you did it makes a total of four columns:

HTML Code:
  <tr>
    <td colspan="3" width="426" height="147" valign="top"><table width="100" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="426" height="147" valign="top"><img src="images/2e_forest/2EVOLVE_forest_01.png" width="426" height="147"></td>
<td align="$stylevar[right]" id="header_right_cell">
<td align="right">
			$random_banner[1]
	</td>

        </tr>

    </table></td>
  </tr>
You do have the top column width set to 426 and then the first column in the table also set to 426. That makes no sense. I'm not sure why you do that or what sort of affect that is going to have here. Why are you doing that? You may want to rethink the html for your table.
Reply With Quote
  #9  
Old 11-03-2008, 09:46 AM
Reece^B Reece^B is offline
 
Join Date: Jan 2006
Location: Essex
Posts: 406
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It wasn't me who coded the style, this code you see is what it had originally.
Reply With Quote
  #10  
Old 11-03-2008, 09:57 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That coding is to messed up, you need to recode that completely.
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:22 PM.


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.05200 seconds
  • Memory Usage 2,269KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)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_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