powered by Jive Software

How to disable "Check For Updates" menu item form Help menu?

Hell guys,

I am customizing the source code of Spark 2.6 Beta 2 for my organization. I want to use Spark only on LAN. Hence i want to disable the Check For Update option from the Help menu. Could u help me where to find the source code that helps me to disable it? or any mechanisim…

Thank u for your time and consideration

Recently I’ve been removing options from Spark to make it suitable for my clients to use. The way I went about finding out where things were in the source was to add the source to an IDE (I used Netbeans, but I’m sure other IDEs will be fine) and then use the IDE’s ability to search all the files in the project/projects folders (you could even use your operating system of choice to search within the project files). Search for the exact string that is in the menu item and it should take you to one of the internationalisation files (.properties) which in this case is the spark_i18n.properties file and specifically the text “menuitem.check.for.updates = Check For Updates”. Then search for menuitem.check.for.updates and you’ll find the exact place where the menu item is initialised. I’ve just been removing the call to add the menu item to the menu in these types of cases, but in other cases its worth checking nearby code to see if setting options on the client side will remove the ability or in few case setting a server side option get the result you want.

I haven’t looked into it yet myself, but, if you are using the Openfire server, you might want to try installing the Client Control plugin and using that to store and enforce the clients and client version that are able to be used. That way if you change the client they you could upload the new version to the server and when people connect it will notify them of the update. This is what the Client Control plugin seems to imply, but I haven’t tested it myself.

I hope this helps.

Instal the client control plugin. Then load older versions of spark into the server. Whenever somebody checks for newer versions it will see only this older version then.