Re: Attachment Mod 2.0.1 by Frank H
my program is rough,i hope someone can optimize it
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Attachment Mod 2.0.1 by Frank H
my program is rough,i hope someone can optimize it
Ah, IIRC there were a couple of people that wanted that, so thanks for creating it
(but I won't add it to the default mod, too much fluff in my eyes )
(Just remember to first test the mod before adding this, easier to hunt for errors with less modifications )
I using it now on my forum
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.
);
nice
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)
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
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).
I have post a mail to you.
The simplified chinese is uploaded to punres.org
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/"
sounds nice
thanks, lol, will alter that for next release (think you're the first on a few hundred downloads that has noticed it )
Edit: entered it under normal bugs in the first post
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.
ok, good to hear you've solved your needs
(*sigh* ... 60 sec post limit )
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! ). 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).
hehe, heavily modded mod by now I guess, but I hope the documentation and comments all over the place helps
I might peak at it later, but a this moment I'm choked with stuff to do
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 )
Hi guys,
i try to install this mod, but .....
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
sounds like there's still not correct ... I'm sending a mail, easiest to bughunt through that
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
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)
Sorry for not answering sooner. I've fixed it, I screwed my enire punBB-code. Reinstalled, it works perfect. Thanks alot!
sounds nice
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é
have mailed ... easier to bughunt through that ... (but that thing was a first)
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?
You've got mail =
have emailed some more now, and tested your forum, not sure what it is, but forum id is probably loist somehow
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Attachment Mod 2.0.1 by Frank H
Powered by PunBB, supported by Informer Technologies, Inc.