vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - Fullsize inline attachment / Attachment Mode BBCode (https://vborg.vbsupport.ru/showthread.php?t=260447)

tdev1 03-15-2011 10:00 PM

Fullsize inline attachment / Attachment Mode BBCode
 
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:
Code:

[attachfull]<ATTACHMENTID>[/attachfull]
Usage of attachmode
it currently has two modes:
1) completely hide all attachments:
Code:

[attachmode]hidden[/attachmode]
2) remove the thumbnails of all attachments:
Code:

[attachmode]nothumb[/attachmode]
Example usage of attachmode
Code:

[attachmode]nothumb[/attachmode]
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:
Code:

[attachfull]189341[/attachfull]
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


All times are GMT. The time now is 04:51 PM.

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.00966 seconds
  • Memory Usage 1,726KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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