dun dun dun
Joined: 17 Jul 2004 Posts: 1
|
Posted: Sat Jul 17, 2004 4:25 am Post subject: Why oh why Mozilla -_- |
|
|
My comments were working fine until a moment ago. They work in IE, but not in Mozilla. Can anyone look over my code and tell me if there's something there that's not Mozilla friendly? In Mozilla, the forms are 'frozen' you can't click in and start typing.
Quote: |
<?php // Do not delete these lines
if (basename($HTTP_SERVER_VARS["SCRIPT_FILENAME"]) == "b2comments.php")
die ("please, do not load this page directly");
if (($withcomments) or ($c)) {
$comment_author = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "name" : $HTTP_COOKIE_VARS["comment_author"];
$comment_author_email = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "email" : trim($HTTP_COOKIE_VARS["comment_author_email"]);
$comment_author_url = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "url" : trim($HTTP_COOKIE_VARS["comment_author_url"]);
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY comment_date";
$resultc = mysql_query($queryc);
if ($resultc) {
?>
<!-- you can start editing here -->
<?php /* this line is b2's motor, do not delete it */ $wxcvbn_c=0; while($rowc = mysql_fetch_object($resultc)) { $wxcvbn_c++; $commentdata = get_commentdata($rowc->comment_ID); ?>
<a name="c<?php comment_ID() ?>"></a>
<!-- comment -->
<p>
<b><?php comment_author() ?> <?php comment_author_email_link("email", " - ", "") ?><?php comment_author_url_link("url", " - ", "") ?></b>
<br />
<?php comment_text() ?>
<br />
<?php comment_date() ?> @ <?php comment_time() ?>
</p>
<p> </p>
<!-- /comment -->
<?php /* end of the loop, don't delete */ } if (!$wxcvbn_c) { ?>
<?php /* if you delete this the sky will fall on your head */ } ?>
<!-- form to add a comment -->
<form action="b2comments.post.php" method="post" name="form">
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($HTTP_SERVER_VARS["REQUEST_URI"]); ?>" />
<p class="commentfield">
Name?<br />
<input type="text" name="author" class="textarea" value="<?php echo $comment_author ?>" size="20" tabindex="1" />
</p>
<p class="commentfield">
Email?<br />
<input type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" />
</p>
<p class="commentfield">
URL?<br />
<input type="text" name="url" class="textarea" value="<?php echo $comment_author_url ?>" size="20" tabindex="3" />
</p
<!-- Clickable Smilies -->
<script language="JavaScript">
function smile(face)
{
var cache = document.form.comment.value;
document.form.comment.value = cache + " " + face;
document.form.comment.focus();
}
</script>
<a href="javascript:smile(':banghead:')"><img src="http://farandaway.org/log/b2-img/smilies/banghead.gif" border="0" alt="banghead"></a>
<a href="javascript:smile(':banghead:')"><img src="http://farandaway.org/log/b2-img/smilies/bow.gif" border="0" alt="bow"></a>
<a href="javascript:smile(':butthead:')"><img src="http://farandaway.org/log/b2-img/smilies/butthead.gif" border="0" alt="butthead"></a>
<a href="javascript:smile(':censored:')"><img src="http://farandaway.org/log/b2-img/smilies/censored.gif" border="0" alt="censored"></a>
<a href="javascript:smile(':chillpill:')"><img src="http://farandaway.org/log/b2-img/smilies/chillpill.gif" border="0" alt="chillpill"></a>
<a href="javascript:smile(':confused:')"><img src="http://farandaway.org/log/b2-img/smilies/confused.gif" border="0" alt="confused"></a>
<a href="javascript:smile(' ')"><img src="http://farandaway.org/log/b2-img/smilies/cool.gif" border="0" alt="cool"></a>
<a href="javascript:smile(':crossfingers:')"><img src="http://farandaway.org/log/b2-img/smilies/crossfingers.gif" border="0" alt="crossfingers"></a>
<a href="javascript:smile(':crying:')"><img src="http://farandaway.org/log/b2-img/smilies/crying.gif" border="0" alt="crying"></a>
<a href="javascript:smile(':embarrassed:')"><img src="http://farandaway.org/log/b2-img/smilies/embarrassed.gif" border="0" alt="embarrassed"></a>
<a href="javascript:smile(':eye-popping:')"><img src="http://farandaway.org/log/b2-img/smilies/eye-popping.gif" border="0" alt="eye-popping"></a>
<a href="javascript:smile(':footinmouth:')"><img src="http://farandaway.org/log/b2-img/smilies/footinmouth.gif" border="0" alt="footinmouth"></a>
<a href="javascript:smile(' ')"><img src="http://farandaway.org/log/b2-img/smilies/grin.gif" border="0" alt="grin"></a>
<a href="javascript:smile(':haha:')"><img src="http://farandaway.org/log/b2-img/smilies/haha.gif" border="0" alt="haha"></a>
<a href="javascript:smile(':heartbeat:')"><img src="http://farandaway.org/log/b2-img/smilies/heartbeat.gif" border="0" alt="heartbeat"></a>
<br />
<a href="javascript:smile(':highfive:')"><img src="http://farandaway.org/log/b2-img/smilies/highfive.gif" border="0" alt="highfive"></a>
<a href="javascript:smile(':hug:')"><img src="http://farandaway.org/log/b2-img/smilies/hug.gif" border="0" alt="hug"></a>
<a href="javascript:smile(':hurray:')"><img src="http://farandaway.org/log/b2-img/smilies/hurray.gif" border="0" alt="hurray"></a>
<a href="javascript:smile(':irked:')"><img src="http://farandaway.org/log/b2-img/smilies/irked.gif" border="0" alt="irked"></a>
<a href="javascript:smile('')"><img src="http://farandaway.org/log/b2-img/smilies/mad.gif" border="0" alt="mad"></a>
<a href="javascript:smile(':no:')"><img src="http://farandaway.org/log/b2-img/smilies/no.gif" border="0" alt="no"></a>
<a href="javascript:smile(':nuts:')"><img src="http://farandaway.org/log/b2-img/smilies/nuts.gif" border="0" alt="nuts"></a>
<a href="javascript:smile(':point:')"><img src="http://farandaway.org/log/b2-img/smilies/point.gif" border="0" alt="point"></a>
<a href="javascript:smile(':relieved:')"><img src="http://farandaway.org/log/b2-img/smilies/relieved.gif" border="0" alt="relieved"></a>
<a href="javascript:smile(':rofl:')"><img src="http://farandaway.org/log/b2-img/smilies/rofl.gif" border="0" alt="rofl"></a>
<a href="javascript:smile(' ')"><img src="http://farandaway.org/log/b2-img/smilies/sad.gif" border="0" alt="sad"></a>
<a href="javascript:smile(':sarcastic:')"><img src="http://farandaway.org/log/b2-img/smilies/sarcastic.gif" border="0" alt="sarcastic"></a>
<a href="javascript:smile(':scratchchin:')"><img src="http://farandaway.org/log/b2-img/smilies/scratchchin.gif" border="0" alt="scratchchin"></a>
<a href="javascript:smile(' ')"><img src="http://farandaway.org/log/b2-img/smilies/smile.gif" border="0" alt="smile"></a>
<br />
<a href="javascript:smile(':soapbox:')"><img src="http://farandaway.org/log/b2-img/smilies/soapbox.gif" border="0" alt="soapbox"></a>
<a href="javascript:smile(':stfu:')"><img src="http://farandaway.org/log/b2-img/smilies/stfu.gif" border="0" alt="stfu"></a>
<a href="javascript:smile(':thumbsdown:')"><img src="http://farandaway.org/log/b2-img/smilies/thumbsdown.gif" border="0" alt="thumbsdown"></a>
<a href="javascript:smile(':thumbsup:')"><img src="http://farandaway.org/log/b2-img/smilies/thumbsup.gif" border="0" alt="thumbsup"></a>
<a href="javascript:smile(' ')"><img src="http://farandaway.org/log/b2-img/smilies/tounge.gif" border="0" alt="tounge"></a>
<a href="javascript:smile(':tounge-tied:')"><img src="http://farandaway.org/log/b2-img/smilies/tounge-tied.gif" border="0" alt="tounge-tied"></a>
<a href="javascript:smile(':twocents:')"><img src="http://farandaway.org/log/b2-img/smilies/twocents.gif" border="0" alt="twocents"></a>
<a href="javascript:smile(':victory:')"><img src="http://farandaway.org/log/b2-img/smilies/victory.gif" border="0" alt="victory"></a>
<a href="javascript:smile(':wave:')"><img src="http://farandaway.org/log/b2-img/smilies/wave.gif" border="0" alt="wave"></a>
<a href="javascript:smile(':wtf:')"><img src="http://farandaway.org/log/b2-img/smilies/wtf.gif" border="0" alt="wtf"></a>
<a href="javascript:smile(':yes:')"><img src="http://farandaway.org/log/b2-img/smilies/yes.gif" border="0" alt="yes"></a>
<a href="javascript:smile(':zzz:')"><img src="http://farandaway.org/log/b2-img/smilies/zzz.gif" border="0" alt="zzz"></a>
<!-- End of Clickable Smilies -->
<p class="commentfield">
Comment?<br />
<textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea">comment</textarea>
</p>
<p class="commentfield">
<input type="checkbox" name="comment_autobr" value="1" <?php
if ($autobr)
echo " checked=\"checked\"" ?> tabindex="6" /> Auto-BR?
<input type="submit" name="submit" class="buttonarea" value="Okay" tabindex="5" />
</p>
</form>
<!-- /form -->
<p></p>
<a href="javascript:history.go(-1)">Go Back?</a>
<p></p>
<em>You are commenting on the following entry :</em>
<?php // if you delete this the sky will fall on your head
}
} else {
return false;
}
?>
|
I've been using this template for a year so I don't know why it would stop working now. Did I delete something? Any help would be appreciated. |
|