Welcome to Geeklog, Anonymous Monday, January 06 2025 @ 02:12 am EST
Geeklog Forums
How do I remove items from the header?
Matt
Anonymous
I want to get rid of the search field, the date, and the logo. Apparently its not just as simple as deleting that stuff from the header.thtml file. But whenever I take out anything it destroys the layout of the page. So what do I have to do? Here is what my header.thtml looks like.
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset={charset}">
<title>{page_title}</title>
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<LINK REL="SHORTCUT ICON" href="{site_url}/favicon.ico">
<!--
<meta http-equiv="Pragma" content="no-cache">
-->
<link rel="stylesheet" type="text/css" href="{css_url}" title="{theme}">
<!-- Needed JavaScript Code -->
<script type="text/javascript" language="JavaScript1.2">
var cleared = 0;
function clearField(field)
{
if (cleared != 1) {
field.value = ""
cleared = 1
} else {
cleared = 0
}
}
</script>
<style type="text/css">
.menutitle{
cursor:pointer;
margin-bottom: 2px;
background-color:#FFFFFF;
color:#000000;
width:110px;
padding:0px;
text-align:left;
font-weight:bold;
/*/*/border:0px solid #000000;/* */
}
.submenu{
margin-bottom: 0.5em;
}
</style>
<script type="text/javascript">
/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">n')
document.write('.submenu{display: none;}n')
document.write('</style>n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}
</script>
<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "/htmlarea/"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<form action="/search.php" method="GET">
<tr width="100%" cellspacing="0" cellpading="0">
<td width="50%" align="left">
<a href="{site_url}"><img src="{layout_url}/images/logo.png" class="logo" alt="{site_name}" /></a>
</td>
<td width="50%" align="right">
<input type="hidden" name="type" value="all" />
<input type="hidden" name="mode" value="search" />
</td>
</tr>
</form>
<br>
<!--
<?php
print ($_SERVER['PHP_SELF'])
?>
-->
<hr class="netscape4" />
<tr>
<td colspan="2">
<div class="tabs">
<?php
if ($_SERVER['PHP_SELF'] == "/index.php") {
print '<a href="{site_url}/" class="selected"> home </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/" class="plain"> home </a> <span class="netscape4"> </span>';
}
if (($_SERVER['PHP_SELF'] == "/admin/story.php") || ($_SERVER['PHP_SELF'] == "/submit.php")) {
print '<a href="{site_url}/submit.php?type=story" class="selected"> submit news </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/submit.php?type=story" class="plain"> submit news </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/links.php") {
print '<a href="{site_url}/links.php" class="selected"> links </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/links.php" class="plain"> links </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/pollbooth.php") {
print '<a href="{site_url}/pollbooth.php" class="selected"> polls </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/pollbooth.php" class="plain"> polls </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/calendar.php") {
print '<a href="{site_url}/calendar.php" class="selected"> calendar </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/calendar.php" class="plain"> calendar </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/forum/index.php") {
print '<a href="{site_url}/forum/index.php" class="selected"> forum </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/forum/index.php" class="plain"> forum </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/stats.php") {
print '<a href="{site_url}/stats.php" class="selected"> stats </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/stats.php" class="plain"> stats </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/search.php") {
print '<a href="{site_url}/search.php" class="selected"> advanced search </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/search.php" class="plain"> advanced search </a> <span class="netscape4"> </span>';
}
?>
<span class="netscape4"> </span>
</div>
<hr class="netscape4" />
</td>
</tr>
<tr>
<td>
<div class="personalBar">
</div></td>
<td align="right">
<div class="personalBar">
<?php
if ($_USER['uid'] == 2) {
print '<a href="{site_url}/admin/moderation.php"><img src="{layout_url}/images/user.gif" border="0" alt="submission page" /> submission page </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/usersettings.php?mode=edit"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="account info" /> account info </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/calendar.php?mode=personal"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="personal calendar" /> personal calendar </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/users.php?mode=logout"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="logoff" /> logout </a></td>';
} else {
print ' </td>';
}
?>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="pathBar">
{welcome_msg}
</div>
<td>
</tr>
<table border="0" cellspacing="5" cellpadding="0" width="100%">
<tr>
{left_blocks}
<td width="100%" valign="top">
<!-- START OF CONTENT AREA -->
</table></table>
Thanks, Matt
Text Formatted Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset={charset}">
<title>{page_title}</title>
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<LINK REL="SHORTCUT ICON" href="{site_url}/favicon.ico">
<!--
<meta http-equiv="Pragma" content="no-cache">
-->
<link rel="stylesheet" type="text/css" href="{css_url}" title="{theme}">
<!-- Needed JavaScript Code -->
<script type="text/javascript" language="JavaScript1.2">
var cleared = 0;
function clearField(field)
{
if (cleared != 1) {
field.value = ""
cleared = 1
} else {
cleared = 0
}
}
</script>
<style type="text/css">
.menutitle{
cursor:pointer;
margin-bottom: 2px;
background-color:#FFFFFF;
color:#000000;
width:110px;
padding:0px;
text-align:left;
font-weight:bold;
/*/*/border:0px solid #000000;/* */
}
.submenu{
margin-bottom: 0.5em;
}
</style>
<script type="text/javascript">
/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">n')
document.write('.submenu{display: none;}n')
document.write('</style>n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}
</script>
<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "/htmlarea/"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<form action="/search.php" method="GET">
<tr width="100%" cellspacing="0" cellpading="0">
<td width="50%" align="left">
<a href="{site_url}"><img src="{layout_url}/images/logo.png" class="logo" alt="{site_name}" /></a>
</td>
<td width="50%" align="right">
<input type="hidden" name="type" value="all" />
<input type="hidden" name="mode" value="search" />
</td>
</tr>
</form>
<br>
<!--
<?php
print ($_SERVER['PHP_SELF'])
?>
-->
<hr class="netscape4" />
<tr>
<td colspan="2">
<div class="tabs">
<?php
if ($_SERVER['PHP_SELF'] == "/index.php") {
print '<a href="{site_url}/" class="selected"> home </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/" class="plain"> home </a> <span class="netscape4"> </span>';
}
if (($_SERVER['PHP_SELF'] == "/admin/story.php") || ($_SERVER['PHP_SELF'] == "/submit.php")) {
print '<a href="{site_url}/submit.php?type=story" class="selected"> submit news </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/submit.php?type=story" class="plain"> submit news </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/links.php") {
print '<a href="{site_url}/links.php" class="selected"> links </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/links.php" class="plain"> links </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/pollbooth.php") {
print '<a href="{site_url}/pollbooth.php" class="selected"> polls </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/pollbooth.php" class="plain"> polls </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/calendar.php") {
print '<a href="{site_url}/calendar.php" class="selected"> calendar </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/calendar.php" class="plain"> calendar </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/forum/index.php") {
print '<a href="{site_url}/forum/index.php" class="selected"> forum </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/forum/index.php" class="plain"> forum </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/stats.php") {
print '<a href="{site_url}/stats.php" class="selected"> stats </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/stats.php" class="plain"> stats </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/search.php") {
print '<a href="{site_url}/search.php" class="selected"> advanced search </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/search.php" class="plain"> advanced search </a> <span class="netscape4"> </span>';
}
?>
<span class="netscape4"> </span>
</div>
<hr class="netscape4" />
</td>
</tr>
<tr>
<td>
<div class="personalBar">
</div></td>
<td align="right">
<div class="personalBar">
<?php
if ($_USER['uid'] == 2) {
print '<a href="{site_url}/admin/moderation.php"><img src="{layout_url}/images/user.gif" border="0" alt="submission page" /> submission page </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/usersettings.php?mode=edit"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="account info" /> account info </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/calendar.php?mode=personal"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="personal calendar" /> personal calendar </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/users.php?mode=logout"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="logoff" /> logout </a></td>';
} else {
print ' </td>';
}
?>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="pathBar">
{welcome_msg}
</div>
<td>
</tr>
<table border="0" cellspacing="5" cellpadding="0" width="100%">
<tr>
{left_blocks}
<td width="100%" valign="top">
<!-- START OF CONTENT AREA -->
</table></table>
Thanks, Matt
8
7
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
There should be no problem with removing things from the header.thtml file. You have to be careful, though, to not break existing table layouts. The safest way to do this is to just delete the offending code within the <td> tags instead of deleting any of the table tags themselves.
7
10
Quote
Matt
Anonymous
Well I'm pretty sure that's what I'm doing, but for some reason it makes no difference. If I so much as remove the {datetime} code and nothing else, it screws up the entire layout. For example, below all I took out was the search field, the search button, and the date:
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset={charset}">
<title>{page_title}</title>
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<LINK REL="SHORTCUT ICON" href="{site_url}/favicon.ico">
<!--
<meta http-equiv="Pragma" content="no-cache">
-->
<link rel="stylesheet" type="text/css" href="{css_url}" title="{theme}">
<!-- Needed JavaScript Code -->
<script type="text/javascript" language="JavaScript1.2">
var cleared = 0;
function clearField(field)
{
if (cleared != 1) {
field.value = ""
cleared = 1
} else {
cleared = 0
}
}
</script>
<style type="text/css">
.menutitle{
cursor:pointer;
margin-bottom: 2px;
background-color:#FFFFFF;
color:#000000;
width:110px;
padding:0px;
text-align:left;
font-weight:bold;
/*/*/border:0px solid #000000;/* */
}
.submenu{
margin-bottom: 0.5em;
}
</style>
<script type="text/javascript">
/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}
</script>
<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "/htmlarea/"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<form action="/search.php" method="GET">
<tr width="100%" cellspacing="0" cellpading="0">
<td width="50%" align="left">
<a href="{site_url}"><img src="{layout_url}/images/logo.png" class="logo" alt="{site_name}" /></a>
</td>
<td width="50%" align="right">
<input type="hidden" name="type" value="all" />
<input type="hidden" name="mode" value="search" />
<br><br>
</td>
</tr>
</form>
<br>
<!--
<?php
print ($_SERVER['PHP_SELF'])
?>
-->
<hr class="netscape4" />
<tr>
<td colspan="2">
<div class="tabs">
<?php
if ($_SERVER['PHP_SELF'] == "/index.php") {
print '<a href="{site_url}/" class="selected"> home </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/" class="plain"> home </a> <span class="netscape4"> </span>';
}
if (($_SERVER['PHP_SELF'] == "/admin/story.php") || ($_SERVER['PHP_SELF'] == "/submit.php")) {
print '<a href="{site_url}/submit.php?type=story" class="selected"> submit news </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/submit.php?type=story" class="plain"> submit news </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/links.php") {
print '<a href="{site_url}/links.php" class="selected"> links </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/links.php" class="plain"> links </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/pollbooth.php") {
print '<a href="{site_url}/pollbooth.php" class="selected"> polls </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/pollbooth.php" class="plain"> polls </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/calendar.php") {
print '<a href="{site_url}/calendar.php" class="selected"> calendar </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/calendar.php" class="plain"> calendar </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/forum/index.php") {
print '<a href="{site_url}/forum/index.php" class="selected"> forum </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/forum/index.php" class="plain"> forum </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/stats.php") {
print '<a href="{site_url}/stats.php" class="selected"> stats </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/stats.php" class="plain"> stats </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/search.php") {
print '<a href="{site_url}/search.php" class="selected"> advanced search </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/search.php" class="plain"> advanced search </a> <span class="netscape4"> </span>';
}
?>
<span class="netscape4"> </span>
</div>
<hr class="netscape4" />
</td>
</tr>
<tr>
<td>
<div class="personalBar">
</div></td>
<td align="right">
<div class="personalBar">
<?php
if ($_USER['uid'] == 2) {
print '<a href="{site_url}/admin/moderation.php"><img src="{layout_url}/images/user.gif" border="0" alt="submission page" /> submission page </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/usersettings.php?mode=edit"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="account info" /> account info </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/calendar.php?mode=personal"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="personal calendar" /> personal calendar </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/users.php?mode=logout"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="logoff" /> logout </a></td>';
} else {
print ' </td>';
}
?>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="pathBar">
{welcome_msg}
</div>
<td>
</tr>
<table border="0" cellspacing="5" cellpadding="0" width="100%">
<tr>
{left_blocks}
<td width="100%" valign="top">
<!-- START OF CONTENT AREA -->
</table></table>
But for some reason the table structure is destroyed even though I don't think I touched any table code.
Text Formatted Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset={charset}">
<title>{page_title}</title>
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<LINK REL="SHORTCUT ICON" href="{site_url}/favicon.ico">
<!--
<meta http-equiv="Pragma" content="no-cache">
-->
<link rel="stylesheet" type="text/css" href="{css_url}" title="{theme}">
<!-- Needed JavaScript Code -->
<script type="text/javascript" language="JavaScript1.2">
var cleared = 0;
function clearField(field)
{
if (cleared != 1) {
field.value = ""
cleared = 1
} else {
cleared = 0
}
}
</script>
<style type="text/css">
.menutitle{
cursor:pointer;
margin-bottom: 2px;
background-color:#FFFFFF;
color:#000000;
width:110px;
padding:0px;
text-align:left;
font-weight:bold;
/*/*/border:0px solid #000000;/* */
}
.submenu{
margin-bottom: 0.5em;
}
</style>
<script type="text/javascript">
/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}
</script>
<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "/htmlarea/"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<form action="/search.php" method="GET">
<tr width="100%" cellspacing="0" cellpading="0">
<td width="50%" align="left">
<a href="{site_url}"><img src="{layout_url}/images/logo.png" class="logo" alt="{site_name}" /></a>
</td>
<td width="50%" align="right">
<input type="hidden" name="type" value="all" />
<input type="hidden" name="mode" value="search" />
<br><br>
</td>
</tr>
</form>
<br>
<!--
<?php
print ($_SERVER['PHP_SELF'])
?>
-->
<hr class="netscape4" />
<tr>
<td colspan="2">
<div class="tabs">
<?php
if ($_SERVER['PHP_SELF'] == "/index.php") {
print '<a href="{site_url}/" class="selected"> home </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/" class="plain"> home </a> <span class="netscape4"> </span>';
}
if (($_SERVER['PHP_SELF'] == "/admin/story.php") || ($_SERVER['PHP_SELF'] == "/submit.php")) {
print '<a href="{site_url}/submit.php?type=story" class="selected"> submit news </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/submit.php?type=story" class="plain"> submit news </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/links.php") {
print '<a href="{site_url}/links.php" class="selected"> links </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/links.php" class="plain"> links </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/pollbooth.php") {
print '<a href="{site_url}/pollbooth.php" class="selected"> polls </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/pollbooth.php" class="plain"> polls </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/calendar.php") {
print '<a href="{site_url}/calendar.php" class="selected"> calendar </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/calendar.php" class="plain"> calendar </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/forum/index.php") {
print '<a href="{site_url}/forum/index.php" class="selected"> forum </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/forum/index.php" class="plain"> forum </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/stats.php") {
print '<a href="{site_url}/stats.php" class="selected"> stats </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/stats.php" class="plain"> stats </a> <span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/search.php") {
print '<a href="{site_url}/search.php" class="selected"> advanced search </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/search.php" class="plain"> advanced search </a> <span class="netscape4"> </span>';
}
?>
<span class="netscape4"> </span>
</div>
<hr class="netscape4" />
</td>
</tr>
<tr>
<td>
<div class="personalBar">
</div></td>
<td align="right">
<div class="personalBar">
<?php
if ($_USER['uid'] == 2) {
print '<a href="{site_url}/admin/moderation.php"><img src="{layout_url}/images/user.gif" border="0" alt="submission page" /> submission page </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/usersettings.php?mode=edit"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="account info" /> account info </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/calendar.php?mode=personal"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="personal calendar" /> personal calendar </a>';
} else {
print ' ';
}
?>
<?php
if ($_USER['uid'] > 1) {
print '<a href="{site_url}/users.php?mode=logout"><img src="{layout_url}/images/linkOpaque.gif" border="0" alt="logoff" /> logout </a></td>';
} else {
print ' </td>';
}
?>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="pathBar">
{welcome_msg}
</div>
<td>
</tr>
<table border="0" cellspacing="5" cellpadding="0" width="100%">
<tr>
{left_blocks}
<td width="100%" valign="top">
<!-- START OF CONTENT AREA -->
</table></table>
But for some reason the table structure is destroyed even though I don't think I touched any table code.
10
12
Quote
Matt
Anonymous
AH HA! By default I was using Dreamweaver to open the files and view the code and apparently that was bad mojo. I took a fresh file, opened it in Dreamweaver, then saved it without changing anything and it screwed up the layout. Ha...omg...
Lets see, Notepad works. Anyone know of any good little free programs to edit code with that also show line count?
Lets see, Notepad works. Anyone know of any good little free programs to edit code with that also show line count?
11
10
Quote
CaFFeinE
Anonymous
There's a bunch of 'em..I personally like EditPlus a lot, and have used it for code for years. I also set it as my default text editor & source viewer...makes life fun.
It handles FTP, syntax highlighting, search & replace, spelling, html tags and colors with a click, cliptext for inserting common HTML tags and CSS bits, works in HTML, JS, PHP, etc, etc.
Also has templates and plugins for everything. Oh, and it does text too...
It isn't free, but it rocks.
http://www.editplus.com
OR, check here for a whole bunch of them at Tucows, freeware, shareware, you name it. All rated.
GL
-CaFFeinE
It handles FTP, syntax highlighting, search & replace, spelling, html tags and colors with a click, cliptext for inserting common HTML tags and CSS bits, works in HTML, JS, PHP, etc, etc.
Also has templates and plugins for everything. Oh, and it does text too...
It isn't free, but it rocks.
http://www.editplus.com
OR, check here for a whole bunch of them at Tucows, freeware, shareware, you name it. All rated.
GL
-CaFFeinE
10
10
Quote
All times are EST. The time is now 02:12 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content