[Plugin] Quick Upload
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions
View previous topic :: View next topic  
Author Message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sun May 18, 2008 4:52    Post subject: [Plugin] Quick Upload Reply with quote

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... Censored! No
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
View user's profile Send private message Visit poster's website
EdB
/bb|[^b]{2}/

Joined: 05 Jan 2004
Posts: 7123
Reputation: 140.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 90

PostPosted: Sun May 18, 2008 9:54    Post subject: Reply with quote

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
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sun May 18, 2008 13:48    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sun May 18, 2008 17:55    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sun May 18, 2008 23:46    Post subject: Reply with quote

Plugin updated:
- no file edit required, install it and use Wink
- fixed many annoying bugs

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Mon May 19, 2008 0:01    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Mon May 19, 2008 0:05    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Mon May 19, 2008 0:35    Post subject: Reply with quote

Hi sam2kb, it's simply /media
_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Mon May 19, 2008 0:47    Post subject: Reply with quote

Hi John, can you post that red message here please.
_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Mon May 19, 2008 0:54    Post subject: Reply with quote

will do, I'll jump in and save the settings first :)


_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Mon May 19, 2008 2:09    Post subject: Reply with quote

This is a system/server permissions problem, if it fails with this plugin it will fail with File Manager too as they share the same upload functions.

http://forums.b2evolution.net/...hp?t=12921
http://forums.b2evolution.net/...hp?t=14881
http://forums.b2evolution.net/...hp?t=11104

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Mon May 19, 2008 2:54    Post subject: Reply with quote

Yes, tell me about it Smile
I'm happy with it as it is with directory tick option.

_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Mon May 26, 2008 2:25    Post subject: Reply with quote

@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
View user's profile Send private message Visit poster's website
¥åßßå
Blonde Bimbo

Joined: 07 Jan 2005
Posts: 6579
Reputation: 29.5Reputation: 29.5Reputation: 29.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 115

PostPosted: Mon May 26, 2008 3:20    Post subject: Reply with quote

Stop fretting Wink

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
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Mon May 26, 2008 3:22    Post subject: Reply with quote

Ok, I'll buy that, I think!!
_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions All times are GMT - 5 Hours
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board