1:
great. thanks! totally worked.
posted my results at the bottom of the attachtable page
http://www.pmwiki.org/wiki/Cookbook/Attachtable#byteConversion

2:
i figured out a modification that works for me
see more: http://www.pmwiki.org/wiki/Cookbook/Attachtable#redirection

thanks again for the suggestions!


On 25 Jun 2008, at 2:59 PM, Eemeli Aro wrote:

2008/6/23 adam overton <[EMAIL PROTECTED]>:

hi
i have two attachtable questions:

1:
How would one go about changing the display of filesize from bytes to
KB, or even to MB?

You'll need a function to turn the filesize in bytes to the string
that you want, and replace the string "number_format($stat['size'])"
in attachtable.php with a call to your function, eg.
"your_function($stat['size'])". One such function that I could quickly
find is at <http://php.net/manual/en/function.number- format.php#72969>.

Apologies for leaving this up to you to finish; I haven't had a need
to even look at the code for months now, and I've been rather busy
with other work.

2:
After renaming, deleting, etc, how can I prevent attachtable from
redirecting to the confirmation on Group.Page?action=upload...? I'd
rather it just go back to the page where I was uploading from (in
this case, Group/Uploads)? In fact, I'd love to be able to have an
options field like this:
                 (:attachtable MyGroup.MyUploadPage
redirect=MyGroup.MyUploadPage#currentUploads:)

Is there an easy solution to making this possible, and maybe even
adding this as an option? - i took a look around and tried a few
solutions, all of which led to errors...

I'm not quite sure what you're looking for here. My own sites use
Attachtable as a replacement for (:attachlist:) in
Site.UploadsQuickReference.

eemeli

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to