vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Change the length of CMS latest post widget snippet (https://vborg.vbsupport.ru/showthread.php?t=308336)

Jain Farstrider 02-14-2014 11:32 AM

Change the length of CMS latest post widget snippet
 
Is there a way to change the snippet length of a "latest post" widget on the CMS? I'm not talking about articles.

Lynne 02-14-2014 06:05 PM

It is the same setting for articles as for the widget - AdminCP > Settings > Options > Content Management > Default Preview Length.

You may be able to edit the widget php page directly if you need to change it only for that widget.

Jain Farstrider 02-14-2014 08:10 PM

Thank you for your reply but unfortunately changing content management default preview length does nothing at all, still cuts off at approximately 150.

I'm no coder at all, I mainly just improvise via googling, or copying somebody else's code and try to fiddle with it hoping to somehow get what I want :)

Anyway this is not too important so forget it.

Lynne 02-14-2014 11:10 PM

Did you make sure to Clear System Cache after you changed it? Otherwise the widget will just stay cached for whatever cache time you have set.

Jain Farstrider 02-15-2014 05:28 AM

I went to admin > maintenance > clear system cache and also cleared out my browser.

Still stuck at 150. In content management there is a text as quoted "This will be used for preview text length if you do not specify a preview break" prior to the snippet box.

That might be what is causing it to not change? If that is the case, then I'm afraid that I cannot do that as I do not want snippets outside of recent article widget to explode.

Lynne 02-15-2014 05:46 PM

Ah yes, that only works if you don't specify a preview break manually in the article.


All times are GMT. The time now is 08:11 AM.

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.01073 seconds
  • Memory Usage 1,709KB
  • 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
  • (6)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