Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-31-2011, 10:44 AM   #1
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
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.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2011, 10:50 AM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,252
use a plugin called add from server

http://wordpress.org/extend/plugins/add-from-server/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2011, 11:00 AM   #3
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2011, 11:18 AM   #4
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
you could also use cp instead of mv ...

cp=copy (makes a duplicate in a new location)
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2011, 12:08 PM   #5
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by fris View Post
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2011, 12:16 PM   #6
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by Barry-xlovecam View Post
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/
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2011, 02:42 PM   #7
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
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 ...

Last edited by Barry-xlovecam; 05-31-2011 at 02:45 PM..
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2011, 02:49 PM   #8
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
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
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.