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 28. Mar 2024, 17:08

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




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

Joined: 30. Jun 2009, 16:56
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: 30. Jun 2009, 19:00 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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: 30. Jun 2009, 19:08 
Offline

Joined: 30. Jun 2009, 16:56
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: 30. Jun 2009, 19:12 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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: 30. Jun 2009, 19:23 
Offline

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

Good night ! :P


Top
 Profile  
 
 Post subject:
PostPosted: 30. Jun 2009, 23:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you are welcome.


Top
 Profile  
 
 Post subject: Re: Symbolic link
PostPosted: 19. Jan 2012, 06:18 
Offline

Joined: 19. Jan 2012, 06:14
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: 19. Jan 2012, 09:19 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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: 19. Jan 2012, 11:28 
Offline

Joined: 19. Jan 2012, 06:14
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: 19. Jan 2012, 11:46 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
simply remove the line in the init.php.

- Michael


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

Joined: 19. Jan 2012, 06:14
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 21 guests


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 | Datenschutz/ Privacy policy