 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
bigboobieflesh
Joined: 30 Jan 2005 Posts: 1
|
Posted: Sun Jan 30, 2005 3:33 am Post subject: I have a question with comments? |
|
|
I edited the template to be this:
Quote: | <?php /* Don't remove this line, it calls the b2 function files ! */
$blog=1; include ("blog.header.php"); while($row = mysql_fetch_object($result)) { start_b2();
?>
<head>
<title>Comment Whores</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="TRUE" name="MSSmartTagsPreventParsing" />
<LINK REL="stylesheet" HREF="http://illregular.com/style.css" TYPE="text/css" />
<link rel="stylesheet" type="text/css" media="print" href="http://illregular.com/style.css" />
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<style type="text/css">
<!--
body,td,th {
color: #000000;
}
body {
background-color: #DBDA72;
}
.style1Copy {
background: #FEA3DF;
font: bold 9px arial;
text-transform: none;
}
.style1Copy2 {
background: #DBDA72;
font: bold 9px arial;
text-transform: none;
}
.style4 {background: #FEA3DF; font: bold 9px arial; text-transform: uppercase; font-size: 10px; }
.style5 {background: #DBDA72; font: bold 9px arial; text-transform: uppercase; font-size: 10px; }
-->
</style></head>
<body>
<div id="contentcomments">
<div class="storyContent">
<?php
$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 />%' ORDER BY comment_date";
$resultc = mysql_query($queryc);
if ($resultc) {
?>
<!-- you can start editing here -->
<a name="comments"></a>
<?php // these lines are b2's motor, do not delete
while($rowc = mysql_fetch_object($resultc)) {
$commentdata = get_commentdata($rowc->comment_ID);
?><a name="c<?php comment_ID() ?>"></a>
<!-- comment -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCFF00"><p align="right"><font color="#000000" size="1" face="tahoma"><b><strong><a href="$comment_author_url_link("url", " - ", "")" target="_blank"><?php comment_author() ?></a>
<br>
</strong>
</b> </font></p>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><div align="justify"><font color="#000000" size="1" face="tahoma">
<?php comment_text() ?>
</font></div></td>
</tr>
</table>
<!-- /comment -->
<br>
<br>
<?php //end of the loop, don't delete
}
?>
<div class="style1Copy"><centeR> Comments for Sex</center><!-- form to add a comment -->
</div><center>
<form action="/b2/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"]); ?>" />
<input type="text" name="author" class="textarea" value="<?php echo $comment_author ?>" size="20" tabindex="1" />
<br>
<input type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" />
<br>
<input type="text" name="url" class="textarea" value="<?php echo $comment_author_url ?>" size="20" tabindex="3" />
<br>
<textarea cols="20" rows="4" name="comment" tabindex="4" class="textarea">comment</textarea>
<script language="JavaScript" type="text/javascript">
function emoticon(theSmilie) {
theSmilie = ' ' + theSmilie + ' ';
if (document.form.comment.createTextRange && document.form.comment.caretPos) {
var caretPos = document.form.comment.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? theSmilie + ' ' : theSmilie;
} else {
document.form.comment.value += theSmilie;
}
document.form.comment.focus();
theSmilie = '';
}
</script>
<?php
$newrow = 0;
$prev_val="";
asort($b2smiliestrans);
while (list ($key, $val) = each ($b2smiliestrans)) {
if($prev_val and $val==$prev_val) { }
else if(!$prev_val or ($prev_val and $val!=$prev_val)){
?>
<img src="<?php echo "$smilies_directory/$val"; ?>" alt="<?php echo $key; ?>" border="0" onclick="emoticon('<?php echo $key; ?>')" onmouseover="style.cursor='hand'" />
<?php
$newrow++;
if($newrow == { //new row after specified number of smilies
echo '<br />';
$newrow = 0;
}
}
$prev_val = $val;
}
?>
<p class="commentfield">
<input type="submit" name="submit" class="buttonarea" value="ok" tabindex="5" />
</p>
</form>
<!-- /form -->
<center><div><b><span style="color: #0099CC"></span> <a href="javascript:window.close()" class="style1Copy">Close</a></b></div></center>
</center>
<?php // if you delete this the sky will fall on your head
}
?>
</div>
<!-- // this is just the end of the motor - don't touch that line either -->
<?php } ?>
</div>
</body>
</html> |
For example these are what they look like:
But, when you click the name (Which would be the link to there website) it goes to a 404 page: and shows this when you hover over it.
I think in the code it has to do with this part:
Quote: |
<td bgcolor="#CCFF00"><p align="right"><font color="#000000" size="1" face="tahoma"><b><strong><a href="$comment_author_url_link("url", " - ", "")" target="_blank"><?php comment_author() ?></a>
<br> |
But I don't know how to fix it... help! |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 363
|
Posted: Sun Jan 30, 2005 11:32 am Post subject: |
|
|
Change
Code: | $comment_author_url_link("url", " - ", "") | to
Code: | <?php echo $comment_author_url_link(\"url\", \" - \", \"\") ?> |
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2 © 2001, 2002 phpBB Group
|