Manigold
Active Member
- Joined
- Nov 2, 2017
- Messages
- 197
- Solutions
- 8
- Reaction score
- 47
I'm using znote aac ,and i have a problem with character comments and guild motd .Hope someone can help-me.
Here's my problem, apparently the lines aren't breaking as they should :
myaccount.php comments part:
and characterprofile.php comments part:
Here's my problem, apparently the lines aren't breaking as they should :
myaccount.php comments part:
PHP:
// Change character comment PAGE1:
case 'change_comment':
$render_page = false; // Regular "myaccount" page should not render
if (user_character_account_id($char_name) === $session_user_id) {
$comment_data = user_znote_character_data(user_character_id($char_name), 'comment');
?>
<!-- Changing comment MARKUP -->
<h1>Change comment on:</h1>
<form action="" method="post">
<ul>
<li>
<input name="action" type="hidden" value="update_comment">
<input name ="selected_character" type="text" value="<?php echo $char_name; ?>" readonly="readonly">
</li>
<li>
<font class="profile_font" name="profile_font_comment">Comment:</font> <br>
<textarea name="comment" cols="70" rows="10"><?php echo preg_replace('/\v+|\\\r\\\n/','<br/>', $comment_data['comment']); ?></textarea>
</li>
<?php
/* Form file */
Token::create();
?>
<li><input type="submit" value="Update Comment"></li>
</ul>
</form>
<?php
}
break;
//end
}
}
}
and characterprofile.php comments part:
PHP:
<!-- Display player status end -->
<?php if (isset($profile_znote_data['comment']) === true && empty($profile_znote_data['comment']) === false) { ?>
<tr><td>Comment:</td>
<td><?php echo preg_replace('/\v+|\\\r\\\n/','<br />', $profile_znote_data['comment']); ?></td></tr>
<?php } ?>