vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   vb5 Search Module - Latest forum posts widget, How to add more lines? (https://vborg.vbsupport.ru/showthread.php?t=325171)

Steven G 05-30-2017 11:28 AM

vb5 Search Module - Latest forum posts widget, How to add more lines?
 
Dear vB5 users!

Please help me how can I set the Search Module in vB5 to display more than 1 lines. I would like to display my Latest forum posts and it shows only 1 line for Title, 1 line for Author, and 1 line for the post's text.

https://vborg.vbsupport.ru/external/2017/05/4.jpg

I would like it to display more lines like it was in vB4: (also for Title)

https://vborg.vbsupport.ru/external/2017/05/5.jpg

Any help appreciated.

Thanks,
Steve:confused:

noypiscripter 05-30-2017 05:07 PM

Add this custom CSS in css_additional.css template in AdminCP or in Sitebuilder > Style > CSS Editor.

Code:

.b-post-sm__title,
.b-post-sm__post-content,
.b-post-sm__author {
    white-space: normal;
    word-break: break-all;
}


Steven G 05-31-2017 05:45 AM

Hello Noypiscripter,

Wow. Thank you very much. It Works. The Latest forum posts widget is now super.
And I know now where to put the custom css codes later.

I have another problem because of this change, it affects every widget, that now the Latest Articles widget contains too many lines. (20 lines as in the preview break on the Articles page - and that is too much)

Is there a simple solution to reduce the number of the displayed lines to 3?
I've tried to insert different Line Clamping codes from the web (just copy and paste) but it doesn't have any effect. Maybe because I am not a programmer and do it in the wrong way.

Thanks,
Steve

noypiscripter 06-03-2017 12:23 AM

Line clamping in CSS is only supported in webkit browsers. So only in Chrome, Safari and Opera. Not Firefox and IE.

Steven G 06-03-2017 07:08 PM

Ok. I see vB4 also has a Latest Articles box with too long text. So only this two option exist 1 line or too long text. I think I'll choose the longer descriptions. Thanks, for your help.


All times are GMT. The time now is 04:22 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.02452 seconds
  • Memory Usage 1,716KB
  • 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)bbcode_code_printable
  • (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