4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Long text in small area
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Kdawg
Senior WebHelper
Senior WebHelper


Joined: 21 Apr 2003
Posts: 153

PostPosted: Wed Jun 30, 2004 1:23 am (13 years, 3 months ago) Reply with QuoteBack to Top

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.
OfflineView User's ProfileFind all posts by KdawgSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Jun 30, 2004 7:33 am (13 years, 3 months ago) Reply with QuoteBack to Top

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.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




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.064645 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme