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. Nov 2024, 09:09

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  [ 4 posts ] 
Author Message
 Post subject: hi! question on login
PostPosted: 4. Apr 2008, 17:04 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
Hi!

My webpage has it's own login system. I would like to grant administration priviledges on the TWG without having the user to register again using the TWG login link (because he is already logged in as an administrator in the web page).

Is this possible?

If yes, how could I pass the user's login&password to the TWG? Or the ADMIN=YES variable?

thanks,

siran


Top
 Profile  
 
 Post subject:
PostPosted: 4. Apr 2008, 17:30 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
only admin privileges? Then you can easiliy doing this by loading the admin settings depending on the variable you set in your login system.
check i_frames/i_login.php

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 4. Apr 2008, 20:15 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
TinyWebGallery wrote:
only admin privileges? Then you can easiliy doing this by loading the admin settings depending on the variable you set in your login system.
check i_frames/i_login.php

/Michael


Hi,

I really don't know which changes do I have to make on the file(s) so that the user opens the gallery automatically as an admin.

I guess it should be prior to i_login.php.

Is there a variable, lets say, "Is_Admin" that I can set ?


Top
 Profile  
 
 Post subject:
PostPosted: 4. Apr 2008, 22:37 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
siran wrote:
TinyWebGallery wrote:
only admin privileges? Then you can easiliy doing this by loading the admin settings depending on the variable you set in your login system.
check i_frames/i_login.php

/Michael


Hi,

I really don't know which changes do I have to make on the file(s) so that the user opens the gallery automatically as an admin.

I guess it should be prior to i_login.php.

Is there a variable, lets say, "Is_Admin" that I can set ?


8)

Well I managed to grant Editing priviledges to the users I wanted. For those of you interested, i changed the file mysession.inc.php, line 103: I changed it to:

Code:
$login_edit = false || (boolean_condition);


Which enables the user to delete comments, add tags, titles, which is basically want I wanted.

I'm only worried on the maintenance of this change on future versions of TWG.

I want to extend my congratulations to /Michael for this great great gallery he has provided the world with !!!

great work :!: :!: :!:

siran




[/code][/quote]


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 11 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