shortcut to disable chat service ?

Need help? Post your questions here.

Moderator: moderators

shortcut to disable chat service ?

Postby fanartie » Tue May 01, 2012 2:20 am

Hi

I would like to disable chat service to avoid my guest meeting to each other.

I understand there is not the feature to disable it for now, so I would like to have a shortcut to stop chat going.

Here are my quick alternative ideas… I will be appreciate if you could help any…

1. I am able to trigger an api to clear out the chat log every 10 minutes etc… , if you can provide me the api spec (I cannot find from your documentation)

2. I am able to run a java routine to clear out chat log from db, if you could provide me the function call

3. to make chat-db readonly, so new chat will not be saved.

4. or to disallow certain api communication to stop my client submit new chat

Please advise

Thanks

Arthur Fan
fanartie
 
Posts: 4
Joined: Tue May 01, 2012 2:18 am

Re: shortcut to disable chat service ?

Postby BKKKPewsey » Tue May 01, 2012 3:44 pm

One slightly "klunky" workaround is to disable "show chat messages" in settings personal for the users who you do not want to access chat.
However this means you have to disable them from changing their settings otherwise they can turn the option back on.
So create a user with allowed to change settings ticked - then log on as that user - untick show chat messages - save.
Then via admin a/c untick allow change to settings for that user.
It works but .........

:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: shortcut to disable chat service ?

Postby hakko » Tue May 01, 2012 5:00 pm

Do you want to disable it completely? You could alter the file "right.jsp" (no re-compilation necessary then) and remove everything that's inside the c:if test="${model.showChat}" block.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: shortcut to disable chat service ?

Postby fanartie » Tue May 01, 2012 6:03 pm

thanks for your answers, BUT...

my guests are using iphone iSub APP which has chat api function.... so... I have no concern about webpage.

I would like to stop chat api feature and I understand it may cause error on APP, but I don't care.

any idea ?
fanartie
 
Posts: 4
Joined: Tue May 01, 2012 2:18 am

Re: shortcut to disable chat service ?

Postby hakko » Tue May 01, 2012 7:12 pm

Since you mentioned building some Java code in your first post, I'd suggest altering the source code. I haven't touched that part myself but I'd guess this is a good starting point:

http://subsonic.svn.sourceforge.net/vie ... iew=markup

line 1226

I'd just remove the for loop that adds stuff to the builder list. That should give the iPhone app the impression that no new chat messages are available. (no guarantees that it'll work though, it's just a guess)
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: shortcut to disable chat service ?

Postby fanartie » Thu May 17, 2012 4:29 pm

thanks for your help

I believe it should work !

but I have some challenge on compiling.

may I ask a quick question here ? can I just compile single java source into class and replace the production ?
fanartie
 
Posts: 4
Joined: Tue May 01, 2012 2:18 am

Re: shortcut to disable chat service ?

Postby hakko » Thu May 17, 2012 4:38 pm

You can, but you'd still need to set up a working classpath to compile a single java file.

Try checking out the whole Subsonic directory structure (starting from subsonic, containing subsonic-main) and issue the command "mvn package" in folder "subsonic-main". It should build a new subsonic.war in the folder "target". You just need to install Maven if you don't have it already.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: shortcut to disable chat service ?

Postby fanartie » Thu May 17, 2012 9:08 pm

I appreciate your instruction, it works great !

Thank you Hakko !
fanartie
 
Posts: 4
Joined: Tue May 01, 2012 2:18 am

Re: shortcut to disable chat service ?

Postby hakko » Thu May 17, 2012 9:46 pm

No problem. :) I've spent way too much time the last months modding Subsonic.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden


Return to Help

Who is online

Users browsing this forum: No registered users and 36 guests