Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently Thu May 23, 2013 3:44 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Symbolic link
PostPosted: Tue Jun 30, 2009 5:01 pm 
Offline

Joined: Tue Jun 30, 2009 4:56 pm
Posts: 3
Hello,

I have a problem with tinywebgallery.
I have just created a deb package to install on my server and i replaced the /pictures folder by a symbolic link to allow me to put my pictures on an other disk.

But tinywebgallery say "pictures : The current directory may not be above the home directory. ".

How can I set an other folder to put my pictures that wouldn't be in the tinywebgallery folder.

PS : Sorry I d'ont speak english very well. I hope that you'll understand my problem.

Best regards,
Gilles.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 30, 2009 7:00 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 01, 2005 12:53 pm
Posts: 8579
you can specify the pictures folder relative.
So if you have mounted your folder somewhere you can directly link there.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 30, 2009 7:08 pm 
Offline

Joined: Tue Jun 30, 2009 4:56 pm
Posts: 3
I think you mean to set :
$basedir = '../../../mnt/disk1/images';
in the config.php file ?

There is not a better solution ?
Use a relative link isn't very clean because if you move ths tinywebgallery folder it won't work anymore. :(


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 30, 2009 7:12 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 01, 2005 12:53 pm
Posts: 8579
yes.

you can of course disable the security check of the backend.
search for

abovehome

in the administration and disable the checks.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 30, 2009 7:23 pm 
Offline

Joined: Tue Jun 30, 2009 4:56 pm
Posts: 3
Okay, thank you it's working fine.

Good night ! :P


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 30, 2009 11:25 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 01, 2005 12:53 pm
Posts: 8579
you are welcome.


Top
 Profile  
 
 Post subject: Re: Symbolic link
PostPosted: Thu Jan 19, 2012 6:18 am 
Offline

Joined: Thu Jan 19, 2012 6:14 am
Posts: 3
Hi I am using version 1.8.7 and having the exact same problem but can't find the "abovehome" in config.php. Is it still possible to solve this somehow?

Thank you


Top
 Profile  
 
 Post subject: Re: Symbolic link
PostPosted: Thu Jan 19, 2012 9:19 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 01, 2005 12:53 pm
Posts: 8579
you have to search in the code of the administration. this is not in config.php.

- Michael


Top
 Profile  
 
 Post subject: Re: Symbolic link
PostPosted: Thu Jan 19, 2012 11:28 am 
Offline

Joined: Thu Jan 19, 2012 6:14 am
Posts: 3
Hello Michael,

Thank you for your fast reply.

Unfortunately I am not aquainted with php coding, so could you please tell me more about what I am supposed to do and what to modify?

Here's what I found:

grep -R abovehome /srv/http/twg/app
/srv/http/twg/app/admin/_include/fun_copy_move.php: if(!down_home(get_abs_dir($new_dir))) show_error($new_dir.": ".$GLOBALS["error_msg"]["targetabovehome"]);
/srv/http/twg/app/admin/_include/init.php:if (!down_home($abs_dir)) show_error($GLOBALS["dir"] . " : " . $GLOBALS["error_msg"]["abovehome"]);
/srv/http/twg/app/admin/_lang/en.php: "abovehome" => "The current directory may not be above the home directory.",
/srv/http/twg/app/admin/_lang/en.php: "targetabovehome" => "The target directory may not be above the home directory.",

I imagine that I would have to modify the init.php file but not exactly sure what to do...


Top
 Profile  
 
 Post subject: Re: Symbolic link
PostPosted: Thu Jan 19, 2012 11:46 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 01, 2005 12:53 pm
Posts: 8579
simply remove the line in the init.php.

- Michael


Top
 Profile  
 
 Post subject: Re: Symbolic link
PostPosted: Thu Jan 19, 2012 12:54 pm 
Offline

Joined: Thu Jan 19, 2012 6:14 am
Posts: 3
Hello Again,

Just wanted to say thanks, it solved my issue.

Keep up the good work!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO