• Hey everyone, I am desperately trying to figure this out Iv managed to succeed but not entirely.. I use the Import Image Folder feature on Nextgen, because I want to keep my server organized, and keep pictures in their relevant path. the thing is now, I need to change where the thumbnails are stored, heres my layout… i have two main folders that i import from
    .com/pictures/ further sub folders like /imageset1, /imageset2 (which i want to contain the full pictures.
    .com/member/pictures/ member folder is password protected through cpanel, therefor so is everything in it, such is /pictures
    if i import from /member/pictures/imageset1, i do not want people to gain access to the large pictures, unless their logged in through password protected directories, not through wp login features. this here is already functioning fine, what i really need is the thumb nails, which also become password protected sense they are in /member/pictures/imageset1/thumbs
    which resides in /member

    i would like all thumbs to automatically go to,
    .com/thumbs/imageset1 (imageset1 actually being relavent to what ever the imported folder was called, so if i import from
    .com/member/pictures/image3,
    then the thumbs would be created in,
    .com/thumbs/imageset3

    this way, all thumbnails reside in an un protected directory, allowing people who are NOT logged in, to see the thumbnails, but only members who are logged in, to actually open the the full size pic cause their linked to
    .com/member/pictures/imageset#

    i had some luck playing with nextgen core.php and nggfunctions.php but i dont really know what im doing.. i was able to get nextgen to create a thumbs folder imageset1thumbs/thumbs/thumbs_img.jpg but this folder still remained in the member folder…

    i have a feeling this is really easy to do sense i got almost half way there by my self.. if anyone could help me i would appreciate it very much.

    http://wordpress.org/extend/plugins/nextgen-gallery/

Viewing 13 replies - 1 through 13 (of 13 total)
  • have you tried ../ in front of your imageset1thumbs/thumbs/thumbs_img.jpg?

    If you need to go back up more than one folder than keep adding, like so ../../

    Paul

    Thread Starter applesfaceman

    (@applesfaceman)

    man i knew that ../ thing had something to do with it, but im not that familiar with really any of this, and i never personally specified imageset1thumbs, i looked for all instances of /thumbs and simply placed, /thumbs in front of / thumbs, then it automatically created imageset1thumbs..
    so im not sure which change was the one that did it, if not all of them? oh wait maybe do the same thing but replace /thumbs with, ../thumbs/thumbs ? eep!!

    Thread Starter applesfaceman

    (@applesfaceman)

    ah man i added ../ in front of them all and i import from .com/member/pictures/jan10
    and it creates thumbs folder
    .com/member/pictures/jan10..thumbs

    its not in the jan10 folder with the large pics but its only one dir up, and its got .. in it? lol heeeelp!!

    Thread Starter applesfaceman

    (@applesfaceman)

    err ok i put ..thumbs on two of them, instead of ../thumbs

    but now it places

    .com/member/pictures/jan10..
    which is the thumbs folder,
    in /pictures with /jan10
    which is the main pics… err

    Have you done something like this?

    $gallerypath = ‘../../’ . $gallerypath;
    $gallerypath = WINABSPATH . $gallerypath;

    placing it in core.php under function create_thumbnail_folder

    Paul

    Thread Starter applesfaceman

    (@applesfaceman)

    any idea if anything in nggfunctions.php needs to be changed, cause their are instances of /thumbs
    so i would think of something goes calling on that dir, which is not their since i would have changed it, might break something. any idea?
    thanks a lot paul i appreciate it

    Thread Starter applesfaceman

    (@applesfaceman)

    ok i changed

    $gallerypath = WINABSPATH . $gallerypath;

    to

    $gallerypath = ‘../../’ . $gallerypath;

    and nothing happened at all. ever thing works like normal, thumbs in the dir it goes in by default.

    Yeah, my thinking on that isn’t going to work. And I’m running out of time to help on this. Maybe someone else will chime in.

    From what I can see the folder is being created in lib/core.php. Around line 46 the function get_thumbnail_folder, which calls function create_thumbnail_folder, gets called. If you can change the variable $folder_url somehow I think that that will solve most of the problem. Of course, you might be right in that you will need to modify some code in nggfunctions.php.

    Paul

    Thread Starter applesfaceman

    (@applesfaceman)

    yeah lately iv only been messing with core, originally i played with core and nggfunctions, and at one point i was able to get the folder thumbs ourside of the members password protected dir, but the thumbnails would fail to create when i import.. i know it can be done i feel its just not as simple as a couple lines changed, because it has to set the creattion of the folder and where it goes, then it needs to tell the thumbs nails where to go, but i think its telling the thumbs to go where they normally go, not 3 dirs up… i dunno, im diein here trying to figure it out, its like the last thing i need to configure before i can to a final set up and launch 🙁

    Take a look at wp-content/plugins/nextgen-gallery/admin/functions.php

    It has the import_gallery() function in there and within that there is a call to get_thumbnail_folder($gallerypath). Maybe changing $gallerypath?

    Also it calls do_ajax_operation() with is in admin/ajax.php. Maybe there?

    Sorry I can’t be of more help.

    Paul

    Thread Starter applesfaceman

    (@applesfaceman)

    ill check it out, i appreciate your efforts Paulio.

    apples have you had any luck? this would be a pretty good feature for password protected sites that i could use for my website too… if you figure it out off of wordpress.org please post it i could use this feature

    Thread Starter applesfaceman

    (@applesfaceman)

    no mcdanman i havnt had any luck, its gotta be right in front of me im just having a hard time figuring it out, i will post here if i find it by myself.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: NextGEN Gallery] specify thumbnail path.’ is closed to new replies.