The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Implement word-wrap on Last Thread Title Maximum Displayed Characters
This is in regards to Last Post display of Thread Title on ForumHome.
You can control the length of the title that is displayed through the AdminCP Forum Listing Display Options. Longer titles will still only display on 1 line. I'd like to get a longer title to display on 2 lines so that the Last Post column which is liquid doesn't get to wide. Any ideas? Thanks! |
#2
|
|||
|
|||
I'm not really an html/css person, except for very simple things, but it seems like what you could do is edit the template and find the variable that inserts the thread title, then put a max-width on the tag that surrounds it, or else put it in <span>...</span> tags and set the max-width for those.
|
#3
|
|||
|
|||
Its funny. I've tried setting table width and also wrapping the section I think I'm interested in a DIV with a fixed width, but using long title lengths still is allowing the table to grow/resize/go-liquid.
I would think the section I'm after is in the forumhome_forumbit_level2_post template for $forum[lastpostinfo] What's also intersting is that setting the title display to show full titles completely breaks all the other fixed width DIVS. I'm thinking something must be specifically set to NOT word-wrap. Bizarre! Any help appreciated. |
#4
|
|||
|
|||
Oh, right. I think the problem is that some of the tags have style="white-space:nowrap", so it's not going to wrap no matter what. But I guess if you remove it you might find it wraps to a really small space (but maybe that can be fixed by setting a min-width)?
Anyway, this is why I usually leave these question to someone who knows what they're doing. |
#5
|
|||
|
|||
Yeah. I had removed some of the nowrap tags without effect, but before also trying setting a div with a fixed width. Guess I'll give it a go again and see if doing both solves the problem.
--------------- Added [DATE]1357520148[/DATE] at [TIME]1357520148[/TIME] --------------- Solved. Removed nowrap and set a fixed width div. If I remember correctly most if not everything needed was in the forumhome_lastpostby but I may have touched FORUMHOME, FORUMDISPLAY, and forumhome_formbit_level2_post along the way. Thanks again to kh99 for insight. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|