[Solved]: Using the 'include' statement [Solved]: Using the 'include' statement
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: Using the 'include' statement

Started by badluckmonkey, June 21, 2004, 02:03:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

badluckmonkey

For my site I have used the php 'include' function to incorporate a header and a footer for the site.

I would like to incorporate these files into my gallery but when I attempt to use this function within the theme.php, it stretches all of the images in my site.

Has anyone had any experience of this of could possible tell me how I can maintain the appearance of my site whilst still using the gallery?

Many thanks

Mark

http://www.badluckmonkey.com

DaMysterious

#1
Quote from: badluckmonkey on June 21, 2004, 02:03:03 PM
For my site I have used the php 'include' function to incorporate a header and a footer for the site.

I would like to incorporate these files into my gallery but when I attempt to use this function within the theme.php, it stretches all of the images in my site.

Has anyone had any experience of this of could possible tell me how I can maintain the appearance of my site whilst still using the gallery?

Many thanks

Mark

http://www.badluckmonkey.com


The header have to hold minimal the code below


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{LANG_DIR}">
<head>
<title>{TITLE}</title>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
{META}
<link rel="stylesheet" href="themes/your_themet/style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>


Try the code below. Put it in template.html, change it to your needs and do some magic in style.css  ;). Let theme.php untouched. Don't forget to include style.css.


<html>
<head>
<title>:: badluckmonkey.com - dynamic website design ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="Microsoft FrontPage 5.0" />
<meta name="keywords" content="badluckmonkey,monkey,badluck,bad,luck,lucky,simian,forum,motorbike,bike,visordown,design,php,mark grassick,grassick,website design, " />
<meta name="description" content="badluckmonkey.com the site that does not really have a point yet. But you can make it have one!" />
<script language="JavaScript" type="text/JavaScript" src="http://www.reinvigorate.net/archive/app.bin/jsinclude.php?16610"></script>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
 var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=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(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.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.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
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_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->
</script>
<link href="http://www.badluckmonkey.com/css/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('http://www.badluckmonkey.com/images/badluck_r2_c3_f2.gif');">
<table border="0" cellpadding="0" cellspacing="0" width="800" align="center">
 <tr>
  <td rowspan="4"><img name="badluck_r1_c1" src="http://www.badluckmonkey.com/images/badluck_r1_c1.jpg" width="78" height="130" border="0" alt=""></td>
  <td colspan="2" height="30">&nbsp;</td>
 </tr>
 <tr>
  <td><img name="badluck_r2_c2" src="http://www.badluckmonkey.com/images/badluck_r2_c2.jpg" width="766" height="40" border="0" alt=""></td>
  <td rowspan="2" height="40"><a href="http://www.badluckmonkey.com/#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('badluck_r2_c3','','http://www.badluckmonkey.com/images/badluck_r2_c3_f2.gif',1);"><img name="badluck_r2_c3" src="http://www.badluckmonkey.com/images/badluck_r2_c3.gif" width="56" height="70" border="0" alt="work in progress"></a></td>
 </tr>
 <tr>
  <td background="http://www.badluckmonkey.com/images/badluck_r3_c2.jpg" height="30" background-repeat="no-repeat"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="6%">&nbsp;</td>
      <td width="60%" class="white"><a href="http://www.badluckmonkey.com/index.php">home</a> | <a href="http://www.badluckmonkey.com/register.php">register</a> | <a href="http://www.badluckmonkey.com/login.php">login</a> | <a href="http://www.badluckmonkey.com/change_password.php">change
         password</a> | <a href="http://www.badluckmonkey.com/view_users.php">view users</a> | <a href="http://easypost.badluckmonkey.com">mail</a> | <a href="http://www.badluckmonkey.com/gallery">gallery</a></td>
      <td width="34%">&nbsp;</td>
    </tr>
  </table></td>
 </tr>
 <tr>
  <td height="30" colspan="2" class="linkwhite">&nbsp;</td>
 </tr>
 <tr>
  <td colspan="3" valign="top" bgcolor="#ffffff" height="20">
  <table width="60%"  border="0" align="center">
 <tr>
   <td align="center" class="title">&nbsp;<table width="80%">
         <tr>
           <td><center>
               {MAIN_MENU}</center></td>
         </tr>
         <tr>
           <td>{ADMIN_MENU}</td>
         </tr>
         <tr>
           <td>{GALLERY}<br> <table width="100%" border="0" cellspacing="0" cellpadding="0">
               <tr align="center">
                 <td>{LANGUAGE_SELECT_FLAGS}</td>
                 <td>{LANGUAGE_SELECT_LIST}</td>
                 <td>{THEME_SELECT_LIST}</td>
               </tr>
             </table></td>
         </tr>
       </table>
   </td>
 </tr>
 </table><table>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
 </tr>
 <tr>
  <td colspan="3" background="images/badluck_r6_c1.jpg" height="25" align="center"class="white"><a href="index.php">home</a> | <a href="register.php">register</a> | <a href="login.php">login</a> | <a href="change_password.php">change
         password</a> | <a href="view_users.php">view users</a> | <a href="http://easypost.badluckmonkey.com">mail</a> | <a href="gallery">gallery</a>
 </tr>
   <tr>
   <td align="center">&nbsp;</td>
 </tr>
 <tr>
   <td align="center" colspan="3" class="black">Copyright (c)2004, <a href="mailto:mark@badluckmonkey.com?subject=Hi%20just%20seen%20your%20website%20and......">Mark Grassick</a>.</td>
 </tr>
</table>
</body>
</html>
DaMysterious.


Burpee


DaMysterious

DaMysterious.