vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   CMS article preview too long (https://vborg.vbsupport.ru/showthread.php?t=285314)

Exeter 07-08-2012 04:35 AM

CMS article preview too long
 
I am having trouble with the article preview text length of two of my posts. The preview of these two posts is 3-4 times as long as the limit set in the options.

The preview length of all other articles (100+) works just fine. When I change the preview length in the settings, the preview text length changes as expected.

The two problem posts always stay the same length.

Is there something I am missing?

Lynne 07-08-2012 05:18 PM

Did the users use a Preview Break in the article? If so, that determines the length of the preview.

Exeter 07-09-2012 05:12 PM

There is no preview break in the article.
The XML seems to be well formed too, and nothing special.

In fact, if I copy the pagetext field from "*_cms_article" into a host article on my test instance (same VB version), generation of the preview works flawlessly.

Moving the text into another article entry on the production machine does not work. The preview remains too long.

Are there any settings other than the preview length in this area? I traced the code. Nothing caught my eye.

Thanks for the tip about the preview break.
I inserted one. The preview is now the correct length, but that only hides the bug.

Lynne 07-09-2012 11:49 PM

I've never heard of this bug. The only other thing I can think of is some bbcode in the article causing an issue.

Head Roller 02-21-2013 08:09 PM

What is the preview break code? I have this same issue.

I will answer my own question:

[ PRBREAK ][ /PRBREAK ]


All times are GMT. The time now is 04:40 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.00969 seconds
  • Memory Usage 1,708KB
  • 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