Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4200
Latest: [chrisB]
New This Month: 4
New This Week: 1
New Today: 1
Stats
Total Posts: 42602
Total Topics: 7433
Most Online Today: 103
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 2
Guests: 56
Total: 58

Author Topic: Tried searching for answer - changing folder where images are stored  (Read 2298 times)

0 Members and 1 Guest are viewing this topic.

guest12137

  • Guest
I set the Gallery up with the defaults.  I note that the images and thumbnails are being stored in the root 'gallery' folder itself.  I assumed there would be a sub directory to house the actual image files, keeping them away from some of the other files like index.php, some of the source images etc.

Oh, and what is the SMFGallery3.7.zip file doing in the Gallery folder?  I presume I don't need it there.

Anyhow - can I simply move the image files to a new directory and update the Gallery Path and Gallery URL?  Is the Gallery Path where the images are stored, and the Gallery URL where the source files need to remain?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16156
    • View Profile
Re: Tried searching for answer - changing folder where images are stored
« Reply #1 on: April 03, 2014, 08:17:02 pm »
The gallery folder will store all the images/ fullsize,medium size/thumbnail size by default. If you have the option to store in multifolders then the gallery creates a folder for every one thousand images by default such as /gallery/1/ /gallery/2/ etc

SMFGallery3.7.zip does not need to be in the gallery folder should never be there.

The gallery url and path can be changed under gallery configuration. Just make sure to rename your gallery folder to the new name that you want to use.

If you want to use a folder called images instead for example you would set the gallery url to http://www.yoursite.com/images/
And the gallery path would be changed from /home/public_html/gallery/ to  /home/public_html/images/
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

guest12137

  • Guest
Re: Tried searching for answer - changing folder where images are stored
« Reply #2 on: April 03, 2014, 10:16:10 pm »
And after I change the folder name in the settings / create it, I can move existing images and thumbnails to it without any further changes?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16156
    • View Profile
Re: Tried searching for answer - changing folder where images are stored
« Reply #3 on: April 03, 2014, 10:20:22 pm »
Yes that should be it. Just make sure that new folder has writable permissions.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

guest12137

  • Guest
Re: Tried searching for answer - changing folder where images are stored
« Reply #4 on: April 03, 2014, 10:56:09 pm »
So it all worked out OK - moved the images, CHMOD the new folders/files to 755, no problems.

But, the Gallery / Category Thumbnails are not working.  I've tried resetting them with no luck from the image viewing screen where you can set the image as the Category Thumbnail.  It doesn't throw an error, but it doesn't work.

When I go into Edit of a Gallery, I see a red warning - Warning Gallery Category Image Path is not writable! /srv/www/dotheton.com/public_html/gallery/catimgs

Now, it is absolutely writeable.  I've done it through FileZilla, I've CHMOD'd it in Putty to 755, the owner/group are www-data/www-data - it's all as it should be.

Suggestions?  Gallery works, I can upload pics, they get thumbnails, but the Gallery and Category thumbnails can't be created.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16156
    • View Profile
Re: Tried searching for answer - changing folder where images are stored
« Reply #5 on: April 03, 2014, 11:02:51 pm »
Check your forum error log for clues might give the path issue or error message.

Also if you moved the folder would the path be different other than /gallery/catimgs ? I would also check that the folder has the exact same permissions as the folder that the images that can be uploaded. And that the group is the same for both.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

guest12137

  • Guest
Re: Tried searching for answer - changing folder where images are stored
« Reply #6 on: April 03, 2014, 11:28:29 pm »
UGH I feel dumb - I assumed, wrongly, that the folder configuration in the Settings area of the Gallery was specific to the storage of images, not the rest of the folders and files needed.

So, I copied all the other files and folders over from the original gallery folder created during installation to my new folder.

I wanted it outside my main 'forum' directory so I can easily backup the forum itself, without necessarily backing up the gallery content.  Ultimately there may be many GB's of image files that I don't want to back up on a regular basis whereas I back my forum code up daily, before and after each Mod etc.

So - now that I've copied over the entire content of the original Gallery folder, as in

catimgs
css
fonts
ftp
fupload
images
import
js
notes

along with

index.php
FacebookShare.png
lighter.png
rss.png
mature.gif

Do I need the original Gallery folder inside the Forum folder?

My Gallery Path, Gallery URL, Batch Add Path all point to the new gallery folder in my root domain directory.

Gallery Path /srv/www/dotheton.com/public_html/gallery/
Gallery URL http://www.dotheton.com/gallery/
Batch Add /srv/www/dotheton.com/public_html/gallery/ftp/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16156
    • View Profile
Re: Tried searching for answer - changing folder where images are stored
« Reply #7 on: April 04, 2014, 11:40:02 am »
To do the backup plan you are wanting to do you will need to either create a new subdomain for pictures or have another directory path is accessible to the web.
The gallery path must be able to be fetched via the web since that is where the pictures are stored and will be pulled from.

The new gallery folder should contain all the files that were in the original gallery folder.
All the paths below should be updated to the new gallery path and the gallery url should reflect the location of the gallery path.
Gallery Path /srv/www/dotheton.com/public_html/gallery/
Gallery URL http://www.dotheton.com/gallery/
Batch Add /srv/www/dotheton.com/public_html/gallery/ftp/
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
4117 Views
Last post December 30, 2007, 01:31:22 pm
by SMFHacks
0 Replies
2037 Views
Last post January 17, 2011, 12:19:31 pm
by redpotato
3 Replies
4379 Views
Last post August 10, 2013, 06:24:10 pm
by SMFHacks
1 Replies
3149 Views
Last post May 28, 2014, 08:54:56 am
by SMFHacks
16 Replies
1606 Views
Last post June 20, 2021, 12:41:48 pm
by robgratt

+- Recent Topics

Errors with SMF2WPBridge by SMFHacks
Today at 12:21:25 pm

Undefined index: id by Shades
Today at 12:15:20 pm

Permissions query by davejo
Today at 01:31:46 am

"Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3 by Michael Vail
Today at 01:02:34 am

Additional Recommendations for SMF Store by Michael Vail
November 26, 2022, 12:49:58 pm

SMF Store 5.0 Beta Errors - Trying to access array offset on value of type null by Michael Vail
November 26, 2022, 12:07:42 pm

Modification: Subcategories total in main gallery view by VisiGod
November 26, 2022, 11:27:34 am

Change log for Downloads Pro 6.13 and 6.14 by Nicole
November 20, 2022, 08:24:34 am

Release date? by SMFHacks
November 20, 2022, 08:09:10 am

Can't install due to missing file? by SMFHacks
November 18, 2022, 06:55:45 pm

Powered by EzPortal