Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Multi -users https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=612 |
Page 1 of 2 |
Author: | Merlin44 [ 5. Nov 2006, 15:15 ] |
Post subject: | Multi -users |
Is there a way to have multi gallery i.e. differents pictures folders ? |
Author: | Merlin44 [ 5. Nov 2006, 16:47 ] |
Post subject: | |
Sorry.. Too easy if (!empty($user_gal)) $basedir = $user_gal; In my_config.php is enough |
Author: | Merlin44 [ 27. Nov 2006, 19:28 ] |
Post subject: | |
Not so easy.. If i do that, twg handle well when i use original base_dir as folder name in my user_gal, but i put another folder it doesnt not handle pic in folder Need to tweak more with more help |
Author: | TinyWebGallery [ 27. Nov 2006, 19:51 ] |
Post subject: | |
Hi, I don't understand exactly what you are saying and what your problem is. have your tried to simply add a userdir to the basedir? Problem still that you have one xml folder only - if users do have equal subfolders these are overwritten! you would have to adopt the xmlfolder as well to the userdir at this place! /Michael |
Author: | Merlin44 [ 27. Nov 2006, 19:59 ] |
Post subject: | |
I ask my url with ?user_gal=xxxxx I put a folder xxxxx and a subfolder yyyyy on same level of pictures (the same of basedir) when i try with : user_gal=pictures (the original one) it work with pictures when i try with : user_gal=xxxxx i've my folder yyyyy in my new gallery But .. not picture (I use my little first hack for that, changing on fly the basedir) |
Author: | TinyWebGallery [ 27. Nov 2006, 22:01 ] |
Post subject: | |
no - this won't work because you use the request only all the pictures are called by the image.php that need this parameter too! What you have to do is parse this paramter - put it in the session and if set get it from the session back - Do this in mysession.inc.php - it is called by all files theat need the basedir... /Michael |
Author: | Merlin44 [ 30. Nov 2006, 15:57 ] |
Post subject: | |
Nothing happen in print_thumbnail of index.inc. It dont handle this extra paramter for all link |
Author: | TinyWebGallery [ 30. Nov 2006, 16:02 ] |
Post subject: | |
?? you have to modity basedir by the value you store in the session |
Author: | Merlin44 [ 30. Nov 2006, 16:07 ] |
Post subject: | |
Already do that : in mysession if (isset($_SESSION["user_gal"])) { $basedir = $_SESSION["user_gal"]; } |
Author: | TinyWebGallery [ 30. Nov 2006, 16:09 ] |
Post subject: | |
if this is you only code change its completly useless . you ask for a object in the session that is never set .... - does not make sense, doesn't it? |
Author: | Merlin44 [ 30. Nov 2006, 16:20 ] |
Post subject: | |
if (isset($_GET["user_gal"])) { $basedir = $_GET["user_gal"]; $_SESSION["user_gal"] = $basedir; } Better ? |
Author: | TinyWebGallery [ 30. Nov 2006, 16:22 ] |
Post subject: | |
you are getting closer - now you have it in the session - but you never read it |
Author: | Merlin44 [ 30. Nov 2006, 16:26 ] |
Post subject: | |
If my session is fine and my basedir too, image and index are reading them now ? Anyway it doesnt work so i miss something |
Author: | TinyWebGallery [ 30. Nov 2006, 16:33 ] |
Post subject: | |
no - you still have to add if (isset($_SESSION["user_gal"])) { $basedir = $_SESSION["user_gal"]; } below - otherwise the next imte you don't have the parameter in the request you don't have it anymore ... |
Author: | Merlin44 [ 30. Nov 2006, 16:39 ] |
Post subject: | |
Yes yes yes... You are the best Michael lol Was thinking around but not about that. It work.. Happy me, Long life to twg ! |
Page 1 of 2 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |