Page 1 of 1
Inbox Overflowing
Posted: Tue Mar 04, 2014 3:18 pm
by Epiales
Heya all....long time no see. Been busy recently, and some health issues, but I'm back working on my game when I have the time and feel up to it.
One thing is that my inbox messages are overflowing...
Example:
Not sure the code to make it stop at the line so it doesn't go over, but sure someone knows
YAY...
Thanks!
Re: Inbox Overflowing
Posted: Tue Mar 04, 2014 3:35 pm
by Xaos
Epiales wrote:Heya all....long time no see. Been busy recently, and some health issues, but I'm back working on my game when I have the time and feel up to it.
One thing is that my inbox messages are overflowing...
Example:
Not sure the code to make it stop at the line so it doesn't go over, but sure someone knows
YAY...
Thanks!
Are you using divs is to display the message? If so, make the width of he div smaller.
Re: Inbox Overflowing
Posted: Tue Mar 04, 2014 3:49 pm
by a_bertrand
give an "overflow: auto" to your div or "overflow: hidden"
Re: Inbox Overflowing
Posted: Tue Mar 04, 2014 4:38 pm
by Epiales
Okay, this is what I have when you click the read message.
Code: Select all
if(isset($_POST['readmessage'])) {
$bypass = 1;
$randid = $_POST['randid'];
$date = $_POST['date'];
$updatemessage = "UPDATE messages SET readm='0' WHERE pid='$users_username' AND date='$date' AND randid='$randid'";
$user_query = mysqli_query($db_conx, $updatemessage);
$messageinfo = "SELECT * FROM messages where pid='$users_username' AND date='$date' AND randid='$randid'";
$user_query1 = mysqli_query($db_conx, $messageinfo);
$messageinfo3=mysqli_fetch_array($user_query1);
$messageinfo3['message'] = nl2br(preg_replace('#(\\]{1})(\\s?)\\n#Usi', ']', stripslashes($messageinfo3['message'])));
echo "<b><font color='lime'>Subject: " . $messageinfo3['subject'] . "<br><br></b>From: " . $messageinfo3['sender'] . " " . $messageinfo3['date'] . "<br><br>";
echo " " . $messageinfo3['message'] . "<br><br><br>";
echo "<center><form method='post' action='messages.php?replyto=$messageinfo3[sender]&subcontent=$messageinfo3[subject]'><input type='submit' value='Reply'></center><input type='hidden' name='reply1' value='1'></form>";
echo "<br>";
echo "<center><form method='post' action='messages.php'><input type='submit' value='Delete'></center>
<input type='hidden' name='deletemessage' value='1'>
<input type='hidden' name='randid' value='$messageinfo3[randid]'>
<input type='hidden' name='date' value='$messageinfo3[date]'>
</form>";
echo "<center><form method='post' action='messages.php'><input type='submit' value='Back to Inbox'>
<input type='hidden' name='messages' value='1'>
</form>";
}
Re: Inbox Overflowing
Posted: Tue Mar 04, 2014 5:06 pm
by Epiales
Okay, I got it kind of working... I may yell again cuz not sure I like what it's doing. Thanks!