Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Attachment In Quickreply Details »»
Attachment In Quickreply
Version: 1.00, by tnguy3n tnguy3n is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.0.0 Rating:
Released: 03-25-2004 Last Update: Never Installs: 62
 
No support by the author.

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 --

Show Your Support

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

Comments
  #2  
Old 03-26-2004, 04:19 AM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked flawlessly.
Reply With Quote
  #3  
Old 03-26-2004, 04:50 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice and very useful addition
Reply With Quote
  #4  
Old 03-26-2004, 07:42 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 03-26-2004, 08:08 AM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. ^_^
Reply With Quote
  #6  
Old 03-26-2004, 09:34 AM
PlenoJure's Avatar
PlenoJure PlenoJure is offline
 
Join Date: Aug 2002
Location: Melbourne, FL
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 03-26-2004, 09:50 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 03-26-2004, 11:32 AM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks PlenoJure, I noticed that myself, but didn't know what code to add. ^^;;
Reply With Quote
  #9  
Old 03-26-2004, 12:04 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 --->
Reply With Quote
  #10  
Old 03-26-2004, 12:50 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*attachment updated* thanks, PlenoJure & Oblivion Knight .
Reply With Quote
Reply

Thread Tools

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 01:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04655 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete