PDA

View Full Version : BB Code Enhancements - Fullsize inline attachment / Attachment Mode BBCode


tdev1
03-15-2011, 10:00 PM
What is this
This product allows you to:
- display attachments inline in the post in full size with the 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] (https://vborg.vbsupport.ru/misc.php?do=bbcode#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:
[attachfull]<ATTACHMENTID>

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

hidden

2) remove the thumbnails of all attachments:

nothumb


Example usage of attachmode
nothumb

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

What it does
the [attachmode] and 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:
[attachfull]189341
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
03-16-2011, 02:35 AM
Very promising. Are the codes displayed on the editor toolbar? Would it be possible to set it to work with different usergroups?

sweetpotato
03-20-2011, 05:49 AM
I love this mod, thank you. How to display code on editor so members can easily use it?

GeorgeEcuador
03-22-2011, 04:21 AM
the images used to go bigger

jimsflies
06-09-2011, 09:06 AM
I love it...what would it take to use it in 3.8?

sticky
06-10-2011, 12:59 AM
Is there a way to force users to use attach inline only?

jimsflies
06-12-2011, 02:55 PM
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
11-12-2017, 10:00 AM
this would be a prime thing to see working....

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