Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Multiple users, profiles and a single menu link
https://www.tinywebgallery.com/forum/viewtopic.php?f=13&t=1174
Page 1 of 1

Author:  kelu [ 4. Sep 2007, 15:29 ]
Post subject:  Multiple users, profiles and a single menu link

Hi there,
I've installed this great component. I particullary appreciate the way you can assign a folder to a specific user (or group of users). This is awfull, thanks a lot.
So, in the user menu I did a link to the component and in the parameter area I had had to specify to wich "jfu's profile Id" this link refer.
This is in my case inappropriate. I do not want to create as many links as my webste's users ...
I did had a look at components/com_joomla_flash_uploader/joomla_flash_uploader.php.
It seems thaht in that part of the code:
Code:
// Parameters
$menu = new mosMenu( $database );
$menu->load( $Itemid );
$params = new mosParameters( $menu->params );
$id  = $params->get( 'tfu_id' );
$sel_id = $params->get( 'tfu_sel_id' );
the component retrieve the right configuration profile Id.

My questions:
I want to modify the code above with a little sql query that will retrieve the right profile Id depending on the logged user. Wich one of these two parameters $sel_id and $id in the right one ?
I've read that I can use a so called .htusers.php file. Maybe this could be a simplier way to achieve my task but I didn't find more informations on how to use that ...

Thank you for help and regards from France.

Author:  TinyWebGallery [ 4. Sep 2007, 17:41 ]
Post subject: 

I think you should read the help again ;).

you can use profile id's OR group id's

with the group id you can make one menu link and then assign as many profiles to it as you like. to every profile you can assign one or many users (one profile should be default).

Then depending on the user that is logged in you get a different profile.

I think this is exactly what you want to code ;).

/Michael

Author:  kelu [ 4. Sep 2007, 18:27 ]
Post subject: 

Hi Michael,

thank you for reply ...
Ok, I will have a look further and will make some more tests.

I'll keep you in touch, in case of ...
;-)

Author:  TinyWebGallery [ 4. Sep 2007, 18:57 ]
Post subject: 

;). try

Author:  kelu [ 5. Sep 2007, 00:12 ]
Post subject: 

well done !!
Thanks a lot it works great :P

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/