vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Attachments No Popup & Auto Upload (https://vborg.vbsupport.ru/showthread.php?t=161148)

Jafo232 10-25-2007 10:00 PM

Attachments No Popup & Auto Upload
 
This hack was created on a custom job that I am doing for a third party and they gave me permission to release it to the community. It requires several template REPLACEMENTS, but most are minor and should not affect your forums layout. To be prudent BACKUP YOUR TEMPLATES before installing this hack.

This hack is a use at your own risk mod!

What does it do?

As part of the custom job, the client requested a way to make the upload attachments part not require a popup window. Currently, when you upload attachments to threads, you click the manage attachments button and a popup appears and you upload your attachments.

This modification will keep the uploads on the same page (no popup).

Auto uploading is also a feature. When a user browses to the file and selects it, the file is automatically uploaded so the user does not have to click the upload button. I don't know about you guys, but there has been a few times I forget to hit that stupid upload button.

Will this work for your forum?

Well, I have no idea, and honestly it really is not my concern. This should work for a new installation of a Vbulletin forum. It could be possible that you have mod'd your templates to the point where this mod may adversely affect your layout and function.

As for support, don't come begging to me if you cannot get this to work. Most people who pay for scripting never let custom work like this out to the public free of charge. Consider how much you paid for this before you complain if it doesn't work for you.

I will support this as I can, but I am very busy lately so don't hold your breath for replies.


ChurchMedia 10-26-2007 04:03 AM

Very cool! I'll try this out tomorrow.

sensimilla 10-26-2007 04:51 AM

Nice idea ! :D

Lionel 10-26-2007 04:58 AM

Not too crazy about the iframe, but nice idea.

Jafo232 10-26-2007 05:33 AM

Well, Iframes just made it easier and gave it an almost AJAX quality. It isn't like Vbulletin doesn't ever use them. In fact, viewing the source chart of this reply page shows:

Code:

<iframe style="border: 2px inset ; width: 600px; height: 250px;" tabindex="1" id="vB_Editor_001_iframe">
</iframe>


yoyoyoyo 10-26-2007 10:07 AM

cool - I like it - just wondering why there are still "upload" buttons, though. (Also -shouldn't this mod be a template modification since it modifies templates?)

Snake 10-26-2007 02:14 PM

Thanks!

Lea Verou 10-26-2007 03:05 PM

Quote:

Originally Posted by yoyoyoyo (Post 1368996)
cool - I like it - just wondering why there are still "upload" buttons, though. (Shouldn't this be a template modification?)

Perhaps for those that don't have javascript enabled.
It should be controlled by a conditional though.

PS: vBulletin uses iframes where it can't do otherwise (in this case, the WYSIWYG editor). This mod doesn't need iframes, an iframe was put there just to cut dev time...

Jafo232 10-26-2007 03:29 PM

I left the upload button in just in case someones security settings or some other browser setting stopped the auto upload for some reason. Sure, you could take it out if you wanted to.

As for the iframe, it was either that or AJAX, and honestly that really seemed overkill.

yoyoyoyo 10-26-2007 04:08 PM

I dunno - I think ajax would be cool :D


All times are GMT. The time now is 10:04 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.00987 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete