Re: Attachment Mod 2.0.1 by Frank H

my program is rough,i hope someone can optimize it smile

102

Re: Attachment Mod 2.0.1 by Frank H

Ah, IIRC there were a couple of people that wanted that, so thanks for creating it smile
(but I won't add it to the default mod, too much fluff in my eyes wink)

(Just remember to first test the mod before adding this, easier to hunt for errors with less modifications wink)

Re: Attachment Mod 2.0.1 by Frank H

I using it now on my forum
http://www.shkrom.cnups.com/attachIcon.jpg

Re: Attachment Mod 2.0.1 by Frank H

a Simplified_Chinese Language file

<?php

// Language definitions for frequently used strings
$lang_attach = array(

// viewtopic.php
'Attachments:'            =>    '??:',    // Used in viewtopic before attachments in the post.
'Size:'                    =>    '??:',        // Used in viewtopic to show filesize of attachment.
'bytes'                    =>    '??',        // Used in viewtopic after the filesize.
'Downloads:'            =>    '??:',    // Used in viewtopic to show number of downloads.

//post.php
'Attachment'            =>    '??',    // Used in post the legend name
'Note'                    =>    '??: ?????????????????',    //Used in post to display a note under the attachment field

//edit.php
'Delete?'                =>    '???',        // Used in edit.php, after the delete checkbox for each attachment...
'Existing'                =>    '????: (?????????)',    //Used in edit.php, before the existing attachments that you're allowed to delete
'Existing2'                =>    '????: (?????)',    //Used in edit.php, before the existing attachments that you aren't allowed to delete
'Upload'                =>    '?????, ??: %%ATTACHMENTS%% attachments',    //Used in edit.php, before the upload field, %%ATTACHMENTS%% must be there, it will show how many attachment the user has as a maximum...
'Note2'                    =>    '??: ??????????????????????.',    //Used in edit to display a note under the attachment field


// attach.php
'Image view - Attachment Mod'    =>    '???? - Attachment Mod',    // Used in attach.php, header on the Image view frame.
'Download:'                        =>    '??:'                        // Used in attach.php, where one can click the filename to download.
);

105

Re: Attachment Mod 2.0.1 by Frank H

nice smile

could you zip the language file and mail it to frank {dot} hagstrom {at} gmail {dot} com?
(if you do I can upload the languagefile to punres where the other lang files are already, + we know that there won't be anything odd with charsets if I cut and paste it)

106

Re: Attachment Mod 2.0.1 by Frank H

the mod don't work for me, i try post a message with a attach but don't attach anything and only send the message

El Mejor Lugar de la Red - Corporación Azakur4

107

Re: Attachment Mod 2.0.1 by Frank H

Frank H wrote:

7. To test that upload works, use a tiny textfile (make a new textfile and write test in it, and save it). If that one works, but not other files, you probably haven't set the max upload size in "Alter Settings", read Documentation chapter 1.6 to figure out what value to use. (Using this small value to force people to set the settings according to their server, as 'every' server has it's own config)

Test that, and if it still fails, email me (usually easier to hunt bugs through email).

Re: Attachment Mod 2.0.1 by Frank H

I have post a mail to you.

109

Re: Attachment Mod 2.0.1 by Frank H

The simplified chinese is uploaded to punres.org

110

Re: Attachment Mod 2.0.1 by Frank H

Frank,

Just installed the mod and it works fine - thanks!
One remark for the readme.txt file:
"compressed.pnd to img/attach/" should be "compressed.png to img/attach/"
smile

111 (edited by Frank H 2005-05-29 07:50)

Re: Attachment Mod 2.0.1 by Frank H

sounds nice smile

thanks, lol, will alter that for next release (think you're the first on a few hundred downloads that has noticed it big_smile)

Edit: entered it under normal bugs in the first post smile

112 (edited by Dexus 2005-05-30 07:22)

Re: Attachment Mod 2.0.1 by Frank H

I've made this mod creating a number of attachments at one posting, and adding attachments as links/images directly into message body WITHOUT any edit. So even guests are able to make a post with a number of images as attachments and as <img>'s.
But number of changes I made is so huge, that releasing of "mod addition" is impossible.

113

Re: Attachment Mod 2.0.1 by Frank H

ok, good to hear you've solved your needs smile

(*sigh* ... 60 sec post limit roll wink)

114 (edited by Dexus 2010-09-05 18:15)

Re: Attachment Mod 2.0.1 by Frank H

I'd changed "rules wizard" a little. Now it will display any number of groups - table will be scrollable (Well, Frank, you said a number of user groups will make it unusable - now it don't! smile ). Also scrollable browser window or number of forums+categories. Take it from here [updated 2010-09-05].
It works like old one.
- You may make particular changes in particular parameters of single rule.
- You may copy all parameters from one single rule to other.
- You may copy rules of every user group from one forum to other.
- You may copy rules of every forum from one user group to other.
- You may clear rule parameters.
- When "update" is done - all rules are re-created. Some of them are deleted (if they were empty), some of them are created. So you can create WHOLE attachment ruleset at once.

P.S. It's really great mod (I mean attachment mod).
P.P.S. It will be a great advantage if there were possibility to make first column (forum/category names) static(unscrollable).

115 (edited by Frank H 2005-06-01 08:05)

Re: Attachment Mod 2.0.1 by Frank H

hehe, heavily modded mod by now I guess, but I hope the documentation and comments all over the place helps big_smile

I might peak at it later, but a this moment I'm choked with stuff to do big_smile

P.S. (unless PunBB changes an incredible amount to 1.3 I think this mod will be fairly easy to upgrade, so just remember to make a diff on your mods and it will probably work fine to upgrade later smile)

Re: Attachment Mod 2.0.1 by Frank H

Hi guys,
i try to install this mod, but .....  smile

Well, i dont know! I changed all files(delete.php, post.php, etc), i uploaded all files and try to install the mod...  but i get an error: PunBB reported: Unable to copy .htaccess file to new subfolder...
i have insert an folder at the forum root liek "attach" and set the chmod at 777, but nothing happens, the same error...

Greetings
Michaela

117

Re: Attachment Mod 2.0.1 by Frank H

sounds like there's still not correct ... I'm sending a mail, easiest to bughunt through that wink

118

Re: Attachment Mod 2.0.1 by Frank H

I tried the script, with all kinds of settings. It only worked with one attachment, when i wasn't logged in (guest). All other attempts have failed, even more tests with guest (and the same file) fails.
I dubble checked the changes to my forum files, but haven't been able so spot anything.. :S

119

Re: Attachment Mod 2.0.1 by Frank H

I'm mailing you with a few questions (a couple of things it could be, most probably you haven't set the max upload size)

120

Re: Attachment Mod 2.0.1 by Frank H

Sorry for not answering sooner. I've fixed it, I screwed my enire punBB-code. Reinstalled, it works perfect. Thanks alot!

121

Re: Attachment Mod 2.0.1 by Frank H

sounds nice smile

122

Re: Attachment Mod 2.0.1 by Frank H

Hi!

I have just installed this mod and when i do an attach and try to execute it i get

"Bad request. The link you followed is incorrect or outdated."

Whats up with that?

/André

123

Re: Attachment Mod 2.0.1 by Frank H

have mailed ... easier to bughunt through that ... (but that thing was a first)

124

Re: Attachment Mod 2.0.1 by Frank H

Jag ser att du kommer från Luleå så jag byter väl språk. Jag förstår inte riktigt vad du menar? Har du några tips om var felet kan vara?

125

Re: Attachment Mod 2.0.1 by Frank H

You've got mail smile=

have emailed some more now, and tested your forum, not sure what it is, but forum id is probably loist somehow smile