vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Moderators Functions - [AJAX] Edit Attachment Filenames (https://vborg.vbsupport.ru/showthread.php?t=178937)

ErrorLog 07-25-2008 07:38 PM

Thanks ..

İnstalled Button =}

testebr 09-09-2008 01:04 AM

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

thumbnails are enabled in my board.

Makc666 05-22-2009 06:00 AM

Quote:

Originally Posted by Boofo (Post 1539274)
Abe1, any way to get this to work on attachment thumbnail file names?

Quote:

Originally Posted by testebr (Post 1617837)
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 -->> https://vborg.vbsupport.ru/external/2009/05/5.gif <<-- 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.

shyguy82 02-16-2010 03:26 PM

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

Thanks

shyguy82 08-08-2010 12:52 AM

Any news on this plugin working for vB 4 ?

:)

majidmozaffari 02-27-2011 01:43 PM

please working this plugin for vB 4

p30suite 09-24-2011 07:21 PM

it is not work on v4 :( please ...
i need this mod for v4 :(

xorex 12-25-2012 10:33 PM

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

Farsisat 03-21-2013 10:08 AM

please make it for vb 4.2


All times are GMT. The time now is 12:54 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.01249 seconds
  • Memory Usage 1,739KB
  • 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
  • (8)bbcode_code_printable
  • (1)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
  • (9)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