Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[AJAX] Edit Attachment Filenames Details »
[AJAX] Edit Attachment Filenames
Mod Version: 3.0, by Abe1 (Coder) Abe1 is offline
Developer Last Online: Jun 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (8 votes - 4.75 average) Installs: 84
Released: 12 May 2008 Last Update: 12 May 2008 Downloads: 473
Not Supported Uses Plugins Template Edits Additional Files  

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.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	1.JPG
Views:	707
Size:	11.8 KB
ID:	80403   Click image for larger version

Name:	2.JPG
Views:	825
Size:	17.2 KB
ID:	80404  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Moderators Functions [AJAX] Edit Attachment Filenames Abe1 vBulletin 3.6 Add-ons 24 12 May 2008 02:01

Comments
  #2  
Old 12 May 2008, 02:30
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Real name: Vinayak
reserved !!
Reply With Quote
  #3  
Old 12 May 2008, 03:18
RvG2's Avatar
RvG2 RvG2 is offline
 
Join Date: Jan 2007
installed!
Reply With Quote
  #4  
Old 12 May 2008, 08:24
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Will this work for attachments as files as well as attachments in the db?
Reply With Quote
  #5  
Old 12 May 2008, 10:30
Milad's Avatar
Milad Milad is offline
 
Join Date: May 2005
Real name: Milad
I wish you can eliminate the template edits! Can you?
Reply With Quote
  #6  
Old 12 May 2008, 10:57
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Real name: Peter
Originally Posted by Milad View Post
I wish you can eliminate the template edits! Can you?
Do you have installed Template Modification System from Andreas? Use the attachment.

@Abe1
Better use $vbphrase[save] and $vbphrase[cancel], please.

Javascript error, if I want inline edit an attachment in postbit template (see attached thumbnail, please):
Error: document.getElementById("attachment_filename_" + attachmentid) has no properties
Source file: .../clientscript/edit_attachment_filenames.js
Line: 9

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit:
Updated templateedits, because copy & paste error. Please download the templateedits-abe1_edit_attachment_name.xml again and reimport. sorry.

Regards
Attached Images
File Type: jpg 1.jpg (23.2 KB, 96 views)
Attached Files
File Type: xml templateedits-abe1_edit_attachment_name.xml (3.8 KB, 16 views)

Last edited by Stoebi; 12 May 2008 at 12:31.
Reply With Quote
  #7  
Old 12 May 2008, 11:54
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by Stoebi View Post
Do you have installed Template Modification System from Andreas? Use the attachment.

@Abe1
Better use $vbphrase[save] and $vbphrase[cancel], please.
Will be hard. It hard codes this into the plugin because I use 'button' and not 'submit'. It right now compares the Save or Cancel text.

Originally Posted by Stoebi View Post
Javascript error, if I want inline edit an attachment in postbit template (see attached thumbnail, please):
Error: document.getElementById("attachment_filename_" + attachmentid) has no properties
Source file: .../clientscript/edit_attachment_filenames.js
Line: 9

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Regards
You did not do the template edits perfectly then. It seems like you are missing the 2nd template edit for postbit_attachment
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X

Last edited by Abe1; 12 May 2008 at 12:00.
Reply With Quote
  #8  
Old 12 May 2008, 12:00
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by Boofo View Post
Will this work for attachments as files as well as attachments in the db?
Sure.
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X
Reply With Quote
  #9  
Old 12 May 2008, 12:01
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by Milad View Post
I wish you can eliminate the template edits! Can you?
Nope. I wish I was able to though. I can make the headinclude edit go automatic. Maybe for next version.
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X
Reply With Quote
  #10  
Old 12 May 2008, 12:32
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Real name: Peter
Thank you very much Abe1 for this hint, this was a typically copy & paste error. Copied twice same text for find and replace

Regards

Last edited by Stoebi; 12 May 2008 at 16:44.
Reply With Quote
  #11  
Old 12 May 2008, 15:45
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Real name: Chris
This looks awfully slick. Nice addition.
__________________
Ask me about how to purchase vB Quiz for vBulletin 3.7 (works with 3.8, too)!

Websites: Movie Forums | Go Quiz
Reply With Quote
  #12  
Old 12 May 2008, 16:46
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Real name: Peter
Originally Posted by Abe1 View Post
Will be hard. It hard codes this into the plugin because I use 'button' and not 'submit'. It right now compares the Save or Cancel text.
Hm, i see no differents, if I use $vbphrase[save] instead save etc.
Reply With Quote
  #13  
Old 13 May 2008, 00:00
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by Stoebi View Post
Hm, i see no differents, if I use $vbphrase[save] instead save etc.
If you change the language, it wont work.
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X
Reply With Quote
  #14  
Old 13 May 2008, 17:41
NAZIA's Avatar
NAZIA NAZIA is offline
 
Join Date: Feb 2008
Real name: NJ
Opps.
not working.. It is leading to downloading the file..
And when I ve import the second attachment this is leading to

Invalid File Specified
Please help because I want to rename the attachment...
Thanks in advance
Reply With Quote
  #15  
Old 14 May 2008, 23:52
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by NAZIA View Post
Opps.
not working.. It is leading to downloading the file..
And when I ve import the second attachment this is leading to



Please help because I want to rename the attachment...
Thanks in advance
I would need to test on your site to figure out what is wrong.
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 20:19.

Layout Options | Width: Wide Color: