Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#11 Feature Request: Hide text input in shoutbox conditionally

open
None
5
2012-09-20
2012-07-08
Felix Eckhofer
No

Attached patch will hide the input control of the shoutbox if the user is an AJAX_CHAT_GUEST and $config['allowGuestWrite'] is set to false (i.e. he can't say anything anyway).
This is done by adding a template tag [CLASS_WRITEABLE/] (to be used as CSS class) which is set to either "write_allowed" or "write_forbidden".

Discussion

  • Felix Eckhofer
    Felix Eckhofer
    2012-07-08

    Hide input control if user is not allowed to chat

     
    • assigned_to: nobody --> frug