Jump to content

Template intergrating


eaglelegend

Recommended Posts

Hi, I am trying to integrate my newly bought design into my old site design - obviously replacing the old design.

 

However every time I try to do this there is a parse error coming up saying "unexpected end".

 

I hope someone can help me do this thanks - btw this are the original files and not the intergrated file - I am hoping someone else could do it for me since I seem to be unable to do it.

 

New design code;

<html>
   <head>
      <title>Eagle Legend</title>
   </head>
   <body background="bg.gif" bgproperties="fixed">
<table width="1024" height="768" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td colspan="3" width="1024" height="302"><img src="1col2.gif"></td>
</tr>
<tr>
  <td colspan="1" width="266" valign="top"><img name="Image20" src="2.gif" width="266" height="440" border="0" usemap="#Image2" alt="" /></td>
  <td colspan="1" width="667" valign="top" align="left" bgcolor="white">
<!-- Text goes below -->
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam ut sapien. Aliquam ipsum. Fusce ac sem. Sed erat. Curabitur quam. In eros. Vestibulum lacus risus, tincidunt ut, ultrices lacinia, viverra quis, lacus. Sed id massa. Integer sodales leo eu nunc. Proin scelerisque, enim non tempus condimentum, dui augue laoreet velit, in luctus lectus purus eu lorem. Cras mi justo, vestibulum sit amet, fringilla in, pulvinar euismod, turpis. Suspendisse enim. Suspendisse iaculis viverra ipsum. Etiam at metus. Nulla iaculis neque eget nulla elementum venenatis. Aenean dictum. 
<BR><BR>
Cras consequat metus ac mi. Aenean posuere metus eu diam. Mauris massa. Praesent mauris tellus, fringilla sed, congue vel, congue sit amet, risus. Praesent porta imperdiet nunc. Mauris fermentum imperdiet nisl. Phasellus et diam ut tortor pharetra consequat. Vestibulum pulvinar purus gravida lacus. Morbi eget orci et arcu ultrices rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur turpis. Donec molestie convallis lectus. Mauris ultricies ullamcorper sapien. 
<BR><BR>
In faucibus aliquet massa. Cras fermentum semper nisl. Nulla auctor, nunc sed dapibus pulvinar, libero risus viverra diam, eget vehicula ipsum risus vitae risus. Pellentesque varius semper risus. In metus arcu, tincidunt in, adipiscing nec, condimentum et, augue. Nunc fermentum, dolor ac vulputate luctus, urna eros blandit leo, vitae gravida nunc ipsum ut lorem. Curabitur fermentum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse potenti. In hac habitasse platea dictumst. 

<!-- End Text -->
</td>
  <td colspan="1" width="91"></td>
</tr>
<tr>
  <td colspan="3" width="1024" height="8"><img src="3.gif"></td>
</tr>
<tr>
  <td colspan="3" width="1024" height="33" background="4.gif"><div id = "footer"><center> <font face="verdana" size="1">(c)2008 Eagle Legend. All Rights Reserved. <a href="tos.php">Terms/Rules</a> <a href="privacy.php">Privacy</a></font></center></div></td>
</tr>
</table>
<map name="Image2">
<area shape="rect" coords="121,99,201,122" href="home.php" alt="">
<area shape="rect" coords="119,123,203,147" href="index.php" alt="">
<area shape="rect" coords="117,148,206,169" href="games.php" alt="">
<area shape="rect" coords="120,171,206,192" href="mail.php" alt="">
<area shape="rect" coords="115,193,211,215" href="forums.php" alt="">
<area shape="rect" coords="116,217,212,239" href="club.php" alt="">
<area shape="rect" coords="106,239,225,262" href="mystuff.php" alt="">
</map>
   </body>
</html>

 

Old design code;

<?php

if ($rank >= 5)

{

$admin_line .= "<p align=center>Admin Stuff:<br><a class=menu href=# onClick=\"window.open('$base_url/admin/admin_remote.php?game=$game','remote','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=60')\">Mute User</a><br><a class=menu href=$base_url/warn_user.php?game=$game>Warn User</a>";

}
if ($rank >= 7) { $admin_line .= "<br><a href=$base_url/admin/admin.php?game=$game class=menu>Admin Section</a>"; }



if ($rank == null)

{

$updateLine2 = "<p><a href=register.php?game=$game><img src=images/nav_register.jpg width=113 height=101 border=0></a></p>";

}
if ($premium == null)

{

$menu = "
<p><map name=\"Image2\">
<area shape=\"rect\" coords=\"121,99,201,122\" href=\"$base_url/index.php?game=$game\" alt=\"Go back to the main page of Eagle Legend!\" title=\"Go back to the main page of Eagle Legend!\">
<area shape=\"rect\" coords=\"119,123,203,147\" href=\"$base_url/index.php?game=$game\" alt=\"Go back to the main page of Eagle Legend!\" title=\"Go back to the main page of Eagle Legend!\">
<area shape=\"rect\" coords=\"117,148,206,169\" href=\"$base_url/games.php?game=$game\" alt=\"Click here to play our games!\" title=\"Click here to play our games!\">
<area shape=\"rect\" coords=\"120,171,206,192\" href=\"$base_url/mail.php?game=$game\" alt=\"Click here to read, write and delete your mail!\" title=\"Click here to read, write and delete your mail!\">
<area shape=\"rect\" coords=\"115,193,211,215\" href=\"$base_url/forums.php?game=$game\" alt=\"Click here to chat in our forums!\" title=\"Click here to chat in our forums!\">
<area shape=\"rect\" coords=\"116,217,212,239\" href=\"$base_url/club.php?game=$game\" alt=\"Click here to view and create your own club(s)!\" title=\"Click here to view and create your own club(s)!\">
<area shape=\"rect\" coords=\"106,239,225,262\" href=\"$base_url/mystuff.php?game=$game\" alt=\"Click here to edit your account details!\" title=\"Click here to edit your account details!\">
</map></p>";
$userInfo = "<p><font size=\"-1\">

	Username: <a href=$base_url/update_profile.php?game=$game class=menu>$display_name</a><br>

        Hunger: <a href=$base_url/myitems.php?game=$game class=menu><font size=-1>$hungerLevel</a><br>

        $pointVar: <a href=$base_url/bank.php?game=$game>$points</a><br>";

$searchBox = "<form action=$base_url/prompt.pro.php?game=$game method=post><p align=center><input type=text name=command value=\"\" size=8><br><input type=submit name=submit value=\"Search\"></p></form>";

$copywrite = "
<tr>
  <td colspan=\"3\" width=\"1024\" height=\"33\" background=\"4.gif\"><div id = \"footer\"><center> <font face=\"verdana\" size=\"1\">The Legend time is: $timestamp2. © 2008 Eagle Legend. All Rights Reserved. <a href=\"$base_url/tos.php class=bottom\">Terms/Rules</a> <a href=\"$base_url/privacy.php class=bottom\">Privacy</a></font></center></div></td>
</tr>";

$openHTML = "
<html>
   <head>
      <title>$gameName2 - $page_title</title>
   </head>
   <body background=\"bg.gif\" bgproperties=\"fixed\">
<table width=\"1024\" height=\"768\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
  <td colspan=\"3\" width=\"1024\" height=\"302\"><img src=\"1col2.gif\"></td>
</tr>
<tr>
  <td colspan=\"1\" width=\"266\" valign=\"top\"><img name=\"Image20\" src=\"2.gif\" width=\"266\" height=\"440\" border=\"0\" usemap=\"#Image2\" alt=\"\" /></td>
  <td colspan=\"1\" width=\"667\" valign=\"top\" align=\"left\" bgcolor=\"white\">
<!-- Text goes below -->
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam ut sapien. Aliquam ipsum. Fusce ac sem. Sed erat. Curabitur quam. In eros. Vestibulum lacus risus, tincidunt ut, ultrices lacinia, viverra quis, lacus. Sed id massa. Integer sodales leo eu nunc. Proin scelerisque, enim non tempus condimentum, dui augue laoreet velit, in luctus lectus purus eu lorem. Cras mi justo, vestibulum sit amet, fringilla in, pulvinar euismod, turpis. Suspendisse enim. Suspendisse iaculis viverra ipsum. Etiam at metus. Nulla iaculis neque eget nulla elementum venenatis. Aenean dictum. 
<BR><BR>
Cras consequat metus ac mi. Aenean posuere metus eu diam. Mauris massa. Praesent mauris tellus, fringilla sed, congue vel, congue sit amet, risus. Praesent porta imperdiet nunc. Mauris fermentum imperdiet nisl. Phasellus et diam ut tortor pharetra consequat. Vestibulum pulvinar purus gravida lacus. Morbi eget orci et arcu ultrices rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur turpis. Donec molestie convallis lectus. Mauris ultricies ullamcorper sapien. 
<BR><BR>
In faucibus aliquet massa. Cras fermentum semper nisl. Nulla auctor, nunc sed dapibus pulvinar, libero risus viverra diam, eget vehicula ipsum risus vitae risus. Pellentesque varius semper risus. In metus arcu, tincidunt in, adipiscing nec, condimentum et, augue. Nunc fermentum, dolor ac vulputate luctus, urna eros blandit leo, vitae gravida nunc ipsum ut lorem. Curabitur fermentum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse potenti. In hac habitasse platea dictumst. 

<!-- End Text -->
";

$closeHTML = "
</td>
  <td colspan=\"1\" width=\"91\"></td>
</tr>
<tr>
  <td colspan=\"3\" width=\"1024\" height=\"8\"><img src=\"3.gif\"></td>
</tr>
$copywrite
</table>
$menu
   </body>
</html>
";
?>

Link to comment
Share on other sites

which code? the new pasted code;

<html>
   <head>
      <title>Eagle Legend</title>
   </head>
   <body background="bg.gif" bgproperties="fixed">
<table width="1024" height="768" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td colspan="3" width="1024" height="302"><img src="1col2.gif"></td>
</tr>
<tr>
  <td colspan="1" width="266" valign="top"><img name="Image20" src="2.gif" width="266" height="440" border="0" usemap="#Image2" alt="" /></td>
  <td colspan="1" width="667" valign="top" align="left" bgcolor="white">
<!-- Text goes below -->
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam ut sapien. Aliquam ipsum. Fusce ac sem. Sed erat. Curabitur quam. In eros. Vestibulum lacus risus, tincidunt ut, ultrices lacinia, viverra quis, lacus. Sed id massa. Integer sodales leo eu nunc. Proin scelerisque, enim non tempus condimentum, dui augue laoreet velit, in luctus lectus purus eu lorem. Cras mi justo, vestibulum sit amet, fringilla in, pulvinar euismod, turpis. Suspendisse enim. Suspendisse iaculis viverra ipsum. Etiam at metus. Nulla iaculis neque eget nulla elementum venenatis. Aenean dictum. 
<BR><BR>
Cras consequat metus ac mi. Aenean posuere metus eu diam. Mauris massa. Praesent mauris tellus, fringilla sed, congue vel, congue sit amet, risus. Praesent porta imperdiet nunc. Mauris fermentum imperdiet nisl. Phasellus et diam ut tortor pharetra consequat. Vestibulum pulvinar purus gravida lacus. Morbi eget orci et arcu ultrices rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur turpis. Donec molestie convallis lectus. Mauris ultricies ullamcorper sapien. 
<BR><BR>
In faucibus aliquet massa. Cras fermentum semper nisl. Nulla auctor, nunc sed dapibus pulvinar, libero risus viverra diam, eget vehicula ipsum risus vitae risus. Pellentesque varius semper risus. In metus arcu, tincidunt in, adipiscing nec, condimentum et, augue. Nunc fermentum, dolor ac vulputate luctus, urna eros blandit leo, vitae gravida nunc ipsum ut lorem. Curabitur fermentum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse potenti. In hac habitasse platea dictumst. 

<!-- End Text -->
</td>
  <td colspan="1" width="91"></td>
</tr>
<tr>
  <td colspan="3" width="1024" height="8"><img src="3.gif"></td>
</tr>
<tr>
  <td colspan="3" width="1024" height="33" background="4.gif"><div id = "footer"><center> <font face="verdana" size="1">(c)2008 Eagle Legend. All Rights Reserved. <a href="tos.php">Terms/Rules</a> <a href="privacy.php">Privacy</a></font></center></div></td>
</tr>
</table>
<map name="Image2">
<area shape="rect" coords="121,99,201,122" href="home.php" alt="">
<area shape="rect" coords="119,123,203,147" href="index.php" alt="">
<area shape="rect" coords="117,148,206,169" href="games.php" alt="">
<area shape="rect" coords="120,171,206,192" href="mail.php" alt="">
<area shape="rect" coords="115,193,211,215" href="forums.php" alt="">
<area shape="rect" coords="116,217,212,239" href="club.php" alt="">
<area shape="rect" coords="106,239,225,262" href="mystuff.php" alt="">
</map>
   </body>
</html>

Link to comment
Share on other sites

Index file;

<?php



$interactive = 1;

$page_title = "Home";

$rank_check = 0;

include "header.inc.php";





$game=$_GET['game'];

print "$openHTML";



$x = "1";

$findUpdates = mysql_query("SELECT * FROM updates2 WHERE game = '$game' ORDER BY timestamp DESC LIMIT 3");

while ($getUpdates = mysql_fetch_array($findUpdates))

{

$cellcolor = alternate($cellcolor,"#FFFFFF","$middleBG");

$dateWritten = date("M jS, Y", $getUpdates[timestamp]);

$update[$x] = "$getUpdates[message] <FONT SIZE=\"-1\"><I>&#91;$dateWritten&#93;</I></FONT>";

$x++;

}



$newMember = fetch("SELECT username,display_name FROM members2 WHERE id = '$getGame[newest_member]' AND game = '$game'");

$newestMember = "<a 	href=user_profile.php?game=$game&user=$newMember[username]><b>$newMember[display_name]</b></a>";



if ($display_name) { $pageTitle = "Home - Logged In"; }

if (!$display_name || $display_name=="<i>Not logged in.</i>") { $pageTitle = "Home - Not Logged In"; }



$findPage = fetch("SELECT * FROM game_pages WHERE page_title = '$pageTitle' AND game = '$game'");

if ($findPage[page_info] == "")

{

ECHO <<<END

<img src="images/map.png" width="600" height="600" usemap="#Map" border="0"> 

<map name="Map"> 

  <area shape="poly" coords="12,59,30,45,29,32,35,25,44,26,44,21,53,26,52,36,73,42,79,34,87,44,87,54,98,64,97,95,124,97,125,121,56,120,22,97" href="shops.php?game=1">

  <area shape="poly" coords="164,65,164,42,180,41,179,25,160,6,207,9,225,36,231,43,232,64" href="auctions.php?game=1">

  <area shape="poly" coords="197,177,213,157,212,136,207,117,223,110,227,121,244,114,250,107,258,113,265,95,284,136,285,150,308,162,311,171,301,176,302,195,244,197" href="bank.php?game=1">

  <area shape="poly" coords="360,57,420,58,420,39,483,23,633,27,701,17,700,4,240,4,243,29,301,27,350,28" href="heal_pets.php?game=1">

  <area shape="poly" coords="546,133,548,99,561,94,561,80,549,80,548,60,606,59,606,77,629,66,644,89,648,132,630,141,619,152,597,156,592,151,568,151,564,140" href="listclubs.php?game=1">

  <area shape="poly" coords="696,134,696,117,701,104,708,84,721,81,726,70,739,64,752,73,759,84,762,97,770,109,777,119,782,143,751,145,730,144,702,143" href="mail.php?game=1">

  <area shape="rect" coords="757,248,816,269" href="notices.php?game=1">

  <area shape="poly" coords="409,184,411,160,405,154,415,140,425,134,440,116,463,132,488,140,489,144,511,151,512,166,497,175,512,179,512,190,474,202,470,212,396,213,398,193" href="adopt.php?game=1">

  <area shape="poly" coords="264,374,355,395,420,389,420,368,453,348,428,336,430,314,382,293,363,306,342,295,325,295,304,308,303,331,298,329,274,337" href="mystuff.php?game=1">

  <area shape="poly" coords="305,507,331,470,342,448,348,429,362,441,389,470,408,511,442,515,441,537,335,537,333,524" href="penny_store.php?game=1">

  <area shape="poly" coords="208,445,264,446,273,471,295,478,296,449,288,439,276,434,267,437,264,426,208,424" href="forums.php?game=1">

  <area shape="poly" coords="23,367,24,340,45,319,78,282,94,296,101,298,105,311,119,311,122,326,146,362,119,375,117,396,23,396" href="games.php?game=1">

  <area shape="rect" coords="7,517,67,539" href="login.php?game=1">

  <area shape="rect" coords="7,242,78,264" href="updates.php?game=1">

  <area shape="rect" coords="622,513,683,535" href="logout.php?game=1">

  <area shape="rect" coords="587,452,643,472" href="free_food.php?game=1">

</map>

<table width="100" border="0" cellspacing="5" cellpadding="0">

  <tr align="left" valign="top"> 

    <td width="17%"><a href="stats.php?game=$game"><img src="images/nav_stats.jpg" width="113" height="101" border="0"></a></td>

    <td width="17%"><a href="birthdays.php?game=$game"><img src="images/nav_birthday.jpg" width="113" height="101" border="0"></a></td>

    <td width="17%"><a href="whoson.php?game=$game"><img src="images/nav_whoison.jpg" width="113" height="101" border="0"></a></td>

    <td width="11%"><A HREF="javascript:;" onclick="window.open('$baseurl/listpets.php?game=$game','listpets',config='height=425,width=300,menubar=no,resizable=yes,directories=no,scrollbars=yes,status=yes,toolbar=no'); return false;"><img src="images/nav_listvpets.jpg" width="113" height="101"></a></td>

    <td width="38%"><A HREF="javascript:;" onclick="window.open('$baseurl/listitems.php?game=$game','listitems',config='height=425,width=300,menubar=no,resizable=yes,directories=no,scrollbars=yes,status=yes,toolbar=no'); return false;"><img src="images/nav_listitems.jpg" width="113" height="101"></a></td>

  </tr>

  <tr align="left" valign="top"> 

    <td colspan="5">

      <div align="center"><font face="Verdana" size="2" color="#666666"><b>Please welcome our newest member, <font color="#FF0000">$newestMember</font>. Hello, and welcome to Eagle Legend <font color="#FF0000">$newestMember</font>!</b></font></div>

    </td>

  </tr>

</table>



END;



}

else

{

include "showpage.inc.php";

$findPage[page_info] = eregi_replace("\(update1\)", "$update[1]", $findPage[page_info]);

$findPage[page_info] = eregi_replace("\(update2\)", "$update[2]", $findPage[page_info]);

$findPage[page_info] = eregi_replace("\(update3\)", "$update[3]", $findPage[page_info]);

$findPage[page_info] = eregi_replace("\(headline1\)", "$headline1", $findPage[page_info]);

$findPage[page_info] = eregi_replace("\(headline2\)", "$headline2", $findPage[page_info]);

$findPage[page_info] = eregi_replace("\(headline3\)", "$headline3", $findPage[page_info]);

$findPage[page_info] = eregi_replace("\(newestmember\)", "$newestMember", $findPage[page_info]);

print "$findPage[page_info]";

}



print "$closeHTML";

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.