GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to import wordpress photos/vids from your server (not via upload)? (https://gfy.com/showthread.php?t=1024774)

DWB 05-31-2011 10:44 AM

How to import wordpress photos/vids from your server (not via upload)?
 
I don't need a gallery maker but just want to add media that is already on my server (same domain) instead of loading it through the usual uploader.

Wanting to be able to use the gallery feature that I have and just tell it where to pull the images.

Is there a plugin or easy fix for this? Or is there a setting that I've never known about? I know I can do it with something like UU Gallery, but I don't want to change the gallery maker.

fris 05-31-2011 10:50 AM

use a plugin called add from server

http://wordpress.org/extend/plugins/add-from-server/

Barry-xlovecam 05-31-2011 11:00 AM

in ssh if you have it ...

Code:

#mv /home/user/CurrentPath/filename.jpg /home/user/NewPath/filename.jpg

#chown newUser /home/user/NewPath/filename.jpg

mv=move(rename) in UNIX
chown if changing ownership (ch(ange) own(er))

Barry-xlovecam 05-31-2011 11:18 AM

you could also use cp instead of mv ...

cp=copy (makes a duplicate in a new location)

DWB 05-31-2011 12:08 PM

Quote:

Originally Posted by fris (Post 18180229)
use a plugin called add from server

http://wordpress.org/extend/plugins/add-from-server/

Just loaded that and I thought it may work but it says it copies the files to the upload directory.

You know a plugin that will do the same thing and allow me to keep a folder structure?

DWB 05-31-2011 12:16 PM

Quote:

Originally Posted by Barry-xlovecam (Post 18180339)
you could also use cp instead of mv ...

cp=copy (makes a duplicate in a new location)

That is what the plugin did. That will be a last resort, going to try to find something that will allow me to keep my folder structure together instead of just dumping everything into the usual upload folders.

/gallery01
/gallery02
/gallery03

Instead of putting them all into upload/2011/may/

Barry-xlovecam 05-31-2011 02:42 PM

Quote:

< Copying and moving directories >

For copying and moving directories you can use the cp and mv commands just like you use them with files. Yeah, I know. If you've already tried to copy a directory with cp, you've probably noticed that cp just complains at you. Probably it says something like cp: omitting directory yadda yadda. You see, the cp command wants you to use the -r option if you want to copy a directory with its contents. The -r means "copy recursively":
$ cp -r dir1 dir2

The above creates a directory named dir2 whose contents will be identical to dir1. However, if dir2 already exists, nothing will be overwritten: the directory dir1 will be copied into the dir2 directory under the name dir2/dir1.

When renaming directories, you use the mv command exactly the same way as with files:
$ mv dir1 dir2

When dealing with directories, mv works a bit like cp does. If dir2 doesn't exist, the above will rename dir1 to dir2, but if dir2 exists, the directory dir1 will be moved into the dir2 directory under the name dir2/dir1.

http://www.tuxfiles.org/linuxhelp/dirman.html
cp -r the directory to the path in the WP installation (-r or -R = recursive (all subdirectories and their files too)

They are in different user accounts? If the same this can be done in FTP as the user ...

Brujah 05-31-2011 02:49 PM

Could be an alternative way to handle it with a CDN plugin, which w3 total cache does for example even though it's not strictly a CDN plugin.
http://webmasters.stackexchange.com/...the-filesystem


All times are GMT -7. The time now is 03:14 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc