Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Er.. Help :S

  1. #1
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default Er.. Help :S

    Kay, im making a forum, But when i enter a message such as

    dguiwedwejifunwefuhejfdfbdvbduvbcjkvhdbvuxcybvsdbc usdcydguiwedwejifunwefuhejfdfbdvbduvbcjkvhdbvuxcyb vsdbcusdcydguiwedwejifunwefuhejfdfbdvbduvbcjkvhdbv uxcybvsdbcusdcydguiwedwejifunwefuhejfdfbdvbduvbcjk vhdbvuxcybvsdbcusdcydguiwedwejifunwefuhejfdfbdvbdu vbcjkvhdbvuxcybvsdbcusdcy

    it doesnt word wrap it when displaying :S
    Ive tried putting it in a div with a fixed width, but thats not having any affect on it.. :S

    Any suggestions?

    Its in a table with width="700" and ive also tried table witdth at 100%. Makes no diff.
    Coming and going...
    Highers are getting the better of me

  2. #2
    Join Date
    Nov 2007
    Posts
    162
    Tokens
    0

    Default

    Did you update the div html code?

    HTML Code:
    container {
    width: 700px;
    height: (whatever it is);
    (anything else here)
    
    </style>
    
    <div id="container">
    (any info here.)
    </div>
    
    
    
    

  3. #3
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Yh.....
    Coming and going...
    Highers are getting the better of me

  4. #4
    Join Date
    Nov 2007
    Posts
    162
    Tokens
    0

    Default

    Post the code then please?

  5. #5
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    <?
    session_start
    ();
    include(
    "../config.php");
    include(
    "../func.php");
    $ip = $_SERVER['REMOTE_ADDR'];
    if(!isset(
    $_SESSION[usr_name]) || empty($_SESSION[usr_name]) || !isset($_SESSION[usr_level]) || empty($_SESSION[usr_level]))
    {
    session_destroy();
    session_unset();
    error(1);
    }
            
    $add = clean($_GET[add]);
            if(
    $add==add)
            {
            
    $lim = mysql_num_rows(mysql_query("select * from usr_forum_post"));
            if(
    $level[allow_html]!=1)
            
    $message = clean($_POST[message]);
            else
            
    $message = $_POST[message];
            
    mysql_query("insert into usr_forum_post(topic,user,message) values('$id','$_SESSION[usr_name]','$message')");
            
    $now = time();
            
    mysql_query("update usr_forum_topic set lastpost = '$now' where id = '$id'");
            
    mysql_query("update usr_forum_forums set lastpost = '$topname[title]', postby = '$_SESSION[usr_name]' where id = '$id'");
            
    header("location: viewtopic.php?id=$id&page=$page");
            }
            
    ?>
            <?
    $t1 
    = mysql_query("select * from usr_config where aspect = 'SITE_NAME'");
    $title = mysql_fetch_array($t1);
    $lev = mysql_query("select * from usr_level where level = '$_SESSION[usr_level]'");
    $level = mysql_fetch_array($lev);
    $id = clean($_GET[id]);
    $page = clean($_GET[page]);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>UserSystem v2 &raquo; <? echo("$title[preference]");?> &raquo; Forum</title>
    <link rel="stylesheet" type="text/css" href="forum.css" />
    <style type="text/css">
    <!--
    .style1 {
        font-size: small;
        color: #FFFFFF;
    }
    .reply{
        font-size:x-small;
        color:#000000;
        font-family:verdana;
    }
    .message{width:500;
            height:100%;
            }
    -->
    </style>
    </head>
    <body bgcolor="#ffffff">
    <div align="center">
    <table border="0" cellpadding="0" cellspacing="0" width="770">
      <tr>
       <td><img src="skin/spacer.gif" width="18" height="1" border="0" alt="" /></td>
       <td><img src="skin/spacer.gif" width="18" height="1" border="0" alt="" /></td>
       <td><img src="skin/spacer.gif" width="512" height="1" border="0" alt="" /></td>
       <td><img src="skin/spacer.gif" width="203" height="1" border="0" alt="" /></td>
       <td><img src="skin/spacer.gif" width="19" height="1" border="0" alt="" /></td>
       <td><img src="skin/spacer.gif" width="1" height="1" border="0" alt="" /></td>
      </tr>
     
      <tr>
       <td colspan="5"><img name="skin/forum_r1_c1" src="skin/forum_r1_c1.png" width="770" height="144" border="0" id="skin/forum_r1_c1" alt="" /></td>
       <td><img src="skin/spacer.gif" width="1" height="144" border="0" alt="" /></td>
      </tr>
      <tr>
       <td rowspan="2" colspan="2"><img name="skin/forum_r2_c1" src="skin/forum_r2_c1.png" width="36" height="49" border="0" id="skin/forum_r2_c1" alt="" /></td>
       <td bgcolor="#0597BC"><?
       
    /* Controls */
    $clock = mysql_fetch_array(mysql_query("select * from usr_forum_post where id = '$id'"));
    $clock2 = mysql_fetch_array(mysql_query("select * from usr_forum_topic where id = '$clock[topic]'"));
    if(
    $level[mod_access]==1 || $level[adm_access]==1)
    {
    if(
    $clock2[lock]==1)
    echo(
    '<a href="action.php?act=unlock&id='.$id.'"><img src="skin/bar_unlock.png" /></a>');
    else
    echo(
    '<a href="action.php?act=lock&id='.$id.'"><img src="skin/bar_lock.png" /></a>');
    if(
    $clock2[sticky]==1)
    echo(
    '<a href="action.php?act=unstick&id='.$id.'"><img src="skin/bar_unsticky.png" /></a>');
    else
    echo(
    '<a href="action.php?act=stick&id='.$id.'"><img src="skin/bar_sticky.png" /></a>');
    echo(
    '<a href="action.php?act=delete&id='.$id.'"><img src="skin/bar_delete.png" /></a>');
    }
    $chk_lock1 = mysql_fetch_array(mysql_query("select * from usr_forum_topic where id = '$id'"));
    $chk_lock2 = mysql_fetch_array(mysql_query("select * from usr_forum_forums where id = '$chk_lock1[forumid]'"));
    if(
    $chk_lock2[lock]!=1)
    echo(
    '<a href="newtopic.php?id='.$chk_lock1[forumid].'"><img src="skin/bar_new.png" /></a>');
    /* End */
    ?></td>
       <td rowspan="2" colspan="2"><img name="skin/forum_r2_c4" src="skin/forum_r2_c4.png" width="222" height="49" border="0" id="skin/forum_r2_c4" alt="" /></td>
       <td><img src="skin/spacer.gif" width="1" height="21" border="0" alt="" /></td>
      </tr>
      <tr>
       <td><img name="skin/forum_r3_c3" src="skin/forum_r3_c3.png" width="512" height="28" border="0" id="skin/forum_r3_c3" alt="" /></td>
       <td><img src="skin/spacer.gif" width="1" height="28" border="0" alt="" /></td>
      </tr>
      <tr>
       <td background="skin/forum_r4_c1.png"></td>
       <td colspan="3" bgcolor="#FFFFFF"><div align="left">
      <?
    $id 
    = clean($_GET[id]);
    $topname = mysql_fetch_array(mysql_query("select * from usr_forum_topic where id = '$id'"));
    ?>
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1%"><img src="skin/top_left.png" width="8" height="30" /></td>
        <td width="98%" background="skin/top_middle.png" class="cat"><div align="center"><strong><span class="style1">Forum Browser </span></strong></div></td>
        <td width="1%"><img src="skin/top_right.png" width="7" height="30" /></td>
      </tr>
      <tr>
        <td height="39" background="skin/mid_left.png">&nbsp;</td>
        <td><a href="index.php">&raquo;Forum Home</a> <? $parent = mysql_fetch_array(mysql_query("select * from usr_forum_topic")); $parent = mysql_fetch_array(mysql_query("select * from usr_forum_forums where id = '$parent[forumid]'")); $panam = $parent[name];?><a href="viewforum.php?id=<? echo("$parent[id]");?>">&raquo;<? echo("$panam");?></a> <a href="javascript:history.go(0)">&raquo;Refresh</a><br />
        <div align="right">Page: <? 
        
    /* Post Limitting System */
        
    if(!$page)
        
    $page = 1;
        
    $lim = mysql_num_rows(mysql_query("select * from usr_forum_post where topic = '$id'"));
        
    $lim_1 = $lim/7;
        
    $lim_2 = ceil($lim_1);
        
    $lim_count = 1;
        while(
    $lim_count <= $lim_2){
        if(
    $lim_count==$page)
        echo(
    '<b>['.$lim_count.']</b>');
        else
        echo(
    '<a href="viewtopic.php?id='.$id.'&page='.$lim_count.'">['.$lim_count.']</a>');
        
    $lim_count++;
        }
        
    /* End */
        
    ?></div></td>
        <td background="skin/mid_right.png">&nbsp;</td>
      </tr>
      <tr style="width:6px;">
        <td><div align="right"><img src="skin/bot_left.png" width="6" height="6" /></div></td>
        <td><img src="skin/bot_middle.png" width="100%" height="6" /></td>
        <td valign="top"><img src="skin/bot_right.png" width="6" height="7" /></td>
      </tr>
    </table>
      <br />
      <br />
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1%"><div align="right"><img src="skin/top_left.png" width="8" height="30" /></div></td>
        <td width="98%" background="skin/top_middle.png" class="cat"><div align="center"><strong><span class="style1"><? if($topname[sticky]==1)echo("STICKY: ");?><? echo("$topname[title]");?> <? if($topname[lock]==1)echo("(LOCKED)");?></span></strong></div></td>
        <td width="1%"><img src="skin/top_right.png" width="7" height="30" /></td>
      </tr>
      <tr>
        <td height="39" background="skin/mid_left.png">&nbsp;</td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <?
        $s 
    = mysql_query("select * from usr_forum_post where topic = '$id' ORDER BY id ASC");
        
    $i = mysql_num_rows($s);
        if(
    $i==0)
        echo(
    "Sorry, No Posts Exist in this Topic!");
        
    /* Limiting System pt. II */
        
    if(!$page || $page==1)
        
    $get = mysql_query("select * from usr_forum_post where topic = '$id' ORDER BY id ASC LIMIT 1,7");
        else
        {
        
    $lim2_p2 = $page * 7;
        
    $lim2_p3 = $page - 1;
        
    $lim2_p1 = $lim2_p3 * 7;
        
    $pg_start = $lim2_p1 + 1;
        
    $pg_fin = $lim2_p2;
        
    $get = mysql_query("select * from usr_forum_post where topic = '$id' ORDER BY id ASC LIMIT $pg_start,7");
        }
        
    /* End */
        
    while($top = mysql_fetch_array($get))
        { 
    ?>
          <tr>
            <td width="25%"><div align="center">
            <?
            $uinf 
    = mysql_fetch_array(mysql_query("select * from usr_users where username = '$top[user]'"));
            if(
    $uinf[vipen]==1)
        {
        
    $ck = mysql_num_rows(mysql_query("select * from usr_vip where userid = '$uinf[id]'"));
        if(
    $ck!=0)
        {
        
    $vio = mysql_fetch_array(mysql_query("select * from usr_vip where userid = '$uinf[id]'"));
        
    $vil = mysql_fetch_array(mysql_query("select * from usr_vipdb where id = '$vio[vipid]'"));
        
    $lev2 = mysql_fetch_array(mysql_query("select * from usr_level where level = '$vil[vip]'"));
        
    $col = $lev2[name_col];
        }
        else
        {
        
    $lev2 = mysql_fetch_array(mysql_query("select * from usr_level where level = '$uinf[level]'"));
        
    $col = $lev2[name_col];
        }
        }
        else
        {
        
    $lev2 = mysql_fetch_array(mysql_query("select * from usr_level where level = '$uinf[level]'"));
        
    $col = $lev2[name_col];
        }
            echo(
    '<b><font color="'.$col.'">'.$uinf[username].'</font></b>');
            echo(
    "<br />");
            if(!empty(
    $uinf[avator])){
            echo(
    '<img src="'.$uinf[avator].'" alt="'.$uinf[username].'\'s Avator" />');
            }
            if(
    $uinf[vipen]==1)
        {
        
    $ck = mysql_num_rows(mysql_query("select * from usr_vip where userid = '$uinf[id]'"));
        if(
    $ck!=0)
        {
        
    $vio = mysql_fetch_array(mysql_query("select * from usr_vip where userid = '$uinf[id]'"));
        
    $vil = mysql_fetch_array(mysql_query("select * from usr_vipdb where id = '$vio[vipid]'"));
        
    $lev2 = mysql_fetch_array(mysql_query("select * from usr_level where level = '$vil[vip]'"));
        
    $level = $lev2[name];
        }
        else
        {
        
    $lev2 = mysql_fetch_array(mysql_query("select * from usr_level where level = '$uinf[level]'"));
        
    $level = $lev2[name];
        }
        }
        else
        {
        
    $lev2 = mysql_fetch_array(mysql_query("select * from usr_level where level = '$uinf[level]'"));
        
    $level = $lev2[name];
        }
     
            echo(
    "<br />Rank: $level");
            echo(
    "<br /><br />");
            echo(
    "Credits: $uinf[credits]");
            
    ?>
            </div></td>
            <td width="75%">
            <!--
            Edit Controls
            -->
            <? 
            $lev 
    = mysql_query("select * from usr_level where level = '$_SESSION[usr_level]'");
    $level = mysql_fetch_array($lev);
            if(
    $level[adm_access]==1 || $level[mod_access]==1 || $top[user]==$_SESSION[usr_name])
            { 
    ?>
    <table width="72px" border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
        <td height="18" background="skin/menu.gif"><div align="center"><strong><a href="editpost.php?id=<? echo("$top[id]");?>">Edit</a></strong></div></td>
      </tr>
    </table>
            <? }
            if(
    $level[adm_access]==1 || $level[mod_access]==1)
            { 
            
    ?>
            <table width="72px" border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
        <td height="18" background="skin/menu.gif"><div align="center"><strong><a href="deletepost.php?id=<? echo("$top[id]");?>">Remove</a></strong></div></td>
      </tr>
    </table>
    <? } ?>
            <? 
            $top
    [message] = nl2br($top[message]);
            
    $top[message] = bb($top[message]);
            
    ?>
            <?
    echo('<div class="message">');
            echo(
    "$top[message]");
    echo(
    '</div>');
            
    ?></td>
          </tr>
          <tr>
            <td colspan="2"><hr /></td>
            </tr>
          <? } ?>
        </table>
          </td>
        <td background="skin/mid_right.png">&nbsp;</td>
      </tr>
      <tr style="width:6px;">
        <td><div align="right"><img src="skin/bot_left.png" width="6" height="6" /></div></td>
        <td><img src="skin/bot_middle.png" alt=" " width="100%" height="6" /></td>
        <td valign="top"><img src="skin/bot_right.png" width="6" height="7" /></td>
      </tr>
    </table>
    <? if($topname[lock]!=1){ ?>
    <br /><br />
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1%"><div align="right"><img src="skin/top_left.png" width="8" height="30" /></div></td>
        <td width="98%" background="skin/top_middle.png" class="cat"><div align="center" class="style1"><strong>Reply To Topic </strong></div></td>
        <td width="1%"><img src="skin/top_right.png" width="7" height="30" /></td>
      </tr>
      <tr>
        <td height="39" background="skin/mid_left.png">&nbsp;</td>
        <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><div align="center">
            <form action="?add=add&id=<? echo("$id");?>&page=<? 
            $p 
    = $i/7;
            
    $pa = ceil($p);
            echo(
    "$pa");
            
    ?>" method="post">
            <textarea name="message" cols="80" rows="8" class="reply"></textarea>
            <br /><br />
            <input type="submit" value="Add Reply" /><input type="reset" value="Clear Message" />
            </form>
            </div></td>
          </tr>
        </table></td>
        <td background="skin/mid_right.png">&nbsp;</td>
      </tr>
      <tr style="width:6px;">
        <td><div align="right"><img src="skin/bot_left.png" width="6" height="6" /></div></td>
        <td><img src="skin/bot_middle.png" width="100%" height="6" /></td>
        <td valign="top"><img src="skin/bot_right.png" width="6" height="7" /></td>
      </tr>
    </table>
    <? } ?></div></td>
       <td background="skin/forum_r4_c5.png"></td>
       <td><img src="skin/spacer.gif" width="1" height="377" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="5"><img name="skin/forum_r5_c1" src="skin/forum_r5_c1.png" width="770" height="24" border="0" id="skin/forum_r5_c1" alt="" /></td>
       <td><img src="skin/spacer.gif" width="1" height="24" border="0" alt="" /></td>
      </tr>
    </table>
    </div>
    </body>
    </html>
    Last edited by MrCraig; 28-11-2007 at 05:36 PM.
    Coming and going...
    Highers are getting the better of me

  6. #6
    Join Date
    Nov 2007
    Posts
    162
    Tokens
    0

    Default

    Try setting a main body container.

  7. #7
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    And that is...

    PHP Code:
    <?
    echo('<div class="message">');
            echo(
    "$top[message]");
    echo(
    '</div>');
            
    ?>
    Coming and going...
    Highers are getting the better of me

  8. #8
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    if your using dreamweaver.. there should be a button at the bottom in properties when you select the table that has No Wrap, try unchecking that if it is checked

    dont know if you are using it though

  9. #9
    Join Date
    Nov 2007
    Posts
    162
    Tokens
    0

    Default

    CJ, I Mean a main CSS container.

    body {
    } or whatever

  10. #10
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Yh im using dreamweaver..

    And i dont see it :S?

    + A why would i put in body tag ?
    Coming and going...
    Highers are getting the better of me

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •