vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   recent forum posts widget (https://vborg.vbsupport.ru/showthread.php?t=312028)

DemOnstar 06-10-2014 03:29 AM

recent forum posts widget
 
Hello there...
The recent forum posts widget (CMS) doesn't show images/attachments.
Is this as designed?

Thanks...

kh99 06-10-2014 08:57 AM

Yes, it displays a "plain text" version of the post. My guess is that it was done that way because the idea is to show the first sentence or so of the post in a small space, and if you allowed images and bbcodes, it would get very complicated.

DemOnstar 06-10-2014 10:47 AM

1 Attachment(s)
OK, so how would this be explained?

https://vborg.vbsupport.ru/attachmen...1&d=1402400714

These 2 posts were made with pictures and where the pictures are supposed to be, there is a gap.

Looks a bit odd......

Thanks..

Lynne 06-10-2014 02:24 PM

Hard to tell what is going on without a link to view the problem.

DemOnstar 06-10-2014 05:00 PM

Ok, got that.....

The link is here http://www.mightymoiety.com/content.php
But it may well change over time...

Thanks.........

kh99 06-11-2014 09:05 PM

Quote:

Originally Posted by DemOnstar (Post 2501380)
OK, so how would this be explained?

Well, obviously the space thing I mentioned doesn't apply, because there's enough space that the image could go there. Anyway, I looked at the html at the link you posted, and the "ultra white teeth" post has 2 blank lines, 1 before and one after the image, so that looks like it matches what's in the widget. The "in the doghouse" post has 14 <br> tags in the html after the image, so those translate to blank lines in the plain text. The thing I don't understand is why there isn't more space in the original post. Seems like there should be the equivalent of 14 blank lines. But I'm not really an html person, so maybe someone else could explain it.

DemOnstar 06-12-2014 02:47 AM

Thanks for the look in.
I also see another issue within the same widget.
A post has been made with a secondary title centered,bolded and coloured and in the widget it shows as

Code:

[CENTER]Come to Pattaya (Thailand) but make sure you buy more than one drink or you will get battered!

instead of

Come to Pattaya (Thailand) but make sure you buy more than one drink or you will get battered!

it seems the BB code is not being converted within the widget..

kh99 06-12-2014 08:08 AM

I don't know why that's happening. I think all bbcode should be stripped from the text shown in the widget. As a test you might try temporarily disabling all plugins by editing your includes/ config.php file and inserting the line:
Code:

define('DISABLE_HOOKS',true);
at the top just under the <?php. This will disable all mods so you'll want to remove it as soon as you check, but it's a test to see if any installed mods are causing a problem.

DemOnstar 06-12-2014 09:33 AM

OK, now that did it...

Code:

define('DISABLE_HOOKS',true);
How do I go about finding which plugin/mod is causing this? Do I have to disable each one as process of elimination or is there a better method?

Anyway, thanks, almost there..

kh99 06-12-2014 10:06 PM

Yeah, sorry, obviously that was the wrong line for disabling plugins, but you figured out the right one (and I fixed my post above to avoid confusion in the future).

You could disable each installed product one at a time and see when the problem disappears. If that doesn't work, check the plugin manager to see if there are any other added plugins that are part of the "vbulletin" product, and disable them one at a time.


All times are GMT. The time now is 05:52 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.01225 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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