PDA

View Full Version : Images used w/ [attach] tag still shown inline


voter
07-09-2008, 02:10 PM
Is this a bug or configuration problem, that I am not able to see in news modul more than one attachment that puted in attach BBcode tag?

4546

Brian
07-10-2008, 06:18 PM
Do you have the 'Enable Attachments' setting with the news module set to pull all attachments?

Our Sponsors
 

voter
07-11-2008, 04:54 AM
Sure when I am enabling attachments in news it shows them all, but not only as inline pictures as well as tumbnails, that I don't want.
I need them like here as inline an no tumbnails.

4550

Brian
07-11-2008, 06:04 PM
Ahh, didn't realize that attachments were still shown inline like that. You should be able to correct that by looking for this line in the forum/includes/vba_cmps_include_top.php and vba_cmps_include_bottom.php files:
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

And adding this on a new line just below:
$bbcode_parser->unsetattach = true;

Our Sponsors
 

voter
07-13-2008, 05:10 PM
Thanks Brian it solves the problem form.
For others a tipp it is 204th line in vba_cmps_include_top.php and 169 in vba_cmps_include_bottom.php.

But, I guess it could be now a problem for those, who don't have included attachments as ATTACH tags in posts, as of box of thumbnails is no more visible.

Brian
07-14-2008, 01:05 PM
That only removes the attachments from being displayed below the post if they are not used in an [attach] tag.