| View previous topic :: View next topic |
| Author |
Message |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Sun May 18, 2008 4:52 Post subject: [Plugin] Quick Upload |
|
|
Read in Russian / Русская страница плагина
Do you have many files/images in your media folder?
When you hit the "files" button it takes a long time to load as it loads all the files/images in the folder. What if you have a few hundreds of files...
Install this plugin and forget about the file manager.
Download v0.4
By default it uploads files in blog's media folder (if you create or edit a post in Blog B all files get uploaded to /media/blogs/b or whatever is set as default media dir for this blog).
You can also enable directories tree in plugin settings and choose a destination directory before uploading files.
Each post may have its own directory for uploaded files (created automatically). No more mess in media folder and no more "the file already exists" errors.
 _________________ Russian b2evolution | Download
Last edited by sam2kb on Wed Nov 11, 2009 9:23; edited 17 times in total |
|
| Back to top |
|
 |
EdB /bb|[^b]{2}/
Joined: 05 Jan 2004 Posts: 7123
  votes: 90
|
Posted: Sun May 18, 2008 9:54 Post subject: |
|
|
Sounds like a nice plugin+hack! It would be really super cool if it could be done without a hack, but I know that means lots of stuff won't ever happen without it.
Cool though. I will probably be adding this one to a group blog I run. Thanks! |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Sun May 18, 2008 13:48 Post subject: |
|
|
Thanks, I will try to copy some functions from upload.ctrl.php into plugin file and get rid of core modifications. _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Sun May 18, 2008 17:55 Post subject: |
|
|
I moved everything to external file and there are no core hacks required now, but here is another problem.
I don't know why, but now param( 'var', 'string' ) function doesn't define a $var variable. What I mean...
param( 'var', 'string', '56' );
echo $var;
This returns Notice: Undefined variable: var message. _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Sun May 18, 2008 23:46 Post subject: |
|
|
Plugin updated:
- no file edit required, install it and use
- fixed many annoying bugs _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Mon May 19, 2008 0:01 Post subject: |
|
|
OK, I uploaded the whole folder ( locales included )
Until I selected to specify a directory I got big RED error messages all over the upload window and no upload to the default media folder.
It sure is convenient and thanks _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Mon May 19, 2008 0:05 Post subject: |
|
|
Well I didn't test it with *non-default* media dir path yet.
Is it /media/blogs/qwerty in your case or is it something unique? _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Mon May 19, 2008 0:35 Post subject: |
|
|
Hi sam2kb, it's simply /media _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Mon May 19, 2008 0:47 Post subject: |
|
|
Hi John, can you post that red message here please. _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Mon May 19, 2008 0:54 Post subject: |
|
|
will do, I'll jump in and save the settings first :)
 _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Mon May 19, 2008 2:54 Post subject: |
|
|
Yes, tell me about it
I'm happy with it as it is with directory tick option. _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Mon May 26, 2008 2:25 Post subject: |
|
|
@sam2kb
I may be paranoid but I just found this on my Direct hits
http://mysite.com/htsrv/call_p...ick_upload
This allows files to be uploaded. Now the question is, what's to stop someone other than me to do that?
I have disabled the plugin for now _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
¥åßßå Blonde Bimbo
 Joined: 07 Jan 2005 Posts: 6579
    votes: 115
|
Posted: Mon May 26, 2008 3:20 Post subject: |
|
|
Stop fretting
The upload is protected by login
| PHP: |
/**
* @global boolean Is this an admin page? Use {@link is_admin_page()} to query it, because it may change.
*/
$is_admin_page = true;
$login_required = true;
|
¥ _________________ I may have opened the door but you entered of your own free will
| normal life wrote: |
yabba_hh: I think, I type, I read what I type, I think "fuck, what was I thinking when I typed that?!"
tuxnus: that's two more thoughts than I give you credit for |
|
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Mon May 26, 2008 3:22 Post subject: |
|
|
Ok, I'll buy that, I think!! _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
|