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 24. Nov 2024, 05:23

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: comment author
PostPosted: 2. Dec 2008, 04:49 
Offline

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

I have a private-external login before entering my gallery.

When users login they are able to comment on pictures.

I realized that their names weren't appearing. So the question is,

1) Is it possible to publish the NAME of the author of a comment? If yes:

2) ¿how do I pass the Username to TWG, since I have an external login?

Thanks a lot in advance for any possible help,

siran


Top
 Profile  
 
 Post subject:
PostPosted: 2. Dec 2008, 09:30 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
twg does this for internal users if you do the appropriate settings.

set $enable_comments_only_registered
and put the name in $_SESSION["s_user"]

This is no real login but exactly what you need.

/michael


Top
 Profile  
 
 Post subject:
PostPosted: 2. Dec 2008, 13:30 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
Thanks a lot, i'll try it right away.


The answers are so fast I wonder how many /Michael s are there : )


Again, thanks...



What are the appropiate settings you are talking about ?


siran


Top
 Profile  
 
 Post subject:
PostPosted: 2. Dec 2008, 13:55 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The settings above. And it's only me ;).


/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 2. Dec 2008, 15:08 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
TinyWebGallery wrote:
And it's only me ;).


/Michael



: D


Top
 Profile  
 
PostPosted: 3. Dec 2008, 04:51 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
TinyWebGallery wrote:
set $enable_comments_only_registered
and put the name in $_SESSION["s_user"]



Hi again, it's me ! : )


I tried what you told me, and it works alright, but i have a some questions:

1) The "Comments" link is to be shown although $_SESSION["s_user"] is empty and $enable_comments_only_registered=true ?

2) Can I change the date-time format in the comments, as for only to show the date ?


Thanks!

siran


Top
 Profile  
 
 Post subject:
PostPosted: 3. Dec 2008, 09:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

1. Empty != not set. You have to unset it.

2. You have to change the code to change the format.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Dec 2008, 14:15 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
Thanks again, /Michael !

The variable shouldn't be set if there's no username or if it's empty. I'll check...

BTW, the hour appears always as 3.40, but I checked the server time and it wasn't 3.40 ?!


siran


Top
 Profile  
 
 Post subject:
PostPosted: 3. Dec 2008, 14:18 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
maybe a different time zone is set?

/michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Dec 2008, 14:44 
Offline

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

1. Empty != not set. You have to unset it.

/Michael


Hi ! It worked perfectly...

But although I have $enable_selfregistration=false;, i have a message that "register clicking on login, right upper corner"

Can this be disabled ?

Thanks,

siran


Top
 Profile  
 
 Post subject:
PostPosted: 3. Dec 2008, 14:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Where does this message show up? I don't know this message like this.

/Michael


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 25 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