Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 08-20-2004, 07:23 PM
imported_John Diver imported_John Diver is offline
 
Join Date: Nov 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with coding on header, just seemed to appear

Hey,
Please view www.HostingRefuge.com/forum (Do not post on this forum, the main site is moving from www.HostingRefuge.com to the new directory in the next few days.)

The forums looks fine here on my local server, but when I did an upgrade to 3.0.1 the header went a bit wrong.
The image postions are all wrong and I am not sure what has happened.
The site was working fine when I used the same header template but after upgrading a vb2 database to vb3, this happened.

Anyone know what is wrong?

Plus, what do I need to do to use HTML in the forum descriptions?
Remember I had to do something in vb2.

Thanks
John
Reply With Quote
  #2  
Old 08-21-2004, 12:38 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot view your site, it keeps prompting a download file.
Reply With Quote
  #3  
Old 08-21-2004, 04:41 AM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, just at a glance I can see you're missing a couple table cells. Note the tested table below has 3 table rows. The top and bottom table row contain 3 table cells. The middle table row only contains 1 table cell. Adding the colspan="3" where indicated may help. I didn't scour the code for any other problems so more may exist.

HTML Code:
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
  <tr> 
    <td width="853" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="26%" height="147" rowspan="2" valign="top"><img src="images/HR/hdr_01.gif" width="250" height="93"></td>
          <td width="1%" rowspan="2"><img src="images/HR/hdr_02.gif" width="58" height="147"></td>
          <td width="73%" height="84" valign="top" bgcolor="415B8F"><img src="images/HR/hdr_03.gif" width="100%" height="15"><br> 
            <br> </td>
        </tr>
        <tr> 
          <td height="62" valign="bottom"><img src="images/HR/hdr_06.gif" width="92" height="62"><img src="images/HR/hdr_07.gif" width="191" height="62"><img src="images/HR/hdr_08.gif"><img src="images/HR/hdr_09.gif" width="254" height="62"></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
change the middle tr to:
HTML Code:
    <tr> 
          <td height="62"  colspan="3" valign="bottom"><img src="images/HR/hdr_06.gif" width="92" height="62"><img src="images/HR/hdr_07.gif" width="191" height="62"><img src="images/HR/hdr_08.gif"><img src="images/HR/hdr_09.gif" width="254" height="62"></td>
        </tr>
I also wouldn't code a table cell with an 853pixel width. You're pretty much ensuring than 50% of your users will need to scroll horizontally tosee the entire page. Not good.
Reply With Quote
  #4  
Old 08-21-2004, 04:48 PM
imported_John Diver imported_John Diver is offline
 
Join Date: Nov 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tony,
Server may have been updating when you tried, PHP was down for an update for one minute last night.
Scott, thanks for the help, tried that but still getting the same problem.
It looks OK from viewing it in dreamweaver and it was working until I updated vBulletin to 3.0.1 so that was the main reason I couldn't work out the problem.

Thanks
John
Reply With Quote
  #5  
Old 08-21-2004, 08:08 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay further examination... youv'e got 2 head tags.. 2 body tags..2 Doctypes... . You're code is a mess.

Here is a correct, working version of your header table. I should note that your table needs to be at LEAST 1002 pixels wide for your images to work properly and for them to fit and I've coded the table with that width. You may want to rethink your images so they can fit into the standard 800x600 browser window.

HTML Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="1002" cellpadding="0" cellspacing="0" align="center">
  <tr> 
    <td align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td rowspan="2" valign="top" align="right"><img src="images/hdr_01.gif" width="250" height="93"></td>
		<td rowspan="2" align="right"><img src="images/hdr_02.gif" width="58" height="147"></td>          
<td valign="top" bgcolor="#415B8F" align="right"><img src="images/hdr_03.gif" width="100%" height="15"></td>
        </tr>
        <tr> 
<td colspan="3" valign="bottom" bgcolor="#415B8F" align="right"><img src="images/hdr_06.gif" width="92" height="62"><img src="images/hdr_07.gif" width="191" height="62"><img src="images/hdr_08.gif"><img src="images/hdr_09.gif" width="254" height="62"></td> 
</tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
<!-- /logo -->
Aslo note I changed the image directory so I could test the images here. (I removed the HR directory from image paths)
Reply With Quote
  #6  
Old 08-22-2004, 10:19 AM
imported_John Diver imported_John Diver is offline
 
Join Date: Nov 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Scott,
Thank you very much, that was a great help and I got it working
Will hopefully have everything moved over to vb3 within the next 2 days.
Really appreciate your help

John
Reply With Quote
  #7  
Old 08-22-2004, 04:10 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad I could help John.
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 09:13 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.04070 seconds
  • Memory Usage 2,235KB
  • 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
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete