Lol, I'm in the boy scouts. I plan to get a scholership through them so I stay. Anyhow, back to my template..

, should I use fopen ("..", q); or something like that (I forgot the actual function to open files)? Go back to the above link, you'l see it's not working like I expected. Well, I'm going to look up that function and try it.
Code: Select all
<html><head>
<title>Title</title>
</head><body>
<?php
$tem = "1"; //template number
$head = file("http://www.1veedo.com/main/head".$tem.".html"); //everything for the top of the page and source to start menus
echo $head;
$bigMenu = file("http://www.1veedo.com/main/bigmenu".$tem.".html"); //For the header
$endmenHeader = file("http://www.1veedo.com/main/endmenheader".$tem.".html");
$endMenu = file("http://www.1veedo.com/main/endmenu".$tem.".html"); //ends individule <tr>s for each menu
$bigContent = file("http://www.1veedo.com/main/bigcontent".$tem.".html"); //used to end the left side of the table compleetly
echo $bigMenu;
echo "Main Menue";
$menu = file("http://www.1veedo.com/main/menu.html"); //menu content.. individual links
echo $menu;
echo $endMenu;
//echo any sub menus with <br> between
//echo main page content, color dependent on template
//echo key words
$end = file("http://www.1veedo.com/main/end".$tem.".html");
echo $end;
?>
I basicaly took out align, I figure the html in the files are going to take care of that.
Edit:
I got it working.. sortof, it was but I added graphics and changed the path to find the graphics in each file.. now it wont load, anyhow here's the updated source:
Code: Select all
<html><head>
<title>Title</title>
</head><body>
<?php
$tem = "1"; //template number
$head = implode('', file('http://www.1veedo.com/main/head'.$tem.'.html'));
echo $head;
$bigMenu = implode('', file('http://www.1veedo.com/main/bigmenu'.$tem.'.html'));
$endmenHeader = implode('', file('http://www.1veedo.com/main/endmenheader'.$tem.'.html'));
$endMenu = implode('', file('http://www.1veedo.com/main/endmenu'.$tem.'.html'));
$bigContent = implode('', file('http://www.1veedo.com/main/bigcontent'.$tem.'.html'));
echo $bigMenu;
echo "Main Menue";
$menu = implode('', file('http://www.1veedo.com/main/menu.html'));
echo $menu;
echo $endMenu;
//echo any sub menus with <br> between
echo $bigContent
//echo main page content, color dependent on template
//echo key words
$end = implode('', file('http://www.1veedo.com/main/end'.$tem.'.html'));
echo $end;
Hm.. server probablems, it cant find anything and I got erors whith ftp.. I disconected and it said something wird then I tried to reconect and it timed out..
Edit2: Seems liek I'm talking to myself..
Thought I'd let you know the above works, I didn't seperate the template good though.. I'm going to look for another one. Thanks for all the help.