Mibew Messenger Community

Contributions => Plugins, tips, and tricks => Topic started by: Inspirer on November 07, 2009, 11:28:45 AM

Title: How to change javascript code
Post by: Inspirer on November 07, 2009, 11:28:45 AM
Here is the structure of Javascript in Mibew:

js/
  163/              - minified version of javascript (folder name is Mibew version)
     .....
  source/          - original sources
     users.js       - list of awaiting visitors page
     chat.js         - chat script
     build.xml     - ant script to minify sources
     JSO.java      - js minifier
     ......
    
Change files only in js/source folder.

To create minified version of all scripts (copies your changes to the production):
1. Download Apache Ant (http://ant.apache.org/)
2. Ensure you have installed Java 2 Platform, v1.4+ (http://java.sun.com/j2se/1.5.0/download.html)
3. Go to js/source folder, run "ant" from the command-line.

-OR-

1. copy all javascript files from js/source into js/163 (Note: it will reduce the performance of your site)
Title: Re: How to change javascript code
Post by: atsel on September 11, 2012, 02:31:25 PM
Thank you, very helpful
Title: Re: How to change javascript code
Post by: micro on January 29, 2013, 05:38:20 AM
Man, can you make it more simple, like just edit the php source code without recompile again via apache ant?  :(
Title: Re: How to change javascript code
Post by: carlitosp71 on February 28, 2013, 11:21:35 PM
this work in mibew 1.64 too?