Help - Search - Members - Calendar
Full Version: WP HEEEEEEEEEEEEEEEEEELP
Forums > Resource Center > Webmasters' Corner > Resolved Topics
phoenixpyre
Double Header/Sidebar/I'm not sure

http://phoenixf1re.melilyn.com/?p=1#comments


I have no idea where it's coming from
freeflow
Did you make the layout in wp?
If so can you either attach the header, main index and side bar templates or post them?
phoenixpyre
comments.php:

QUOTE
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?>

<h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
<?php if ( comments_open() ) : ?>
<a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a>
<?php endif; ?>
</h2>

<?php if ( $comments ) : ?>
<ol id="commentlist">

<?php foreach ($comments as $comment) : ?>
<li id="comment-<?php comment_ID() ?>">
<p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite>
<font size=3><b><?php comment_text() ?></b></font>
<?php edit_comment_link(__("Edit This"), " "); ?></p>
</li>

<?php endforeach; ?>

</ol>

<?php else : // If there are no comments yet ?>
<p><?php _e('No comments yet.'); ?></p>
<?php endif; ?>

<p><?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
<?php if ( pings_open() ) : ?>
<a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?></a>
<?php endif; ?>
</p>

<?php if ( comments_open() ) : ?>
<h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

<?php if ( $user_ID ) : ?>

<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout &raquo;</a></p>

<?php else : ?>

<p><input type="text" name="author" id="author" value="Name" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label></p>

<p><input type="text" name="email" id="email" value="Email" size="22" tabindex="2" />
<label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label></p>

<p><input type="text" name="url" id="url" value="http://" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>

<?php endif; ?>

<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->

<p><textarea name="comment" id="comment" cols="80" rows="10" tabindex="4"></textarea></p>

<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>

</form>

<?php endif; // If registration required and not logged in ?>

<?php else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>




header:
QUOTE
<html>
<head>
<title>PhoenixFire Designs</title>
<link href="style.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="images/favicon.ico">

<meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Fade(Duration=1)">
<meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Fade(Duration=1)">
<META NAME="description" CONTENT="A free graphics and cursor website, and also my personal portfolio.">
<META NAME="keywords" CONTENT="cursors graphics portfolio free phoenix fire phoenixfire">
<META NAME="author" CONTENT="Matthew Pawlewicz">

<script type="text/javascript" src="rollover.js">

</script>
<script type="text/javascript">

function BREAKLOOSEpopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=65
,height=595,left = 187,top = 86.5');");
}

function BIGPLANEpopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=67
,height=512,left = 190,top = 142');");
}

function VIDEOPLANEpopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=74
,height=556,left = 141,top = 106');");
}

function VIDEOTORNADOpopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=60
,height=450,left = 212,top = 159');");
}

function MAZEpopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=15
,height=177,left = 433.5,top = 295.5');");
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate

var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('.subsubmenu{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";
}
}
}

function SwitchMenu2(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=="subsubmenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}


</script>




</head>

<?php include('sidebar.php'); ?>





sidebar:

QUOTE
<body><center>


<div id="ads">
<script type="text/javascript"><!--
google_ad_client = "pub-6160953061623911";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al";
google_ad_channel ="";
google_color_border = "ffffff";
google_color_link = "3c1700";
google_color_bg = "ffffff";
google_color_text = "3c1700";
google_color_url = "3c1700";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div id="container">
<a href="index.php"><img src="images/header2.jpg" border="no" galleryimg="no"></a>



<table width="100%" cellpadding="0" cellspacing="0">
<tr><td width="9" style="font-size: 0px;">&nbsp;</td><td width="195" valign="top">


<div class="header">Welcome!</div>

<div class="entry">
When you need cursors, layouts, or graphics of any kind, this is the website that you need to come to. I am capable of making almost anything that you can ask for and I fill requests super fast. Please read the <a href="terms.php">Terms and Conditions</a> before browsing.
</CENTER></div>


<div class="header">Navigation</div>


<div class="entry">
<B>
<CENTER>
<a href="index.php" class="nav">Home</a>

<a href="about.php" class="nav">About</a>

<a href="linkme.php" class="nav">Link Me</a>

<a href="gallery.php" class="nav">Gallery</a>

<a href="cursors.php" class="nav">Cursors</a>

<a href="resources.php" class="nav">Resources</a>

<a href="request.php" class="nav">Request</a>

<a href="report.php" class="nav">Report</a>

<a href="credit.php" class="nav">Credit</a>
</CENTER>

</B>



</div>

<div class="header">SOTM</div>

<div class="entry">
<CENTER>
<b><a href="http://www.hitherston.com/" target="_blank">Hitherston.com</a><BR> and <BR>Hitherston Forums</b><BR>
<a href="http://www.hitherston.com/" target="_blank"><img src="images/hf2.gif" class="img"></a>
<BR><font size=1>Hitherston.com is a free graphics and more site along with Hitherston forums, which is a community of artists of all ages and types who support and learn from each other.</font>
</div></center>
<div class="header">Mini Profile</div>

<div class="entry">
<strong>Likes:</strong> Graphic design, friends, and listening to music<br>
<strong>Dislikes:</strong> People who cannot take criticism, spiders, and my old work<br>

<br>
<b><a href="aboutme.php">Read More?</a></b>
</div>
<div class="header">Contact me</div>

<div class="entry">
<strong>Email:</strong> <a href="mailto:eycecrememan21@gmail.com">click</a>
</div>
<div class="header">Search</div>

<div class="entry"><div class="up">
<center><form method="get" action="http://www.google.com/custom" target="_top">
<table border="0">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

</td><center>
<td nowrap="nowrap"><center>
<input type="hidden" name="domains" value="phoenixf1re.melilyn.com"></input>
<input type="text" name="q" size="20" maxlength="255" value=""></input>
</td></tr>
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap"><center>
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="1" color="#000000">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="phoenixf1re.melilyn.com"></input>
<font size="1" color="#000000">PhoenixF1re</font>
</td>
</tr>
</table>
<input type="submit" name="sa" value="Google Search"></input>
<input type="hidden" name="client" value="pub-6160953061623911"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;A
C:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->

<script type="text/javascript"><!--
google_ad_client = "pub-6160953061623911";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as_rimg";
google_cpa_choice = "CAAQ-LukgwIaCFjMcQqZIfRaKJDD4IEB";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

<div class="header">Vote for Me!</div>

<div class="entry">
<CENTER>
<a href="http://www.autumn-sky.org/topsites/in.php?id=13"><img src="http://www.autumn-sky.org/topsites/button.php?id=13" border="0" vspace=1 /></a><BR>

<a href="http://www.magitek-designs.net/chimera/"><img src="http://www.magitek-designs.net/chimera/button.php?u=ZapatoDelFuego" alt="Chimera" border="0" vspace=1 /></a><BR>

<a href="http://www.createblog.com/topsite/in.php?id=73"><img src="http://www.createblog.com/images/top2.gif" border="0" vspace=1 /></a>




</CENTER>
</div>

<div class="header">Affiliates</div>

<div class="entry">
<CENTER>
<a href="http://www.hitherston.com" target="_blank"><img src="images/hf.gif" srcover="images/h_hf.gif" border="0"></a><a href="http://www.autumn-sky.org" target="_blank"><img src="images/autumnsky.gif" srcover="images/h_autumnsky.gif" border="0"></a><a href="http://www.takecamera.com/insipidwalls/" target="_blank"><img src="images/iw.gif" srcover="images/h_iw.gif" border="0"></a><a href="http://www.takecamera.com" target="_blank"><img src="images/tc.gif" srcover="images/h_tc.gif" border="0"></a> <a href="http://www.illumineering.com/" target="_blank"><img src="images/bill.gif" srcover="images/h_bill.gif" border="0"></a><a href="http://www.infamous-mind.net" target="_blank"><img src="images/mike.gif" srcover="images/h_mike.gif" border="0"></a><a href="http://decaelegance.infamous-mind.net" target=blank"><img src="images/decaelegance.gif" srcover="images/h_decaelegance.gif" border="0"></a><a href="http://www.janelleavery.net/"><img src="images/nell.gif" srcover="images/h_nell.gif" border="0"></a> <a href="http://freelinkbanner.hollandindia.nl/plugtiger/" target="blank"><img src="images/plugtiger.gif" srcover="images/h_plugtiger.gif" border="0"></a><BR><BR>


<a href="affiliates.php"><B>Apply?</a><BR>
<a href="myaffiliates.php">Read More?</B></a>
</CENTER>

</div>
<div class="header">Rotations</div>

<div class="entry">

<CENTER>
<a href="http://rotation.takecamera.com" target="_new"><img src="http://rotation.takecamera.com/images/rotationani2.gif" border=0 vspace=1></a><br>
<IFRAME SRC="http://www.takecamera.com/rotation/work.php?ID=Phoenixf1re" width=88px height=31px marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME><br>
</CENTER>
<!-- Eerie-Silence Rotation code begin -->
<CENTER>
<IFRAME SRC="http://www.eerie-silence.net/rotation/work.php?ID=ZapatoDelFuego" width=92 height=41 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no" allowTransparency="true"></IFRAME>
</CENTER>
<!--Eerie-Silence Rotation code end -->
<CENTER>
<IFRAME SRC="http://www.u-plugit.net/plugsites-exchange/ebanner/work.php?ID=ZapatoDelFuego" width=88 height=31 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
<br><a href=http://www.plugsites-exchange.u-plugit.net/ target="_blank"><img src="http://www.u-plugit.net/images/button2.gif" width="88" height="9" border="0" alt="U-PlugIt Exchange" title="U-PlugIt PlugSiteExchange"></a>
</CENTER>

</div>






<div class="header">Hands Off</div>

<div class="entry">
<center>
<a href="wp-admin/">WP Login</a>
<BR>
<script type="text/javascript" src="http://s24.sitemeter.com/js/counter.js?site=s24phoenixphoenix">
</script>
<noscript>
<a href="http://s24.sitemeter.com/stats.asp?site=s24phoenixphoenix" target="_top">
<img src="http://s24.sitemeter.com/meter.asp?site=s24phoenixphoenix" alt="Site Meter" border="0"/ width="80" height="8"></a>
</noscript>
<BR>
<a href="http://www.createblog.com/stats/index.php?id=236"><img id="cb_tracker" alt="Blog tracker" border="0" src="http://www.createblog.com/stats/log.php" width="80" height="15" /></a>
<script type="text/javascript">
if (cb_stat != true) {
var refer = document.referrer;
var cb_stat = true;
document.images["cb_tracker"].src = "http://www.createblog.com/stats/log.php?id=236&r=" + refer;
}
</script>


</center>
</div>

</td><td width="6" style="font-size: 0px;">&nbsp;</td><td width="395" valign="top">




need anything else?
freeflow
Does anything change when you change your comments to this:
CODE
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?>

<p class="title"><?php comments_number(__('0 CMMENTS'), __('1CMMENT'), __('% CMMENTS')); ?> </p>
<?php if ( comments_open() ) : ?>
    <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a>
<?php endif; ?>
</h2>

<?php if ( $comments ) : ?>
<?php foreach ($comments as $comment) : ?>


<?php comment_text() ?>
<h4><?php comment_author_link() ?> <?php edit_comment_link(__("Edit This"), ' |'); ?></h4>


<?php endforeach; ?>

</ol>

<?php else : // If there are no comments yet ?>
    <p><?php _e('No comments.'); ?></p>
<?php endif; ?>

<p><?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
<?php if ( pings_open() ) : ?>
    <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?></a>
<?php endif; ?>
</p>

<?php if ( comments_open() ) : ?>
<h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>
<center>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

<?php if ( $user_ID ) : ?>

<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout &raquo;</a></p>

<?php else : ?>
<center>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) _e(''); ?></small></label><br/>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>Mail  <?php if ($req) _e(''); ?></small></label><br/>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>

<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>

</form></center>

<?php endif; // If registration required and not logged in ?>

<?php else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>
phoenixpyre
nopperz

AIM me if its easier: ZapatoDelFuego
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.