1. We have lost 10 days of user generated data. We are working on it, please have patience.


    We will have more updates for you coming up in next few hours. [ View Now ]

User Tag List

+ Reply to Thread
 
Results 1 to 3 of 3
  1. #1
    Licensed Member Expired
    Joomla Extensions Club - 1 Year ExpiredJoomlaTemplate Club Member - Personal License - 1 Year ExpiredWall Builder Expired

    Join Date
    Aug 2008
    Location
    Bend, Oregon, USA
    Posts
    44
    Points
    334.06
    Downloads
    259
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    19
    Thanked 1 Time in 1 Post

    Integrating the Dollar Safe Mode into Mootools

    I need to integrate some Real Estate / MLS search tools (IDX) that use the Prototype framework with my JA Rasite template. There is a conflict, of course, with Mootools and my MegaMenus quit working when I am on pages with the search tools

    According to MooTools (http://mootools.net/blog/2009/06/22/...lar-safe-mode/), I can resolve this conflict by implementing their Dollar Safe Mode.

    I do not know javascript but I am hoping I can hack this solution. I am asking for some hand holding here. Here are my questions.
    MooTools says:
    directly use document.id() or assign your own var to it, or mannually assign $ to document.id
    What file would I apply this to? mega.class.php?
    Here is a snippet from mega.class.php. How would I assign $ to document.id in this case?
    Code:
    function genClass ($mitem, $level, $pos) {
    
    			$iParams = new JParameter ( $mitem->params );
    
    			$active = in_array($mitem->id, $this->open);
    
    			$cls = "mega".($active?" active":"").($pos?" $pos":"");
    
    			if (@$this->children[$mitem->id] || (isset($mitem->content) && $mitem->content)) {
    
    				if ($mitem->megaparams->get('group')) $cls .= " group";
    
    				else if ($level < $this->getParam('endlevel')) $cls .= " haschild";
    
    			}
    
    			if ($mitem->megaparams->get('class')) $cls .= " ".$mitem->megaparams->get('class');
    
    			return $cls?"class=\"$cls\"":"";
    
    		}
    Like I said, I need some hand holding. Maybe you have a different suggestion. Any feedback would be appreciated.

  2. #2
    JA Developer
    Saguaros's Avatar
    Join Date
    Apr 2009
    Posts
    14,712
    Points
    18,742.88
    Downloads
    1782
    Uploads
    0
    Mentioned
    94 Post(s)
    Tagged
    3 Thread(s)
    Thanks
    437
    Thanked 1,824 Times in 1,676 Posts
    first, this is the javascript conflict, not php conflict. Therefore, you need manage to change in js file, not php file. The $ in php is php syntax, not js syntax.

    Secondly, this is heavily conflict. Mootools is embedded in core Joomla. Therefore, all js used for Joomla must compatible with mootools. If you install an extensions, the extension must work with Joomla (mean not conflict with Joomla). In this case, I suggest that you should contact the extension owner to get help in resolving conflict with mootools.

    Click Thanks if my post is helpful




  3. #3
    Licensed Member Expired
    Joomla Developer Membership - Renew 1 year Expired

    Join Date
    Apr 2009
    Posts
    1
    Points
    17.07
    Downloads
    420
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Dear thienhc,

    conflicts and problems with mootools are already in the quick start package of Joomlart. I downloaded the quickstart of portfolio real estate and after two days between conflicts and ghost modules (but displayed in your demo), now I want only cry.
    If i try to use the front-end editor for changing an item, the tabs after content tab don't work, cause a problem in tabs.js (description is undefined). If I activate the mootools upgrade plugin, this resolves the problem with tabs but generate other error like:
    Error: MooTools.upgradeLog is not a function
    File sorgente: http://xxx/index.php?jat3action=gzip...m_k2&Itemid=60
    Riga: 3

    Error: tinymce.util is undefined
    File sorgente: http://XXX/plugins/editors/tinymce/j...ce/tiny_mce.js
    Riga: 1

    So we don't need a lesson about the difference between php and javascript, but we hope a solution for this bugs-full template we bought.

    Thank You very much

    Filippo

+ Reply to Thread

Similar Threads

  1. I cant install module or template (safe mode=off)
    By zafererel in forum General Questions
    Replies: 1
    Last Post: 04-01-2008, 12:48 PM
  2. Safe Mode ON - manual template installation
    By zafererel in forum General Questions
    Replies: 1
    Last Post: 03-23-2008, 07:04 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Stop working on Weekend!X

If your Boss broke your Joomla template or extension and ask you to fix it today. Here is the immediate solution. Then leave your request on the right forum, we will be helping after the Weekend Happy hours
Our Happy Hours: Friday 18:00 - Monday 9:00

No working during happy hours. Keep calm and don't break anything.

-->

Your vote matters!X

Vote for Best Support Guy