Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Suggestion: Show current state of Watch thread

Quote Reply
Suggestion: Show current state of Watch thread
Suggestion for GForum:
Watch thread button should reflect the current watching state.

Something like:
"Watch thread" if watching is not turned on
"Stop Watching thread" if watching is turned on (maybe should have a bit different color, too)

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...

Last edited by:

webmaster33: Oct 26, 2003, 10:47 PM
Quote Reply
Re: [webmaster33] Suggestion: Show current state of Watch thread In reply to
Good idea! You could probably do this with a global.

is_watched =>
sub {
my $id = shift;
return $DB->table('ThreadWatch')->count( { user_id_fk => $USER->{user_id}, thread_id_fk => $id });
}

and then do:

<%if is_watched($post_root_id)%>
.. display stop watch
<%else%>
.. display watch
<%endif%>

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Suggestion: Show current state of Watch thread In reply to
Thanks for the solution!

However, I suggested it to see the feature here on the forum :)

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [Alex] Suggestion: Show current state of Watch thread In reply to
Could be this feature implemented into this forum?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...