Viewing 1 post (of 1 total)
  • Author
    Posts
  • mumra Friend
    #150113

    I’m attempting to do the exact same thing as Korb. To make use of my beautiful T3 Framework megamenu within my custom forum skin. However, unlike Korb, I was mine is an IPB3 skin.

    Im not a true coder (im NOT Javascript savvy :(() and after many days I finally started to make some breakthrough.

    Basically, I moved the code for the *.js link attachments to just BEFORE the end of the </head> code and after IPB’s javascript. One word – “specificity” 😉

    Here’s what it looks like in the <head>

    <head>
    <meta http-equiv="content-type" content="text/html; charset={$this->settings['gb_char_set']}" />
    <title>{$header_items['title']}<if test="pagenumberintitle:|:$header_items['page']"> {$this->lang->words['page_title_page']} {$header_items['page']}</if></title>
    <link rel="shortcut icon" href='<if test="$this->registry->output->isHTTPS">{$this->settings['board_url_https']}<else />{$this->settings['board_url']}</if>/favicon.ico' />

    <!-- IPB's Javascript -->
    <script type='text/javascript'>
    jsDebug = {parse expression="intval($this->settings['_jsDebug'])"}; /* Must come before JS includes */
    USE_RTE = <if test="userte:|:$this->memberData['members_editor_choice'] == 'rte' && $this->memberData['_canUseRTE'] === TRUE">1<else />0</if>;
    inACP = false;
    </script>
    {parse template="includeCSS" group="global" params="$css"}
    <!--<meta http-equiv="X-UA-Compatible" content="IE=7" />-->
    {parse template="includeMeta" group="global" params="$metaTags"}
    {parse template="includeJS" group="global" params="$jsModules"}
    {parse template="includeFeeds" group="global" params="$documentHeadItems"}
    {parse template="includeRTL" group="global" params=""}
    {parse template="includeVars" group="global" params=""}
    <script type='text/javascript'>
    Loader.boot();
    </script>

    <!-- JA Mega menu .JS / .CSS attachment -->
    <script type="text/javascript" src="http://localhost/media/system/js/mootools.js"></script>
    <link href="http://localhost/templates/ja_purity_ii/css/menu/mega.css" rel="stylesheet" type="text/css" /><script src="http://localhost/templates/ja_purity_ii/js/menu/mega.js" language="javascript" type="text/javascript"></script>

    </head>

    So I’m halfway there but with new problems, because IPB’s javascript conflicts with what’s going on with my mega menu javascript 🙁

    Is there anyone out there in the JA community that would be able to help me stop the Javascript conflict that’s created between IPB and JA-T3’s scripts?

    Many thanks in advance.

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  mumra 14 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum