Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: ディン1031 on April 05, 2007, 08:47:50 AM

Title: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on April 05, 2007, 08:47:50 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=625)

With this mod you can rename filenames of Attachments. With help of the Attachment Manager or with in (over?) the post.

The mod have also a setting for permission that can allow the user to rename the attachment of the post or not.

Languages: English, German


Version 1.0.0
!*+- First Release


Version 1.1.0
+ Add a Option for Censoring Attachment names
- Upgrade Included


Version 1.1.0 (25.06.07)
- 1.1.3 Compatible


Version 1.1.0 (11.07.07)
- Changed the installer for the db changes so that this use the SSI.php if it not used with smf package parser (Easier handling for manual installing)


Version 1.1.2 (12.08.07)
! fix a eval bug in avatar loading (Thx to ApplianceJunk for the info)
! take the original filename if no renamed file exists.
* change the redirect in the Attachment Manager (Now it try to go where you where last).
- Upgrade Included


Version 1.2.0 (02.06.09)
- SMF 1.1.9 Compatible
- This Version is not compatible to old SMF Versions! Please uninstall old Versions.
! Removed the Attachment Thumbs it's not logical to rename them.
* Changed Coding Style better viewable.


Version 1.2.1 (15.07.09)
- SMF 1.1.10 Compatible
- This Version is not compatible to old SMF Versions! Please uninstall old Versions.



Legend:
! Bugfix
+ New Feature
* Change
- Info Only
Title: Re: Attachment File Renamer
Post by: ディン1031 on April 24, 2007, 11:03:52 AM
Version 1.1.0
+ Add a Option for Censoring Attachment names

Upgrade for the old Version included. (The Option to enable, is found in the Attachment Settings).

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: Flammifer on July 13, 2007, 10:56:00 AM
I'm getting some errors with my tinyportal template when using this mod. It works fine but I'll have to uninstall it for now to keep the log file from filling up and causing problems. I'm using smf 1.1.2 and tp 0.983

The errors are

2: fgets(): supplied argument is not a valid stream resource
File: /home/******/public_html/******/Themes/default/TPortal.template.php (eval?)
Line: 32

2: feof(): supplied argument is not a valid stream resource
File: /home/******/public_html/******/Themes/default/TPortal.template.php (eval?)
Line: 30
Title: Re: Attachment File Renamer
Post by: ディン1031 on July 13, 2007, 12:11:50 PM
It's not from my mod, i don't use this functions in my mod ;). It must something to do with the tiny portal (and i know nothing about the the tiny portal).

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: FreeSporePrints on July 25, 2007, 08:43:22 AM
Hello,
i installed your mod on SMF 1.1.2 and it worked greatly, no on SMF 1.1.3 the rename buttons seems disappeared. I've unistalled the previous one and installed the new versione, activated the permission for the members, moderators and global moderators but nothing..

Can you help me!?

Thank you,
F.
Title: Re: Attachment File Renamer
Post by: ディン1031 on July 25, 2007, 12:01:44 PM
Hmmm i tested it on SMF 1.1.3 and it should work.
Any Theme Changes lately?

And the button don't appear even for you (the Admin)?

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: FreeSporePrints on July 25, 2007, 12:35:50 PM
I was using "Juno" theme but doesn't work, instead it works on the "Default Core" theme.

However thank you for your support!  ;)
F.
Title: Re: Attachment File Renamer
Post by: ディン1031 on July 26, 2007, 06:47:53 AM
You can try to make the Theme changes on the Jumo Theme:

Theme Changes (http://jmusic.ddo.jp/DIN1031/modparser/index.php?action=installMod&smfVersion=1.1.3&name=AttachmentFileRenamer110&theme)

Look if you can make the Display.template.php changes :).

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: ApplianceJunk on August 05, 2007, 12:28:04 AM
Hi,

I would like to use this mod. Downloaded and installed it and got this.

QuoteInstalling this package will perform the following actions:  Type Action Description
1. Execute Code install_1.x.x.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Display.php Test successful
4. Execute Modification ./Sources/Security.php Test successful
5. Execute Modification ./Sources/ManageAttachments.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/Subs-Post.php Test successful
8. Execute Modification ./Themes/default/Display.template.php Test successful
9. Execute Modification ./Themes/default/ManageAttachments.template.php Test successful
10. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
11. Execute Modification ./Themes/default/languages/index.english.php Test successful
12. Execute Modification ./Themes/default/languages/ManagePermissions.german.php Skipping file
13. Execute Modification ./Themes/default/languages/index.german.php Test failed


Does that mean it will work, just not for any german languages?

Running SMF 1.1.3 @ ApplianceJunk.com

thanks,
Title: Re: Attachment File Renamer
Post by: shadow82x on August 05, 2007, 12:30:01 AM
Will work fine without German files. Thats only used if your using the German language. So you can proceed. ;)
Title: Re: Attachment File Renamer
Post by: ApplianceJunk on August 05, 2007, 12:37:55 AM
It works great!

Thanks,
Title: Re: Attachment File Renamer
Post by: ディン1031 on August 05, 2007, 08:55:37 AM
Normal it should skip the second file, too but i don't know why it sometimes not done.

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: ApplianceJunk on August 11, 2007, 06:34:30 PM
Here is something I found in my forum error log today.

QuoteAJ       Today at 02:06:02 PM
Apply Filter: Only show the error messages of this IP address 24.111.253.113      Apply Filter: Only show the error messages of this session 4959849a25a69212769603a222317ba8
Apply Filter: Only show the error messages of this URL http://appliancejunk.com/forums/index.php?action=dlattach;attach=28;type=avatar
Apply Filter: Only show the errors with the same message
8: Undefined offset: 3
File: /home/content/a/p/p/appliancejunk/html/forums/Sources/Display.php
Line: 972

Here are the mods I have.


   Mod Name             Version     
1. SMF 1.1.2 Update Package              1.1.2    
2. SMF 1.0.11 / 1.1.3 Update              1.1
3. SMF Gallery Lite                              1.7.6    
4. Ad Managment                              2.3    
5. Streaming 3                              4.2.2b    
6. nwsw.nwswAdminAttachAnything 1.1 RC3    
7. Attachment File Renamer              1.1.0    
8. Website Button                              1.1.4    
9. SMF Sitemap                              1.2.1


Here is the code around line 972

// Make sure this attachment is on this board.
$request = db_query("
SELECT a.filename, a.ID_ATTACH, a.attachmentType, a.renamedfilename
FROM ({$db_prefix}boards AS b, {$db_prefix}messages AS m, {$db_prefix}attachments AS a)
WHERE b.ID_BOARD = m.ID_BOARD
AND $user_info[query_see_board]
AND m.ID_MSG = a.ID_MSG
AND a.ID_ATTACH = $_REQUEST[attach]
LIMIT 1", __FILE__, __LINE__);
}
if (mysql_num_rows($request) == 0)
fatal_lang_error(1, false);
list ($real_filename, $ID_ATTACH, $attachmentType, $renamedfilename) = mysql_fetch_row($request);
mysql_free_result($request);

//if the renamed filename empty than i replace it with teh orginal :) And remove some not so nice html inserts ;D
if(!empty($modSettings['attachmentCheckCensor'])) {
$pregReplace = !empty($renamedfilename);
$renamedfilename = empty($renamedfilename) ? $real_filename : $renamedfilename;
censorText($renamedfilename);
if($pregReplace)
$renamedfilename = preg_replace('%(&)(.*?)(;)%is', '_', $renamedfilename);
}
else
$renamedfilename = empty($renamedfilename) ? $real_filename : preg_replace('%(&)(.*?)(;)%is', '_', $renamedfilename);


Line 972 was this part.

list ($real_filename, $ID_ATTACH, $attachmentType, $renamedfilename) = mysql_fetch_row($request);

I asked about this error in this topic.

http://www.simplemachines.org/community/index.php?topic=188329.0

I was told there that I should report the bug in the modifications topic to give the author of the mod the chance to fix it.

Everything seems to work ok for me and your mod works great.

I have no idea if this is anything or not, but thought I would let you know about it.

Thanks again for the mod.




Title: Re: Attachment File Renamer
Post by: ディン1031 on August 12, 2007, 05:34:28 AM
Version 1.1.2 (12.08.07)
! fix a eval bug in avatar loading (Thx to ApplianceJunk for the info)
! take the original filename if no renamed file exists.
* change the redirect in the Attachment Manager (Now it try to go where you where last).
- Upgrade Included

@ApplianceJunk
If you upgrade to the new Version it will remove this eval bug ;).

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: ApplianceJunk on August 12, 2007, 05:43:42 AM
QuoteIf you upgrade to the new Version it will remove this eval bug

How should I go about doing the upgrade?

Do I need to uninstall or delete the old version first?
Title: Re: Attachment File Renamer
Post by: ディン1031 on August 12, 2007, 01:14:16 PM
Nope upload the new version and go to the package parser and than there will stand upgrade instead of install ;) as long the old version is installed.

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: ApplianceJunk on August 12, 2007, 02:30:26 PM
Quote from: ディン1031 on August 12, 2007, 01:14:16 PM
Nope upload the new version and go to the package parser and than there will stand upgrade instead of install ;) as long the old version is installed.

Bye
DIN1031

That worked great, thanks again..

Title: Re: Attachment File Renamer
Post by: ApplianceJunk on August 15, 2007, 10:27:36 PM
Does this one have anything to do with your mod?

Quotehttp://appliancejunk.com/forums/index.php?topic=16.0
Apply Filter: Only show the errors with the same message
8: Undefined index: renameattach
File: /home/content/a/p/p/appliancejunk/html/forums/Themes/default/Display.template.php (eval?)
Line: 471

Thanks,
Title: Re: Attachment File Renamer
Post by: ディン1031 on August 16, 2007, 04:36:22 AM
Yes you did not insert the Translations for the Mod for the language that you use ;).

Here are the overview of the language changes -> http://jmusic.ddo.jp/DIN1031/modparser/index.php?action=installMod&smfVersion=1.1.3&name=AttachmentFileRenamer112&language

Now make the English changes also in the language that you use.

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: evulness on February 29, 2008, 10:28:57 AM
i was just looking for a way to do something like this...
Thanks man ;)

You know... this would be so sweet if it automaticaly renamed attachments to something like
Quote'$FileName'_by_'$UserName'.(jpg/gif/png/zip)
or what ever configuration Admin sets, and alowed users to set a file name, in the attachments part of the post page...
this would be best mostly for images, but would be good for other filetypes too...
Title: Re: Attachment File Renamer
Post by: Nachtfalke on July 31, 2008, 06:48:30 PM
Well it dosn't fit with 1.1.5. i installed it with no error messages but i didn't get a button to use thar mod in my admin pannel..... (language: german)
Title: Re: Attachment File Renamer
Post by: ディン1031 on August 02, 2008, 07:28:48 AM
Quote from: Nachtfalke on July 31, 2008, 06:48:30 PM
Well it dosn't fit with 1.1.5. i installed it with no error messages but i didn't get a button to use thar mod in my admin pannel..... (language: german)
There is no button for this in the admin panel ;).
The Admin Settings are in the Attachment Maintain Options there you can rename every file ;).
And than is a text under the posts if you allowed users to rename attachments.

German is installed but if you use utf8 than you need to do the German language strings also in the utf8 files. This mod is currently incompatible to utf8 (Because i had no time to do it ;P).

This Theme Change is normal the most time missed ;).
Change in Filename: $themedir/Display.template.php 
Quote
Search for this

echo '
<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
}


Add after this

if($message['can_rename_attachment'])
echo '
<a href="'.$scripturl.'?action=attachrename;topic='.$context['current_topic'].'.0;msg='.$message['id'].';sesc=', $context['session_id'], '"><span class="smalltext">'.$txt['renameattach'].'</span></a><br />';



Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: Sabre™ on September 08, 2008, 06:35:55 PM
Installed onto 1.1.6 with little instances of doubles.
Maybe a conflict with the TP mod as someone before me had.
I received no errors in the log, but couldnt get into the attachment section in the AP.
I then manually checked the templates, and found the code had repeated itself in certain areas.

Since deleting the doubles, the mod performs flawless.
Thanks for this mate :)
Title: Re: Attachment File Renamer
Post by: ディン1031 on September 09, 2008, 12:46:31 AM
Good to hear that it work =).

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: .HuNTeR. on February 05, 2009, 01:53:46 PM
hi Din
i just want to know can you add a feature to this mod that every time a user attach something to forum a text will add to file name automatically?
thanks a lot
Title: Re: Attachment File Renamer
Post by: ディン1031 on May 21, 2009, 05:47:09 AM
So i will say it now:

At the moment the Mod is not compatible to SMF 1.1.9.
I need to change some major things to make it compatible (so that it only work on 1.1.9).

Please uninstall it before you upgrade to SMF 1.1.9!

I work on the update!

Bye
DIN1031
Title: Re: Attachment File Renamer
Post by: Sabre™ on May 21, 2009, 06:58:52 AM
Yeah I noticed that on the upgrade lol
I made all the appropriate edits, but now Im getting a table error.
I'll wait for your update! lol ;)
Title: Re: Attachment File Renamer
Post by: drhamza on May 24, 2009, 03:04:18 PM
is there any version for 2 RC?
Title: Re: Attachment File Renamer
Post by: Blinker on May 24, 2009, 11:21:47 PM
I managed to get it working when I got a failed message on some files for the 1.1.9 upgrade.

From memory they were mainly in post and display templates.

For all I know it may not really be working but I'm still able to rename attachments and I'm not getting any errors on the forum, however, I may also not be getting the full security-related benefits of the 1.1.9 upgrade as a result.

When I get a chance I'll post up the relevant code sections if any one wants to have a crack and also for DIN1031 to take a look at.

Quite honestly I wish I'd uninstalled this mod first cos the edits took me about 30 mins to do. :) I didn't know or realise at the time what the upgrade was for, I just saw the alert and applied the package and by then it was too late to back out...
Title: Re: Attachment File Renamer (V1.2.0)
Post by: ディン1031 on June 02, 2009, 09:58:54 AM
Version 1.2.0 (02.06.09)
- SMF 1.1.9 Compatible
- This Version is not compatible to old SMF Versions! Please uninstall old Versions.
! Removed the Attachment Thumbs it's not logical to rename them.
* Changed Coding Style better viewable.

Bye
DIN1031
Title: Re: Attachment File Renamer (V1.2.0)
Post by: FragaCampos on June 03, 2009, 07:50:48 PM
Thanks a lot for this great and useful mod (another one ;))
It's working great!

I would like to ask you something, though: what is "Censor Attachment Filenames" and what is it used for?
Title: Re: Attachment File Renamer (V1.2.0)
Post by: ディン1031 on June 04, 2009, 02:21:23 AM
Quote from: FragaCampos on June 03, 2009, 07:50:48 PM
Thanks a lot for this great and useful mod (another one ;))
It's working great!

I would like to ask you something, though: what is "Censor Attachment Filenames" and what is it used for?
Use the word cencor on the name of attachment. This prevent that user can use not allowed word for attachment names.

Bye
DIN1031
Title: Re: Attachment File Renamer (V1.2.0)
Post by: FragaCampos on June 04, 2009, 10:18:43 AM
Great. I thought it might be that ;)

Thanks!
Title: Re: Attachment File Renamer (V1.2.0)
Post by: Shannar on July 03, 2009, 01:38:36 PM
ディン1031, can you add support next mode? http://custom.simplemachines.org/mods/index.php?mod=1442
Title: Re: Attachment File Renamer (V1.2.0)
Post by: ディン1031 on July 03, 2009, 02:59:38 PM
No, this is and will be to much to make it for all compatible... (this is not the only one which would not work together with my mod).
Title: Re: Attachment File Renamer (V1.2.0)
Post by: drhamza on July 03, 2009, 03:35:23 PM
i think i asked about this before: how about having it for 2 rc1? come on man, i'll vote for it being an essential feature in standard smf :D
Title: Re: Attachment File Renamer (V1.2.0)
Post by: Sabre™ on July 15, 2009, 01:36:10 AM
Change for smf 1.1.10
ManageAttachments.php

Replace
'link' => '<a href="' . ($row['attachmentType'] == 1 ? $modSettings['custom_avatar_url'] . '/' . $row['filename'] : ($scripturl . '?action=dlattach;' . ($context['browse_type'] == 'avatars' ? 'type=avatar;' : 'topic=' . $row['ID_TOPIC'] . '.0;') . 'id=' . $row['ID_ATTACH'])) . '"' . (empty($row['width']) || empty($row['height']) ? '' : ' onclick="return reqWin(this.href + \'' . ($modSettings['custom_avatar_url'] ? '' : ';image') . '\', ' . ($row['width'] + 20) . ', ' . ($row['height'] + 20) . ', true);"') . '>' . htmlspecialchars($row['filename']) . '</a>'


With
'link' => '<a href="' . ($row['attachmentType'] == 1 ? $modSettings['custom_avatar_url'] . '/' . $row['filename'] : ($scripturl . '?action=dlattach;' . ($context['browse_type'] == 'avatars' ? 'type=avatar;' : 'topic=' . $row['ID_TOPIC'] . '.0;') . 'id=' . $row['ID_ATTACH'])) . '"' . (empty($row['width']) || empty($row['height']) ? '' : ' onclick="return reqWin(this.href + \'' . ($modSettings['custom_avatar_url'] ? '' : ';image') . '\', ' . ($row['width'] + 20) . ', ' . ($row['height'] + 20) . ', true);"') . '>' . (empty($row['renamedfilename']) ? htmlspecialchars($row['filename']) : $row['renamedfilename']) . '</a><br /><span class="smalltext">(' . $row['filename'] . ')</span>'.(empty($row['renamedfilename']) ? ' <a href="'.$scripturl.'?action=attachrenamefix"><span class="error"><span class="smalltext"><u>'.$txt['attachemptyrename'].'</u></span></span></a>' : ''),


That was all the changes needed that I could find.
Works flawless as far as I know lol :P
Title: Re: Attachment File Renamer (V1.2.0)
Post by: ディン1031 on July 15, 2009, 06:29:47 AM
Oh less work for me ;) but i will check it, too.
But i think thats okay because i do the htmlspecialchars with the rename, but i need to check this =).

BEFORE YOU UPGRADE THE FORUM TO 1.1.10 UNINSTALL THIS MOD!
Title: Re: Attachment File Renamer (V1.2.0)
Post by: Neverhurry on July 30, 2009, 04:34:43 PM
Quote from: ディン1031 on June 02, 2009, 09:58:54 AM
Version 1.2.0 (02.06.09)
- SMF 1.1.9 Compatible
- This Version is not compatible to old SMF Versions! Please uninstall old Versions.
! Removed the Attachment Thumbs it's not logical to rename them.
* Changed Coding Style better viewable.

Bye
DIN1031

Hello, DIN:

i have problem to uninstall version 1.12. i am using smf 1.1.9 and when i wanted to upgrade to 1.1.10 i found out that the "manageattachments.php" file has error, so i have to uninstall your mod first, but then i can not find the uninstall function, nor the manual parse. Man, please help me! thank you!!!
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Sabre™ on July 30, 2009, 05:49:58 PM
You could go into your Packages folder, look for this mod, download it to your desktop, and replace the package-info.xml with the attached one.
Reupload the mod to your Packages folder, then go and see if the uninstall is now there.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on July 31, 2009, 03:18:51 AM
Yes, the uninstall is there, but the following files failed:
./Sources/Display.php
./Sources/Subs-Post.php
./Themes/default/Display.template.php
./Themes/default/languages/ManagePermissions.english.php

what should i do now? anyone can help me how to manually uninstall the mod? thank you very much.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Sabre™ on July 31, 2009, 09:09:05 PM
Go to the mods [Download page] (http://custom.simplemachines.org/mods/index.php?mod=625) and look to the right where it says  Download this mod.
Select your version of the mod(AttachmentFileRenamer112.zip), and then your smf version(1.1.9), then click on the button that says Parse.
That will show you where all of the edits were made, so you could remove them and place the original in those sections.

If you fall into any problems, feel free to post back and somebody will assist you.

Good luck :)
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 01, 2009, 05:13:31 PM
there is no parse for version smf 1.1.9 but only for 1.1.8, so lots of changes made while i updated from smf 1.1.8 to 1.1.9, it seems it is so difficult for me to uninstall this mod. i am not a very technical guy.

this is a very good lesson: install only the mod you must have, for example, this is a nice mod, but it is not a must have mod, so it is risky in the future.

but i will try.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 02, 2009, 03:27:47 PM
i failed to uninstall this mod 1.12 version manually. it is just too difficult for me.

is there any other way for me to upgrade smf 1.1.9 to 1.1.10?

should i first degrade smf back to 1.1.8?

or should i first upgrade this mod 1.12 to 1.20?

i am really confused, I need help very much!!! please!!!

i attached a "manageattachments.php" file here.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 04, 2009, 09:14:06 AM
bump!
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on August 05, 2009, 01:07:43 AM
Uninstall is the only way...
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 06, 2009, 07:58:55 AM
Quote from: ディン1031 on August 05, 2009, 01:07:43 AM
Uninstall is the only way...

Thank you, please can you advise me how to uninstall it manually? i have installed this mod 1.12 in smf 1.1.8, but without uninstall it, i have already upgrade smf to 1.1.9.
that is why it's been so complicated now, can you help me?

(http://www.cinask.com/Smileys/skype/thanks.gif)
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on August 07, 2009, 05:58:19 AM
Hmm at the moment it's a time problem to help... if i not forget it i will write you in the next days and will try to help you ;).
Title: Re: Attachment File Renamer (V1.2.1)
Post by: drhamza on August 07, 2009, 01:54:51 PM
ディン1031, can you make a rc1 version, pleeeeeeease
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Sabre™ on August 07, 2009, 04:57:12 PM
@ neverhurry
Here is your template attached.
Post which other templates you are having problems with.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: live627 on August 07, 2009, 05:16:11 PM
Is there 2.x support?
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 08, 2009, 08:41:20 AM
Quote from: ディン1031 on August 07, 2009, 05:58:19 AM
Hmm at the moment it's a time problem to help... if i not forget it i will write you in the next days and will try to help you ;).

Thank you! I will wait for you. I really want to manually uninstall it first.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 08, 2009, 08:42:23 AM
Quote from: Sabre™ on August 07, 2009, 04:57:12 PM
@ neverhurry
Here is your template attached.
Post which other templates you are having problems with.

Thank you, Sabre, it is really nice of you, i will try it later and tell you the result.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on August 10, 2009, 08:32:22 AM
Quote from: live627 on August 07, 2009, 05:16:11 PM
Is there 2.x support?
At the moment i had no time to make an 2.0 support, but i think i will make one...
Title: Re: Attachment File Renamer (V1.2.1)
Post by: live627 on August 12, 2009, 05:28:44 PM
I look forward...
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 14, 2009, 12:11:06 PM
Quote from: neverhurry on August 08, 2009, 08:41:20 AM
Quote from: ディン1031 on August 07, 2009, 05:58:19 AM
Hmm at the moment it's a time problem to help... if i not forget it i will write you in the next days and will try to help you ;).

Thank you! I will wait for you. I really want to manually uninstall it first.

Hi, ディン1031 , I hope you will not forget to help me manually uninstall this mod, thank you!!!
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on August 15, 2009, 05:28:49 AM
Quote from: neverhurry on August 14, 2009, 12:11:06 PM
Quote from: neverhurry on August 08, 2009, 08:41:20 AM
Quote from: ディン1031 on August 07, 2009, 05:58:19 AM
Hmm at the moment it's a time problem to help... if i not forget it i will write you in the next days and will try to help you ;).

Thank you! I will wait for you. I really want to manually uninstall it first.

Hi, ディン1031 , I hope you will not forget to help me manually uninstall this mod, thank you!!!
Which files have an error on the uninstall?
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 15, 2009, 02:45:35 PM
Quote from: ディン1031 on August 15, 2009, 05:28:49 AM
Quote from: neverhurry on August 14, 2009, 12:11:06 PM
Quote from: neverhurry on August 08, 2009, 08:41:20 AM
Quote from: ディン1031 on August 07, 2009, 05:58:19 AM
Hmm at the moment it's a time problem to help... if i not forget it i will write you in the next days and will try to help you ;).

Thank you! I will wait for you. I really want to manually uninstall it first.

Hi, ディン1031 , I hope you will not forget to help me manually uninstall this mod, thank you!!!
Which files have an error on the uninstall?

These files:

./Sources/Display.php
./Sources/Subs-Post.php
./Themes/default/Display.template.php
./Themes/default/languages/ManagePermissions.english.php

I installed this mod (1.12) in smf 1.1.8, later i upgraded smf 1.1.8 to 1.1.9 without reading your warning. i should have first uninstall this mod before upgrading to smf 1.1.9. Now i really don't know how to do, it is just too difficult for me. Thank you for your support and patience.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on August 15, 2009, 07:18:03 PM
Attach this files, i clean them from the mod. Than you can uninstall it and upload the files with the errors. After that you upgrade of smf should work ;).
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 16, 2009, 02:00:14 AM
Quote from: ディン1031 on August 15, 2009, 07:18:03 PM
Attach this files, i clean them from the mod. Than you can uninstall it and upload the files with the errors. After that you upgrade of smf should work ;).

ディン1031, thank you. Attached are the files, but again i can not find the uninstall button (link), i did what Sabre said, pls look at the pic i attached, then, there are two same mods there, i marked them with red lines, thank you:

Quote from: Sabre™ on July 30, 2009, 05:49:58 PM
You could go into your Packages folder, look for this mod, download it to your desktop, and replace the package-info.xml with the attached one.
Reupload the mod to your Packages folder, then go and see if the uninstall is now there.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Sabre™ on August 16, 2009, 02:15:32 AM
Hi mate,
try replacing the package-info.xml with this one.
I just noticed the last procedure I mentioned may not work for some.
This one should display your uninstall button.

So once again...
Go into your Packages folder, look for this mod, download it to your desktop, and replace the package-info.xml with the attached one.
Reupload the mod to your Packages folder, then go and see if the uninstall button is there.

Good luck :)
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 16, 2009, 06:43:01 AM
Quote from: Sabre™ on August 16, 2009, 02:15:32 AM
Hi mate,
try replacing the package-info.xml with this one.
I just noticed the last procedure I mentioned may not work for some.
This one should display your uninstall button.

So once again...
Go into your Packages folder, look for this mod, download it to your desktop, and replace the package-info.xml with the attached one.
Reupload the mod to your Packages folder, then go and see if the uninstall button is there.

Good luck :)

Thank you, but i have bad luck, i tried what you said, but failed. I remember it was successful 3 weeks ago, but then because there was error in the uninstallation, i used the the backup files in the packages/backups/ folder to recover, then, i can not get the uninstall button back.
Any other way i can try? Thank you very much.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Sabre™ on August 16, 2009, 07:23:48 AM
Here are your templates with this mods code removed.
It seems you have installed a version later than the version you previously mentioned.
To completely remove the mod, you will need to remove the code from the following templates also.

index.php found in the root of your forum
Your Security.php, ManageAttachments.php and your ManagePermissions.php, all found in your sources folder.
And finally your index.english.php, found in your default themes language folder.

When these have been tended to, delete the copy(s) of this mod you have installed, and upload these templates into their respected positions/folders.

Good luck :)
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Neverhurry on August 16, 2009, 11:48:59 AM
Hey, Sabre, ディン1031, I made it!!!  Thank you!!!(http://www.cinask.com/Smileys/skype/jile.gif)(http://www.cinask.com/Smileys/skype/jile.gif)(http://www.cinask.com/Smileys/skype/jile.gif)
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on August 16, 2009, 02:36:30 PM
Quote from: neverhurry on August 16, 2009, 11:48:59 AM
Hey, Sabre, Din, I made it!!!  Thank you!!!(http://www.cinask.com/Smileys/skype/jile.gif)(http://www.cinask.com/Smileys/skype/jile.gif)(http://www.cinask.com/Smileys/skype/jile.gif)
Cool good to know =).
Thank You Sabre :).
Title: Re: Attachment File Renamer (V1.2.1)
Post by: Sabre™ on August 16, 2009, 05:31:45 PM
Any time mate :)
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ChaosEnergy on December 27, 2009, 10:12:32 AM
hi
will you create a smf 2.0 compatible version?
Title: Re: Attachment File Renamer (V1.2.1)
Post by: oOo--STAR--oOo on February 15, 2010, 09:59:09 PM
Bump
Any chance of a 2.0 RC2 Version?

Loved the mod in 1.1.11
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on February 16, 2010, 12:51:06 PM
At the moment... no time...
Title: Re: Attachment File Renamer (V1.2.1)
Post by: oOo--STAR--oOo on February 16, 2010, 06:53:32 PM
:(....
Title: Re: Attachment File Renamer (V1.2.1)
Post by: [A-US]James246 on June 01, 2010, 05:04:28 AM
Hi! I have a problem installing this! Please help!

Installations actions for "Attachment File Renamer":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   install_1.x.x.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/Display.php   Test successful
4.   Execute Modification   ./Sources/Security.php   Test successful
5.   Execute Modification   ./Sources/ManageAttachments.php   Test failed
6.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
7.   Execute Modification   ./Sources/Subs-Post.php   Test successful
8.   Execute Modification   ./Themes/default/Display.template.php   Test successful
9.   Execute Modification   ./Themes/default/ManageAttachments.template.php   Test successful
10.   Execute Modification   ./Themes/default/languages/ManagePermissions.english.php   Test successful
11.   Execute Modification   ./Themes/default/languages/index.english.php   Test successful
12.   Execute Modification   ./Themes/default/languages/ManagePermissions.german.php   Skipping file
13.   Execute Modification   ./Themes/default/languages/index.german.php   Skipping file

SMF 1.1.11

Please help me!
Title: Re: Attachment File Renamer (V1.2.1)
Post by: [A-US]James246 on June 02, 2010, 04:58:53 AM
Can anyone help me?  8)
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on June 02, 2010, 05:13:34 AM
Hmm you must look what nned to be replaced in the ManageAttachments.php and do this by hand. Possible a other mod conflict with the mod :).
Title: Re: Attachment File Renamer (V1.2.1)
Post by: [A-US]James246 on June 10, 2010, 03:25:11 AM
I manually edited ManageAttachments.php and it still doesn't work! When I go to edit the attachments no options appear.

When I try to get to this page: /index.php?action=manageattachments

It doesn't load and is just blank! Can someone please help me? I really need to be able to edit the attachments! Thanks if anyone can as this is really important.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: FragaCampos on June 10, 2010, 09:50:01 AM
Try to uninstall the mod completely and than install it again with the modifications to your theme via parser. Make sure you also edit your language files.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on June 11, 2010, 01:12:36 AM
Quote from: [A-US]James246 on June 10, 2010, 03:25:11 AM
I manually edited ManageAttachments.php and it still doesn't work! When I go to edit the attachments no options appear.

When I try to get to this page: /index.php?action=manageattachments

It doesn't load and is just blank! Can someone please help me? I really need to be able to edit the attachments! Thanks if anyone can as this is really important.
Any errors in the error log? Blank page mean that the server stop the script, normal i add only a small change to the table but normal it should not much slow down the system...
Title: Re: Attachment File Renamer (V1.2.1)
Post by: FragaCampos on August 29, 2010, 05:25:34 PM
ディン1031, do you intend to update this mod to RC3?
Title: Re: Attachment File Renamer (V1.2.1)
Post by: mariusfv on December 06, 2010, 08:08:55 AM
Update please for SMF 1.1.12.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: FragaCampos on December 06, 2010, 09:19:54 AM
This is working in 1.1.12.
Title: Re: Attachment File Renamer (V1.2.1)
Post by: ディン1031 on April 19, 2011, 12:11:18 PM
If someone else will update my mod i give the rights to anyone who like to update it. ;)