vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=260447

Fullsize inline attachment / Attachment Mode BBCode
by tdev1
16 Mar 2011 01:03

1 Attachment(s)
What is this
This product allows you to:
- display attachments inline in the post in full size with the [attachfull] BBCode
- hide attached files within a blog post for example with the [attachmode] BBCode

attachfull is unrelated to attachmode, you can use one, both or neither of them in one post together

Usage of attachfull
works the same way as the original [attach] but displays the image in its full size and removes it from the attachment list at the post's bottom.

Example usage of attachfull
1. attach a file to a post
2. embed the full sized image within the post:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Usage of attachmode
it currently has two modes:
1) completely hide all attachments:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2) remove the thumbnails of all attachments:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example usage of attachmode

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Installation
simply import the attached file as new product:
AdminCP > Plugin System > Manage Products > [Add/Import Product]

What it does
the [attachmode] and [attachfull] tags are added to the valid BBCode list. When BBCode is parsed, it modifies the posts attachments on the fly depending on the tags.

Compatibility
- just plugins, no DB usage, no permanent changes to any data

Demo
look at this blog post: http://www.rigsofrods.com/entries/72-Japan-Tsunami
this line is used to display the image:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the image is attached to this post, but not displayed as attachment :)

History
  • 1.1 - added 'attachfull' which allows full-sized inline display of attachments
  • 1.0 - first version released

Taurus1 16 Mar 2011 04:35

Very promising. Are the codes displayed on the editor toolbar? Would it be possible to set it to work with different usergroups?

sweetpotato 20 Mar 2011 07:49

I love this mod, thank you. How to display code on editor so members can easily use it?

GeorgeEcuador 22 Mar 2011 06:21

the images used to go bigger

jimsflies 09 Jun 2011 11:06

I love it...what would it take to use it in 3.8?

sticky 10 Jun 2011 02:59

Is there a way to force users to use attach inline only?

jimsflies 12 Jun 2011 16:55

Has any one noticed that if you have a thread with more than one posts with attachments, that this mod only removes the automatic attachment display for the most recent one edited? Maybe its a conflict with something else I have going on, not sure...

In other words, if I'm the OP and someone else posts and uses the attachfull bbcode, that it seems to cause my first post to start showing the automated attachment again. But their's displays properly...however if I edit mine again, it causes their automatic attachment placement to start showing up.

IggyP 12 Nov 2017 12:00

this would be a prime thing to see working....

double displaying attachments by default in vb4 is quite the annoyance imho


All times are GMT. The time now is 17:53.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.
Copyright ©2001 - , vbulletin.org. All rights reserved.