Jump to content


Simple template, works nice @ www.nsa84.nl


  • You cannot reply to this topic
3 replies to this topic

#1 nsa84

    Etomite Forum Newbie

  • Member
  • 9 posts

Posted 25 June 2004 - 09:24 PM

hey anyone,

I have made a template for myself. It is very easy made with some tables and some nice snippets out of the forum over here.

take a look copy and paste is al you have to do.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>[(site_name)]::[[ranquote]]::[*pagetitle*]</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<meta name="Robots" content="NOINDEX">

<meta http-equiv="PRAGMA" content="NO-CACHE">

<META NAME="KEYWORDS" CONTENT="[*description*]">

<META NAME="DESCRIPTION" CONTENT="[*description*]"> 

</head>



<body bgcolor=#FFFF99>

 <!--[[SimpleGallery]]-->

<TABLE rows=2 border=0 width=100% height=100%>

	<TD height=105 align=center valign=middle>

                <a href="?id=[(site_start)]">

                      <IMG 

                      src="http://nsa84.nl/cms/phase/images/docpo_nice.gif" 

                      ALT="[(site_name)]"><BR>

                 </a>[[Randomquote]]

	</td>

	<TR>

	<TD>

  <TABLE COLS="2" border=0 width=100% height=100%>

 	 <TD width=150 valign=top align=Left>

                               [[MainSubMenu]]

 	 </td>

 	 <TD valign=top>

    <p>[*content*]</p><P>

          </td>

  </table>

	</td>

        <TR>

        <TD height=20% align=center valign=middle> 

                [[PoweredBy]] <BR> [[LoadTime]]

        </td>

</table>

</body>

</html>


The snippets i used.
PoweredBy
LoadTime
MainSubMenu
Randomquote

I used one picture into this template you can change it in anything you like with the limit of 105 pixels in the height.

Have fun

nsa84.
ww.nsa84.nl

#2 tinaldor

    Etomite Forum Newbie

  • Member
  • 11 posts

Posted 25 June 2004 - 09:57 PM

the LoadTime snippet... where did you get that exactly? or is it custom?

I just posted about that in the Snippet Dev forum..

Could i be cheeky and ask you to copy past the code, or the url..

Cheers!

Tinaldor

#3 codemonkeypete

    Likes Etomite Forums!

  • Member
  • PipPip
  • 170 posts

Posted 05 July 2004 - 03:24 PM

Quote

the LoadTime snippet... where did you get that exactly? or is it custom?
http://www.repetemedia.com/files/repetesnippets.txt

The above link will give u all my 'older' snippets, in one text file. below is the code for the LoadTime Snippet :D
// [[LoadTime]] - Displays total time for page to load

    function getmicrotime(){ 

list($usec, $sec) = explode(" ",microtime()); 

return ((float)$usec + (float)$sec); 

} 

$time_start = getmicrotime(); 

for ($i=0; $i <1000; $i++){ 

} 

$time_end = getmicrotime(); 

$time = $time_end - $time_start; 

$time = round($time,6); 

$LoadTime = "This page loaded in $time seconds.";


#4 gtatler

    Likes Etomite Forums!

  • Member
  • PipPip
  • 338 posts

Posted 17 September 2005 - 10:32 AM

repetemedia, on Jul 5 2004, 04:24 PM, said:

http://www.repetemedia.com/files/repetesnippets.txt
The above link will give u all my 'older' snippets, in one text file. below is the code for the LoadTime Snippet  :D
// [[LoadTime]] - Displays total time for page to load

    function getmicrotime(){ 

list($usec, $sec) = explode(" ",microtime()); 

return ((float)$usec + (float)$sec); 

} 

$time_start = getmicrotime(); 

for ($i=0; $i <1000; $i++){ 

} 

$time_end = getmicrotime(); 

$time = $time_end - $time_start; 

$time = round($time,6); 

$LoadTime = "This page loaded in $time seconds.";

Your last line wrong and should read

$LoadTime = "This page loaded in ".$time." seconds.";

AND YOU MISSED OUT THE MOST IMPORTANT FINAL LINE OF CODE -------

return $LoadTime;

WITHOUT IT NOTHING IS DISPLAYED. YOU MUST ALWAYS HAVE THIS LINE AT THE END OF ALL SNIPPETS.


And the link to your snippet text file is broken !

Edited by gtatler, 28 February 2006 - 06:44 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users