View Full Version : recent forum posts widget
DemOnstar
06-10-2014, 03:29 AM
Hello there...
The recent forum posts widget (CMS) doesn't show images/attachments.
Is this as designed?
Thanks...
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
OK, so how would this be explained?
https://vborg.vbsupport.ru/attachment.php?attachmentid=149361&stc=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.........
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
[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..
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:
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...
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..
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.