Jump to content

kickindrummerkid

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by kickindrummerkid

  1. I TESTED IT IN FIREFOX AND OTHER BROWSERS AND IT ONLY WORKS IN INTERNET EXPLORER!
  2. IM FINE WITH THE WORD-WRAP FUNCTION! ITS JUST THAT THE "L" CHARACTER IS SHORTER THEN OTHER CHARACTERS SO IT WRAPS AT THE RIGHT AMOUNT OF CHARACTERS... BUT WRAPS HALF-WAY ACROSS TABLE BECAUSE THE L CHARACTER WIDTH IS SMALLER... LOOK "llllllllllllllllllllllllllllllllllllllllllllllllll   is smaller then CCCCCCCCCCCCCCCCCCCCCC" SO IT WRAPS EARLIER!
  3. ok well.. the way the other person was going with the 0, 1, 2, 3 etc...  is global grouplevels.  if you just want lets say two people to view.. then just grab the row IDs of the users you want and put them in an IF statement.  for example.. BELOW WOULD BE PART OF THE MYSQL DATABASE [table] [tr][td]USERID[/td][td]USERNAME[/td][/tr] [tr][td]1[/td][td]Bobby1041[/td][/tr] [tr][td]2[/td][td]AnUnknownUser[/td][/tr] [/table] Then.. make an if statement that just allows the people with those two userids to view it.. and if the userid is different use HEADER to move them to a new page.. or display a message. > If you need further help please reply or PM me.
  4. u see!!! THE 68 MESSES UP! The text wraps right only if I dont spam the lowercase L... if I do that then it wraps early because the L width is smaller and when it gets to 68 its only like halfway across table.  And the CSS only works in INTERNET EXPLORER... so I need another way to do this.  Thanks.. please help somebudy!
  5. well making it 68 doesnt work either...  so it still doesnt make difference. whenever it laps over it gets messed up.  putting a table there works... but if somebudy uses a character like "l" (lowercase L).. and just spams it.. it gets cut off early because the L width is smaller then the other characters.  So it goes to 69 and gets cut... but it didnt reach the end of the TD.  I need to find a way to let it reach the end and then wrap.
  6. lol ;)... i dont have a \n command... look at the picture.  you see... the text wraps when there is a space inserted...  so if somebudy was going to type "fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" forever it wud never wrap without the WORDWRAP function I added.  Which, at every 69 characters, it adds a space so the text will wrap and won't make the table resize to be bigger.  But, I'm still having problems with the TDs above when the text goes on multiple lines.  I've tried your thing and it doesn't work, and I knew it wouldn't because were both talking about different topics. see... what ur confused about is ur thinking im putting a new line in.. which i never am... im just adding a space so the text wraps without putting a new line in. also... I DO have that command with the ENTER button and the new lines and it DOES put a BR in...  but that isn't my problem.  the multiple lines u see in the first post automatically wrap and I never pressed the enter button the whole time.  your talking about the enter button and making BRs with it.. i have that already... i need to figure out why the TDs are getting messed up when my lines wrap over though. EDIT: If i make it put BRs when it gets to character 69 it does wrap and the TDs don't get messed up... but it wraps before the text reaches the end of the TD depending on how wide the characters are... I just want the characters to wrap at the end of the TD so the table doesn't expand and I don't know how to do that.
  7. dude your wrong.. because the wordwrap is putting a SPACE and is not making any new lines with the N\ command.  it wraps to the next line because the text has a space... if i never had the wordwrap command the table would keep going on forever because the text would never wrap.  plz help someone, thanks.
  8. My tables are becoming messed up when posting more the one line... like having multiple lines.  Please help, below has code and images.  If you need to contact me other then this forum you can email me at kickindrummerkid@gmail.com.  Or contact me on AIM at kickindrummerkid.  Or on MSN at kickindrummerkid@hotmail.com.  Thanks. Main Page, index.php: [code]// Grab variables from row while ($row = mysql_fetch_array($result)) { $id = $row['id']; $username = $row['username']; $date_posted = $row['date_posted']; $title = $row['title']; $post = $row['post']; $align = $row['align']; // Wrap variables so tables dont get messed up and expand $post = wordwrap($post, 69, " ", 1); ?> <table border="0" cellpadding="0" cellspacing="0" class="table_newspost">   <tr>     <td class="td_table_topleft"><div align="center"><img src="images/tables/topleft.jpg" width="14" height="14" /></div></td>     <td colspan="3" class="td_table_topmiddle td_newspost_topmiddle"><div align="center"></div></td>     <td class="td_table_topright"><div align="center"><img src="images/tables/topright.jpg" width="14" height="14" /></div></td>   </tr>   <tr>     <td class="td_table_leftmiddle"><div align="center"></div></td>     <td class="td_newspost_leftheader"><div align="left"><strong>Posted By: <?php echo $username; ?></strong></div></td>     <td class="td_newspost_middleheader"><div align="center"><strong><?php echo $title; ?></strong></div></td>     <td class="td_newspost_rightheader"><div align="right"><strong>Date: <?php echo $date_posted; ?></strong></div></td>     <td class="td_table_rightmiddle"><div align="center"></div></td>   </tr>   <tr>     <td class="td_table_leftmiddle"><div align="center"></div></td>     <td colspan="3"><div align="justify"><?php echo $post; ?></div></td>     <td class="td_table_rightmiddle"><div align="center"></div></td>   </tr>   <tr>     <td class="td_table_bottomleft"><div align="center"><img src="images/tables/bottomleft.jpg" width="14" height="14" /></div></td>     <td colspan="3" class="td_table_bottommiddle"><div align="center"></div></td>     <td class="td_table_bottomright"><div align="center"><img src="images/tables/bottomright.jpg" width="14" height="14" /></div></td>   </tr> </table><?php if($id != 1){ ?><br /><?php echo "\n"; } ?> <?php } // Grab database_disconnect function and disconnects from mysql funct_database_disconnect(); // Grab newline function for bottom funct_insert_newline(); funct_insert_newline(); ?>[/code] CSS Stylesheet, style.css: [code]table.table_newspost {  /* Newspost table (table holding the news posts) */ width: 514px; } td.td_newspost_topmiddle {  /* Newspost table topmiddle (topmiddle of newspost table) */ width: 486px; } td.td_newspost_leftheader {  /* Newspost table leftheader (leftheader of newspost table) */ width: 158px; } td.td_newspost_middleheader {  /* Newspost table leftheader (leftheader of newspost table) */ width: 170px; } td.td_newspost_rightheader {  /* Newspost table rightheader (rightheader of newspost table) */ width: 158px; }[/code] Ok, now here is the picture.  As you can see, the bottom post only has one line... so the title/table doesn't get all messed up and expand and stuff.  On the first post (top) it goes over multiple lines and the title and tables get all messed up and I have no clue why.  Please help.  Thanks. [img]http://www.sypherro.dynamitehosting.net/cta/Error.jpg[/img] Any help offered is a big deal, thanks everyone.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.