vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - Attachment In Quickreply (https://vborg.vbsupport.ru/showthread.php?t=62963)

tnguy3n 03-25-2004 10:00 PM

Attachment In Quickreply
 
What this hack does is to add an attachment option to quickreply in showthread as of New Reply or New Thread. This is good for boards that have slacked members who don't want to click on New Reply, but wanting to attach file on Quickreply.

/*-----------------------------------------------------------------------*\
File modification: 1
Template modication: 1
New Templates: 2
(estimate hack time: 2-5 mins)
/*-----------------------------------------------------------------------*\

Live Demo: http://all4actions.net

-- T. Nguyen --

Red Blaze 03-26-2004 04:19 AM

worked flawlessly. :)

Vivi Ornitier 03-26-2004 04:50 AM

nice and very useful addition ;)

Oblivion Knight 03-26-2004 07:42 AM

Does this take in to consideration the usergroup's attachment permissions?

If I had my board set up to only allow staff to upload attachments, would registered users still be able to see the attachment option on QuickReply, and would they be able to use it?

tnguy3n 03-26-2004 08:08 AM

Quote:

Originally Posted by Oblivion Knight
Does this take in to consideration the usergroup's attachment permissions?

If I had my board set up to only allow staff to upload attachments, would registered users still be able to see the attachment option on QuickReply, and would they be able to use it?

If you disable upload to certain usergroups, the upload manager wont show in quickreply, those users just see normal quickreply. ^_^

PlenoJure 03-26-2004 09:34 AM

One small change I made to the showthread.php change, replace
PHP Code:

    require_once('./includes/functions_file.php');
    
$inimaxattach fetch_max_attachment_size(); 

with:
PHP Code:

    require_once('./includes/functions_file.php');
    
$attachtypes unserialize($datastore['attachmentcache']);
    
$inimaxattach fetch_max_attachment_size(); 

This will list the valid extentions instead of just displaying a blank space.

Oblivion Knight 03-26-2004 09:50 AM

Quote:

Originally Posted by tnguy3n
If you disable upload to certain usergroups, the upload manager wont show in quickreply, those users just see normal quickreply. ^_^

Awesome.. I'll be installing this later then :)

Thanks for sharing.

Red Blaze 03-26-2004 11:32 AM

Thanks PlenoJure, I noticed that myself, but didn't know what code to add. ^^;;

Oblivion Knight 03-26-2004 12:04 PM

In showthread_quickreply, I think this:

Code:

<!--- showthread quickreply attachement --->
                        </tr>
                                <td>
                                $showthread_attachmentoption
                                </td>
                        </tr>
<!--- showthread quickreply attachement --->

Should be this:

Code:

<!--- showthread quickreply attachment --->
                        <tr>
                                <td align="$stylevar[left]">
                                $showthread_attachmentoption
                                </td>
                        </tr>
<!--- showthread quickreply attachment --->


tnguy3n 03-26-2004 12:50 PM

*attachment updated* thanks, PlenoJure & Oblivion Knight . :)


All times are GMT. The time now is 02:24 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.02053 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)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