Inbox Overflowing

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Inbox Overflowing

Post 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:

Image

Not sure the code to make it stop at the line so it doesn't go over, but sure someone knows :) YAY...

Thanks!
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
Xaos
Posts: 946
Joined: Wed Jan 11, 2012 4:01 am

Re: Inbox Overflowing

Post 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:

Image

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.
User avatar
a_bertrand
Posts: 1537
Joined: Mon Feb 25, 2013 1:46 pm

Re: Inbox Overflowing

Post by a_bertrand »

give an "overflow: auto" to your div or "overflow: hidden"
Creator of Dot World Maker
Mad programmer and annoying composer
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Re: Inbox Overflowing

Post 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>";
}
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Re: Inbox Overflowing

Post by Epiales »

Okay, I got it kind of working... I may yell again cuz not sure I like what it's doing. Thanks!
Nothing fancy, but a work in progress!

http://gameplaytoday.net
Post Reply

Return to “Beginner Help and Support”