Forums | Mahara Community

Developers /
Own javascript file


anonymous profile picture
Deleted user
Posts: 5

15 February 2012, 1:19 AM

I have created my own javascript file and wish to replace mahara.js file with my javascript file. Can anyone please tell me which file has included the mahara.js file, so that i can change it and provide path to my javascript file.

15 February 2012, 2:56 AM

Hello,

If you want to replace the file you can simply name it the same name as the original javascript file.

If you want to inclue yours you could

   call yours (include) at the beginning of the original javascript file

or

   grep the mahara package to find the different places the javascript file is called and add an include header in each of them

HTH

-dajan

anonymous profile picture
Deleted user
Posts: 5

15 February 2012, 10:47 AM

About the last option

"grep the mahara package to find the different places the javascript file is called and add an include header in each of them" can you help me with which all places have that javascript file included in?

15 February 2012, 12:58 PM

According to bbedit, only in

lib/wep.php

-dajan

anonymous profile picture
Deleted user
Posts: 5

17 February 2012, 4:45 AM

Thanks, i got it there. By the way, can we also try to provide functionality of "Ticker" that shows the current activity of everyone, for example say some feedback posted on some page, or if 2 people just became friends or whatever content anyone wishes to post on the ticker.

5 results