Quote:
Originally Posted by Boofo
Abe1, any way to get this to work on attachment thumbnail file names?
|
Quote:
Originally Posted by testebr
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:
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]&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]&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.