Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 11-12-2004, 08:33 PM
imported_traderx imported_traderx is offline
 
Join Date: Jul 2003
Location: Washington
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default adding to header

Hello... I would like to to add to the header of my site. I have created columns on the left and right. All works well on EVERY page till I add some thing to my header. The only page that doesn't work well is when I try to create a new thread (newthread.php, the same one I use to create this). The page will show up fine, but I am unable to type ANYTHING in the main body area, but I can type in a subject up above it. Be easy... this is my first header/template edit.

this is my header:
PHP Code:
<!-- logo -->
<a name="top"></a>
<script type="text/javascript">

/**************************************************  **
Start - added for image rollover
**************************************************  **/

function init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))  
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}
onload=init;
/**************************************************  **
End - added for image rollover
**************************************************  **/
</script>

</head>
<body>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="794"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="http://www.4xtraders.com/forum/images/main.gif" width="676" height="72" /></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="bottom"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="18" nowrap="nowrap" background="http://www.4xtraders.com/forum/images/blue_bottom_top.gif">&nbsp;</td>
          </tr>
        </table></td>
        <td>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><table width="794"  border="0" cellspacing="0" align="center" cellpadding="0">
                <tr>
                 <td width="118" height="23" nowrap="nowrap"><img src="http://www.4xtraders.com/forum/images/globe_bottom.gif" width="118" height="23" /></td>
                 <td width="100" height="23" nowrap="nowrap"><img src="http://www.4xtraders.com/forum/images/gloss_w.gif" hsrc="http://www.4xtraders.com/forum/images/gloss_b.gif" width="100" height="23" /></td>
                 <td width="70" height="23" nowrap="nowrap"><img src="http://www.4xtraders.com/forum/images/stud_w.gif" hsrc="http://www.4xtraders.com/forum/images/stud_b.gif" width="70" height="23" /></td>
                 <td width="71" height="23" nowrap="nowrap"><img src="http://www.4xtraders.com/forum/images/review_w.gif" hsrc="http://www.4xtraders.com/forum/images/review_b.gif" width="71" height="23" /></td>
                 <td width="70" height="23" nowrap="nowrap"><a href="http://www.4xtraders.com/forum" target="_blank"><img src="http://www.4xtraders.com/forum/images/forum_w.gif" alt="Forex Discussion Board" width="70" height="23" border="0" hsrc="http://www.4xtraders.com/forum/images/forum_b.gif" /></a></td>
                 <td width="71" height="23" nowrap="nowrap"><img src="http://www.4xtraders.com/forum/images/resource_w.gif" hsrc="http://www.4xtraders.com/forum/images/resource_b.gif" width="71" height="23" /></td>
                 <td width="70" height="23" nowrap="nowrap"><img src="http://www.4xtraders.com/forum/images/demo_new_w.gif" hsrc="http://www.4xtraders.com/forum/images/demo_new_b.gif" width="106" height="23" /></td>
                 <td width="70" height="23" nowrap="nowrap"><img src="http://www.4xtraders.com/forum/images/blank.gif" width="70" height="23" /></td>
                 <td width="118" height="23"nowrap="nowrap">&nbsp;</td>

              </tr>
              </table></td>
            </tr>
            <tr>
              <td><table width="100%"  border="0" cellpadding="0" cellspacing="0" id="table1">
                <tr>
                  <td width="122" height="18" nowrap="nowrap" background="http://www.4xtraders.com/forum/images/blue_bottom_top.gif">&nbsp;</td>
                  <td width="583" height="18" nowrap="nowrap" background="http://www.4xtraders.com/forum/images/blue_bottom_top.gif">&nbsp;</td>
                  <td width="264" align="right" nowrap="nowrap" background="http://www.4xtraders.com/forum/images/blue_bottom_top.gif"><strong><div id="date"><?php echo (strftime ("%A, %d %B %Y"time()+($mosConfig_offset*60*60))); ?></div></strong></td>
                  <td width="122" height="18" nowrap="nowrap" background="http://www.4xtraders.com/forum/images/blue_bottom_top.gif">&nbsp;<script language="JavaScript1.2" type="text/JavaScript1.2">
Function dated(){
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var time = hours + '  ' +minutes;
var today = now.getDate();
var month =  now.getMonth();
switch(month){
case 0 :
monthname='January';
break;
case 1 :
monthname='February';
break;
case 2 :
monthname='March';
break;
case 3 :
monthname='April';
break;
case 4 :
monthname='May';
break;
case 5 :
monthname='June';
break;
case 6 :
monthname='July';
break;
case 7 :
monthname='August';
break;
case 8 :
monthname='September';
break;
case 9 :
monthname='October';
break;
case 10 :
monthname='November';
break;
case 11 :
monthname='December';
break;
}
document.write(''+today +' '+ monthname+' ');
}
//use
dated();
            </script></td>
                </tr>
              </table></td>
            </tr>
        </table></td><td valign="bottom"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="18" nowrap="nowrap" background="http://www.4xtraders.com/forum/images/blue_bottom_top.gif">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>

<!-- /logo -->

<!-- content table -->
<!-- begin left column -->
<table width="stylevar[outertablewidth]" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1%" align="center" valign="top">

THE CONTENTS OF YOUR LEFT COLUMN
</td>
<td>
<!-- end left column -->
$spacer_open

$_phpinclude_output
Any Help would be great as I realllllly want this in my header so I can have it on every page. let me know if you need any more info.
Coll
Reply With Quote
  #2  
Old 11-13-2004, 04:08 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since you've got a body tag in your header, you'll need to remove the body tag in EVERY OTHER template that contains it if the header is called. And you'll need to write some conditional that will insert the headinclude template where it's needed. Essentially by starting the body in the header you've broken some areas and turn your overall site code to mush in some areas.
Reply With Quote
  #3  
Old 11-13-2004, 05:04 PM
imported_traderx imported_traderx is offline
 
Join Date: Jul 2003
Location: Washington
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah I have seen that as I didn't before. I have removed it and decided to put my navbar links in my header as welll, and removed the java script rollover and now using css rollover. My once site mod, but not too bad

www.4xtraders.com/forum

I need to start working on the main index... though I am not sure if I will use vBAdvanced or not.....

I only wish I know how to call stuff like the last 5 threads, polls, journal entries, calandar events.....
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 03:40 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.04037 seconds
  • Memory Usage 2,198KB
  • 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
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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