473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

where do i put the <head> tag here?

?>
<meta http-equiv="Refresh" content="300" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />

<?php
$doPrintBNLWN = false;
include("BNLWN-mesomap.php");
print $BNLWN_CSS; ?>
</head>
<body>
<?php print $BNLWN_MAP; print $BNLWN_TABLE; ?>
<?php
Attached Files
File Type: txt wxbenelux1.php.txt (2.8 KB, 549 views)
Apr 23 '11 #1

✓ answered by JKing

After closer inspection of the page I see you have a center aligned layout far below all the info and date for the page. I am right in assuming that the problem is your content(the map and the date) is not inside your page?

If this is the case you need to modify the first template you posted.

You need to move line 49 to inside your main div(around line 61).
This is the line in question:
Expand|Select|Wrap|Line Numbers
  1. <?php print $BNLWN_MAP; print $BNLWN_TABLE; ?> 
  2.  
This is the code with the line moved:
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. ############################################################################
  3. # A Project of TNET Services, Inc. and Saratoga-Weather.org (WD-World template set)
  4. ############################################################################
  5. #
  6. #   Project:    Sample Included Website Design
  7. #   Module:     sample.php
  8. #   Purpose:    Sample Page
  9. #   Authors:    Kevin W. Reed <kreed@tnet.com>
  10. #               TNET Services, Inc.
  11. #
  12. #     Copyright:    (c) 1992-2007 Copyright TNET Services, Inc.
  13. ############################################################################
  14. # This program is free software; you can redistribute it and/or
  15. # modify it under the terms of the GNU General Public License
  16. # as published by the Free Software Foundation; either version 2
  17. # of the License, or (at your option) any later version.
  18. #
  19. # This program is distributed in the hope that it will be useful,
  20. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22. # GNU General Public License for more details.
  23. #
  24. # You should have received a copy of the GNU General Public License
  25. # along with this program; if not, write to the Free Software
  26. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  27. ############################################################################
  28. #    This document uses Tab 4 Settings
  29. ############################################################################
  30. require_once("Settings.php");
  31. require_once("common.php");
  32. ############################################################################
  33. $TITLE= $SITE['organ'] . " - Sample Blank Page";
  34. $showGizmo = true;  // set to false to exclude the gizmo
  35. include("top.php");
  36. ############################################################################
  37.  
  38. ?>
  39. <meta http-equiv="Refresh" content="300" />
  40. <meta http-equiv="Pragma" content="no-cache" />
  41. <meta http-equiv="Cache-Control" content="no-cache" />
  42.  
  43. <?php
  44. $doPrintBNLWN = false;
  45. include("BNLWN-mesomap.php");
  46. print $BNLWN_CSS; ?> 
  47. </head>   
  48. <body>
  49. <?php
  50. ############################################################################
  51. include("header.php");
  52. ############################################################################
  53. include("menubar.php");
  54. ############################################################################
  55. ?>
  56. <div id="main-copy">
  57.  
  58.     <h1>Benelux Weather Network</h1>
  59.  
  60.         <?php print $BNLWN_MAP; print $BNLWN_TABLE; ?> 
  61. </div><!-- end main-copy -->
  62. <?php
  63. ############################################################################
  64. include("footer.php");
  65. ############################################################################
  66. # End of Page
  67. ############################################################################
  68. ?>
  69.  

14 2433
JKing
1,206 Expert 1GB
Normally before the meta tags. However without seeing what is being included with top.php it's hard to be certain.
Apr 25 '11 #2
Hi,

Thanks for the answer, i have enclosed the "top" page, perhaps this enlightens you....
Marc,
Attached Files
File Type: txt top.php.txt (4.0 KB, 340 views)
Apr 25 '11 #3
JKing
1,206 Expert 1GB
If you added it as an attachment I cannot see it. Perhaps try uploading it again or copying and pasting the contents of top.php into CODE tags and reposting.
Apr 25 '11 #4
JKing
1,206 Expert 1GB
The head tag is being included in top.php. You shouldn't need to add it at all.
Apr 25 '11 #5
Yeah, but when i insert it like that it ends above the template instead of in the template, look here:
http://www.akker.be/car/wxbenelux1.php
Apr 25 '11 #6
JKing
1,206 Expert 1GB
Check your footer.php file. It looks likes you have included an extra header in there as well as a body and doctype.
Apr 25 '11 #7
You've got me lost here! Can you take a look at it and give me a few pointers?

Thx in advance!!
Attached Files
File Type: txt footer.php.txt (4.2 KB, 441 views)
Apr 25 '11 #8
JKing
1,206 Expert 1GB
Okay.

Your main template includes two other templates. One for the top of the page and one for the footer. In the footer there is a duplicate html, head, and body tag as well as a doctype.

Lines 34-42 in your footer.php are the duplicate lines.

Removing them should solve your issue. As always when making changes make sure you backup your original file.

Here's the snippet to look for.
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta name="generator" content=
  6. "HTML Tidy for Windows (vers 14 February 2006), see www.w3.org" />
  7. <title></title>
  8. </head>
  9. <body>
  10.  
Apr 25 '11 #9
Hello,

Found the snippet, removed it but to no avail, the snippet above was inserted as you can see by accident thanks to my validator....

Marc,
Apr 25 '11 #10
JKing
1,206 Expert 1GB
What do you mean by to no avail?

Removing the snippet from the footer has removed the duplicate head tag.

I am no longer certain what your question is or what issue you are trying to solve...
Apr 25 '11 #11
It didn't resolved the issue i am having with the page i am trying to fix...

Sorry,
Apr 25 '11 #12
JKing
1,206 Expert 1GB
After closer inspection of the page I see you have a center aligned layout far below all the info and date for the page. I am right in assuming that the problem is your content(the map and the date) is not inside your page?

If this is the case you need to modify the first template you posted.

You need to move line 49 to inside your main div(around line 61).
This is the line in question:
Expand|Select|Wrap|Line Numbers
  1. <?php print $BNLWN_MAP; print $BNLWN_TABLE; ?> 
  2.  
This is the code with the line moved:
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. ############################################################################
  3. # A Project of TNET Services, Inc. and Saratoga-Weather.org (WD-World template set)
  4. ############################################################################
  5. #
  6. #   Project:    Sample Included Website Design
  7. #   Module:     sample.php
  8. #   Purpose:    Sample Page
  9. #   Authors:    Kevin W. Reed <kreed@tnet.com>
  10. #               TNET Services, Inc.
  11. #
  12. #     Copyright:    (c) 1992-2007 Copyright TNET Services, Inc.
  13. ############################################################################
  14. # This program is free software; you can redistribute it and/or
  15. # modify it under the terms of the GNU General Public License
  16. # as published by the Free Software Foundation; either version 2
  17. # of the License, or (at your option) any later version.
  18. #
  19. # This program is distributed in the hope that it will be useful,
  20. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22. # GNU General Public License for more details.
  23. #
  24. # You should have received a copy of the GNU General Public License
  25. # along with this program; if not, write to the Free Software
  26. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  27. ############################################################################
  28. #    This document uses Tab 4 Settings
  29. ############################################################################
  30. require_once("Settings.php");
  31. require_once("common.php");
  32. ############################################################################
  33. $TITLE= $SITE['organ'] . " - Sample Blank Page";
  34. $showGizmo = true;  // set to false to exclude the gizmo
  35. include("top.php");
  36. ############################################################################
  37.  
  38. ?>
  39. <meta http-equiv="Refresh" content="300" />
  40. <meta http-equiv="Pragma" content="no-cache" />
  41. <meta http-equiv="Cache-Control" content="no-cache" />
  42.  
  43. <?php
  44. $doPrintBNLWN = false;
  45. include("BNLWN-mesomap.php");
  46. print $BNLWN_CSS; ?> 
  47. </head>   
  48. <body>
  49. <?php
  50. ############################################################################
  51. include("header.php");
  52. ############################################################################
  53. include("menubar.php");
  54. ############################################################################
  55. ?>
  56. <div id="main-copy">
  57.  
  58.     <h1>Benelux Weather Network</h1>
  59.  
  60.         <?php print $BNLWN_MAP; print $BNLWN_TABLE; ?> 
  61. </div><!-- end main-copy -->
  62. <?php
  63. ############################################################################
  64. include("footer.php");
  65. ############################################################################
  66. # End of Page
  67. ############################################################################
  68. ?>
  69.  
Apr 25 '11 #13
Yes!!

That finally did the trick! Thank you so much for helping me out with this! I still have a few pages who need some editing because they are not totally right, i would be very grateful if you would help me out with these too?

Marc,
PS, the good page is on http://www.akker.be/car/wxbenelux.php
Apr 26 '11 #14
JKing
1,206 Expert 1GB
Looks good.

If you have separate issues on other pages, you should start a different thread clearly outlining the issue and either myself or another user will help you out.
Apr 26 '11 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Andrés Giraldo | last post by:
Hi! It's possible to register some script between the <head> and </head> actually I'm Using RegisterStartupScript and RegisterClientBlockScript, but it works on the body By the way... how...
2
by: ryan.mclean | last post by:
Hello everyone. Hope ya'll had a nice New Year. Anyway, my question is why won't this work? I must be doing something dumb . . . here is the code: in the body tag, I have this code (just to...
3
by: francescomoi | last post by:
Hi. I'm trying to insert some text between <head> and <body> but I'm not able. I try with: -------- bodyPoint = document.getElementsByTagName('body'); var myLink =...
15
by: Frances | last post by:
<html> <head> <script> function doIt() { var list = document.forms.product; var selItem = list.options.value; ^^^^^^^ </head>
10
by: Brian W | last post by:
Hi All, I have a web user control that, among other things, provides Print this page, and Email this page functionality I have this script that is to execute on the click of the asp:hyperlinks ...
6
by: Ken Varn | last post by:
I want to add my own custom <STYLE> section in the <HEAD> section of my ASP.NET page within a custom control. Can someone tell me how I can have my custom control add tags to the <HEAD> section of...
8
by: deko | last post by:
<head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>Home Page</title> <!--> <style#navlist a { height: 1em; } </style> <!--> </head> Is the statement above...
3
by: phpmel | last post by:
Hi guys, I have yet another question. I am working with this html form that uses a template. <head> //is greyed out //some greyed out <style >stuff is next <!-- InstanceEndEditable...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.