Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-25-2007, 04:59 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Header/Main Table Width

I've run into a bit of a problem. To have my forum 'header' match my website I changed my header template as follows:
PHP Code:
<!-- logo -->
<
script type="text/JavaScript">
<!--
function 
MM_preloadImages() { //v3.0
  
var d=document; if(d.images){ if(!d.MM_pd.MM_p=new Array();
    var 
i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0i<a.lengthi++)
    if (
a[i].indexOf("#")!=0){ d.MM_p[j]=new Imaged.MM_p[j++].src=a[i];}}
}

function 
MM_swapImgRestore() { //v3.0
  
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function 
MM_findObj(nd) { //v4.01
  
var p,i,x;  if(!dd=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    
d=parent.frames[n.substring(p+1)].documentn=n.substring(0,p);}
  if(!(
x=d[n])&&d.allx=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(
i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!
&& d.getElementByIdx=d.getElementById(n); return x;
}

function 
MM_swapImage() { //v3.0
  
var i,j=0,x,a=MM_swapImage.argumentsdocument.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((
x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrcx.oSrc=x.srcx.src=a[i+2];}
}
//-->
</script>
<
onload="MM_preloadImages('/images/weyr_over.gif','/images/fsp_over.gif','/images/holdshalls_over.gif','/images/clubpol_over.gif')">
<
div align="center">
<
table border="0" cellpadding="0" cellspacing="0">
<
tbody>
<
tr>
<
td colspan="3" align="left" valign="top"><img
src
="../images/header.gif" alt="" border="0" height="72" width="800"><br>
<
a title="Dawnsisters Weyr - Home"
href="http://dawnsistersweyr.net/index.html"><img
src
="../images/home_on.gif" alt="" name="home_up" border="0"
height="71" width="104"></a><img
src
="../images/WS-INTERFACE-DONE_03.gif" alt="" border="0" height="71"
width="44"><a title="Dawnsisters Weyr - The Weyr"
href="http://dawnsistersweyr.net/weyr/index.html"><img
src
="../images/weyr_up.gif" alt="THE WEYR" name="weyr_up"
onmouseover="MM_swapImage('weyr_up','','/images/weyr_over.gif',1)"
onmouseout="MM_swapImgRestore()" border="0" height="71" width="145"></a><img
src
="../images/WS-INTERFACE-DONE_05.gif" alt="" border="0" height="71"
width="14"><a title="Dawnsisters Weyr - The FSP"
href="http://dawnsistersweyr.net/fsp/index.html"><img
src
="../images/fsp_up.gif" alt="THE FSP" name="fsp_up"
onmouseover="MM_swapImage('fsp_up','','/images/fsp_over.gif',1)"
onmouseout="MM_swapImgRestore()" border="0" height="71" width="113"></a><img
src
="../images/WS-INTERFACE-DONE_07.gif" alt="" border="0" height="71"
width="37"><a title="Dawnsisters Weyr - Holds &amp; Halls"
href="http://dawnsistersweyr.net/holds/index.html"><img
src
="../images/holdshalls_up.gif" alt="HOLDS &amp; HALLS"
name="holdshalls_up"
onmouseover="MM_swapImage('holdshalls_up','','/images/holdshalls_over.gif',1)"
onmouseout="MM_swapImgRestore()" border="0" height="71" width="116"></a><img
src
="../images/WS-INTERFACE-DONE_09.gif" alt="" border="0" height="71"
width="35"><a title="Dawnsisters Weyr - Club&nbsp;Policies"
href="http://dawnsistersweyr.net/club/index.html"><img
src
="../images/clubpol_up.gif" alt="CLUB POLICIES" name="clubpol_up"
onmouseover="MM_swapImage('clubpol_up','','/images/clubpol_over.gif',1)"
onmouseout="MM_swapImgRestore()" border="0" height="71" width="179"></a><img
src
="../images/WS-INTERFACE-DONE_11.gif" alt="" border="0" height="71"
width="13"></td>
</
tr>
<
tr>
<
td style="background-color: rgb(192, 179, 120);" align="center"
bgcolor="#302808" valign="top" width="202"><img
src
="http://dawnsistersweyr.net/test/images/header/barleft.gif" height="68" width="203"></td>
<
td align="left" bgcolor="#c0b378" valign="top" width="21"><img
src
="/images/WS-INTERFACE-DONE_13b.gif" height="30" width="21"></td>
<
td align="left" bgcolor="#c0b378" valign="top" width="577"><img
src
="http://dawnsistersweyr.net/test/images/header/bottom_header.gif" alt="" border="0" height="68"
width="577"> </td>
</
tr>
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<!-- /
logo -->

<!-- 
content table -->
$spacer_open

$_phpinclude_output 
Prior to making this change I used a screenshot as a single header image until I could figure out how to use the website multi-image interface. Anyway, before I made this header change the forum main table was 'set' to 800px. Now, since I changed the header code it's full page width. I checked the AdminCP>Styles & Templates>Style Manage>All Style Options>Sizes & Dimensions and it's still indicating the 800 px... but as you can maybe see it's spread all the way across the page. How do I fix this to where it's the 800px to line up with the overall dimension of my header????? there are also some 'breaks' i.e. between the 'header' and the next 'table' that shouldn't be there. Help!

Edit: Added attachment pics - 'old' forumhome/'new' forumhome/'new' forumdisplay/'new' showthread
Attached Images
File Type: png orig-forumhome.png (102.5 KB, 0 views)
File Type: png forumhome.png (94.4 KB, 0 views)
File Type: png forumdisplay.png (90.0 KB, 0 views)
File Type: png showthread.png (96.8 KB, 0 views)
Reply With Quote
  #2  
Old 08-25-2007, 10:51 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

n/m I finally figured it out by accident I guess, not really sure *what* I did but it's working and looks like it 'should'.
Reply With Quote
Reply


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 12:08 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.03584 seconds
  • Memory Usage 2,265KB
  • Queries Executed 14 (?)
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
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (4)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete