Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
[AJAX] Edit Attachment Filenames Details »»
[AJAX] Edit Attachment Filenames
Version: 3.0, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.7.x Rating:
Released: 05-11-2008 Last Update: 05-11-2008 Installs: 88
Uses Plugins Template Edits
Additional Files  
No support by the author.

Edit Attachment Filenames 3.0


About this hack:
This hack is a pretty useful hack. It lets you edit filenames of attachments. Only users with 'canmoderateattachments' permissions on the forum that the attachment it posted by will be allowed to edit the filenames.

You access the edit by double clicking right near the filename of an attachment. It will bring up an edit box similar to the edit thread title vb feature. You will get an option to save or cancel the edit.

Now that you can see a list of all attachments in one thread, you would want to name some attachments differently so they can be identified with out looking at the post.

The filename extension cannot be edited.

Installation information on hack:
  • Files edited: 0
  • Templates edited: 2
  • Files to upload via FTP: 1
  • Time to install: 1 minute max
Updates:

Version 3.0 (05/11/08):
  • First release of this hack for vb 3.7.

Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
caoducanh9x

Comments
  #22  
Old 07-25-2008, 07:38 PM
ErrorLog ErrorLog is offline
 
Join Date: Jul 2008
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ..

İnstalled Button =}
Reply With Quote
  #23  
Old 09-09-2008, 01:04 AM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to I can edit one image file name with this tool?

thumbnails are enabled in my board.
Reply With Quote
  #24  
Old 05-22-2009, 06:00 AM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Abe1, any way to get this to work on attachment thumbnail file names?
Quote:
Originally Posted by testebr View Post
How to I can edit one image file name with this tool?

thumbnails are enabled in my board.
1st,
if you click on page forumdisplay.php on the URL -->> <<-- for the thread where you need to edit thumbnail image name then you will be able to do so.

2nd,
You can do so...

Open template:
Code:
postbit_attachmentmoderated
Find:
Code:
<tr>
REPLACE with this:
Code:
<tr<if condition="can_moderate($threadinfo['forumid'], 'canmoderateattachments')"> ondblclick="edit_attachment_name($attachment[attachmentid]);"</if>>
Find:
Code:
<td><if condition="$show['modattachmentlink']"><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>$attachment[filename]</a> ($attachment[filesize])<else />$attachment[filename]</if></td>
REPLACE with this:
Code:
<td><if condition="$show['modattachmentlink']"><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if> id="attachment_filename_$attachment[attachmentid]">$attachment[filename]</a><a id="attachment_filename_edit_$attachment[attachmentid]"></a> ($attachment[filesize])<else />$attachment[filename]</if></td>
  • After that you can take any post.
  • Select it with inline moderation.
  • Then "Unapprove Attachments"
  • By double clicking on file name icon change the file name you like.
  • Then "Approve Attachments" for that post again.

3rd,

You can open the template:
Code:
postbit_attachmentthumbnail
ADD to the END of the template:
Code:
<if condition="can_moderate($threadinfo['forumid'], 'canmoderateattachments')"><a id="attachment_filename_$attachment[attachmentid]" ondblclick="edit_attachment_name($attachment[attachmentid]);">$attachment[filename]</a><a id="attachment_filename_edit_$attachment[attachmentid]"></a></if>
  • After that in the thread up to the right of any thumbnail you will see the filename.
  • Double click on it and you can change the name.

I know that it's not beautiful, but I could not find a better way to do so for that template.

You can try to add:
Code:
<if condition="can_moderate($threadinfo['forumid'], 'canmoderateattachments')"><a id="attachment_filename_$attachment[attachmentid]" ondblclick="edit_attachment_name($attachment[attachmentid]);">*</a><a id="attachment_filename_edit_$attachment[attachmentid]"></a></if>
Then you will only have "*" after each thumbnail and not file name.
Reply With Quote
  #25  
Old 02-16-2010, 03:26 PM
shyguy82 shyguy82 is offline
 
Join Date: Feb 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way you can make it work with vB 4.x???

Thanks
Reply With Quote
  #26  
Old 08-08-2010, 12:52 AM
shyguy82 shyguy82 is offline
 
Join Date: Feb 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any news on this plugin working for vB 4 ?

Reply With Quote
  #27  
Old 02-27-2011, 01:43 PM
majidmozaffari majidmozaffari is offline
 
Join Date: Sep 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please working this plugin for vB 4
Reply With Quote
  #28  
Old 09-24-2011, 07:21 PM
p30suite p30suite is offline
 
Join Date: Feb 2009
Location: Iran
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it is not work on v4 please ...
i need this mod for v4
Reply With Quote
  #29  
Old 12-25-2012, 10:33 PM
xorex's Avatar
xorex xorex is offline
 
Join Date: Jan 2008
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SECURITY WARNING

This hack allow execute scripts e.t.c

try rename file as

PHP Code:
<script>alert('hi');</script
and it work

same situation in admincp if you view attachements stats
Reply With Quote
  #30  
Old 03-21-2013, 10:08 AM
Farsisat Farsisat is offline
 
Join Date: Sep 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please make it for vb 4.2
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 08:57 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.06435 seconds
  • Memory Usage 2,304KB
  • Queries Executed 27 (?)
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
  • (8)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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