Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Fullsize inline attachment / Attachment Mode BBCode Details »»
Fullsize inline attachment / Attachment Mode BBCode
Version: 1.1, by tdev1 tdev1 is offline
Developer Last Online: Apr 2016 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.1.2 Rating:
Released: 03-15-2011 Last Update: 03-15-2011 Installs: 18
Uses Plugins
Re-useable Code  
No support by the author.

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

Download Now

File Type: xml product-attachmode.xml (2.5 KB, 124 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-16-2011, 02:35 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very promising. Are the codes displayed on the editor toolbar? Would it be possible to set it to work with different usergroups?
Reply With Quote
  #3  
Old 03-20-2011, 05:49 AM
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this mod, thank you. How to display code on editor so members can easily use it?
Reply With Quote
  #4  
Old 03-22-2011, 04:21 AM
GeorgeEcuador GeorgeEcuador is offline
 
Join Date: Sep 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the images used to go bigger
Reply With Quote
  #5  
Old 06-09-2011, 09:06 AM
jimsflies jimsflies is offline
 
Join Date: Aug 2009
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love it...what would it take to use it in 3.8?
Reply With Quote
  #6  
Old 06-10-2011, 12:59 AM
sticky sticky is offline
 
Join Date: Sep 2003
Posts: 934
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to force users to use attach inline only?
Reply With Quote
  #7  
Old 06-12-2011, 02:55 PM
jimsflies jimsflies is offline
 
Join Date: Aug 2009
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 11-12-2017, 10:00 AM
IggyP IggyP is offline
 
Join Date: May 2012
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:15 AM.


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.04264 seconds
  • Memory Usage 2,286KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete