Stinger
02-03-2009, 10:04 PM
Hi there
I only recently found this website but wow what a great resource it is!
I am currently working on a new project of my own, a website and forum for the model of car I own and love; and on the home page (index.php) I have a piece of code which calls a file that then displays a number of the latest threads from my forums.
This all works fine and it displays the 5 newest threads nicely. The problem I have is some of the thread topics it displays on the home page are too long and it busts the table or goes to a second line which I don't want to happen.
Is there a way I can have it only display a certain amount of characters instead of the entire thread topic. Something like this; "This is the name of my new threa...." and stop when it reaches the limit.
If you want to see the code im using please let me know.
Thanks
Ryan
I only recently found this website but wow what a great resource it is!
I am currently working on a new project of my own, a website and forum for the model of car I own and love; and on the home page (index.php) I have a piece of code which calls a file that then displays a number of the latest threads from my forums.
This all works fine and it displays the 5 newest threads nicely. The problem I have is some of the thread topics it displays on the home page are too long and it busts the table or goes to a second line which I don't want to happen.
Is there a way I can have it only display a certain amount of characters instead of the entire thread topic. Something like this; "This is the name of my new threa...." and stop when it reaches the limit.
If you want to see the code im using please let me know.
Thanks
Ryan