vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Implement word-wrap on Last Thread Title Maximum Displayed Characters (https://vborg.vbsupport.ru/showthread.php?t=293593)

doob 01-04-2013 11:18 PM

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!

kh99 01-05-2013 01:15 PM

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.

doob 01-05-2013 08:59 PM

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.

kh99 01-05-2013 09:16 PM

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. :)

doob 01-06-2013 06:03 AM

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.


All times are GMT. The time now is 05:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00923 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete