|
Author |
Message |
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Wed Jun 30, 2004 1:23 am (20 years, 5 months ago) |
|
I am working on a site now and I have a little problem. In the layout there is a small space where the newest forum posts are sussposed to go, but as you know the title of a forum post could be very long. Do you guys have any suggestions about how to fix this problem? So that if someone posts a long title it scrolls or somthing. I just dont want the text to go out of the area. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Jun 30, 2004 7:33 am (20 years, 5 months ago) |
|
Try this:
Code: | $title_short = substr_replace($title, '...', 22); |
Then you could also use a title tag to show the full title on mouse hover. This is the system we're using for the news on the main 4WebHelp site. However, depending on the space you have available, this may not be necessary, since phpBB post titles have a limited length anyway. |
________________________________
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.165992 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |