JS Problem in Mybb

Discussion in 'Scripts' started by Kavidu Dilshan Jayakody, Nov 18, 2014.

  1. #1
    <html>
    <head>
    <title>{$mybb->settings['bbname']}</title>
    {$headerinclude}
    <script type="text/javascript">
    <!--
        lang.no_new_posts = "{$lang->no_new_posts}";
        lang.click_mark_read = "{$lang->click_mark_read}";
    // -->
    </script>
    </head>
    <body>
    {$header}
    {$ps_header_index}
     
    <div class="sidebar" style="float: right; width: 250px;">
    <div>
        <script type="text/javascript">
        jQuery(function(){
            jQuery(".latestthreads").load("{$mybb->settings['bburl']}/portal.php .latestthreads_portal");
        });
        </script></div>
     
        <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
            <tr>
                <td class="thead">
                    <div class="expcolimage"><img src="{$theme['imgdir']}/collapse.png" id="ths_img" class="expander" alt="[-]" title="[-]" /></div>
                        <strong>{$lang->xstyled_latestactivity}</strong>
                </td>
            </tr>
            <tr>
                <td style="{$collapsed['ths_e']} padding: 0;" id="ths_e">
                    <div class="latestthreads float_left"></div>
                </td>
            </tr>
        </table>
        
      <div class="theadend"></div>
    </div>
    
      
    <div class="forums" style="float: left; width: 900px;">
        {$inferno_shoutbox}
     
        <script type="text/javascript" src="jscripts/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
    $.noConflict();
    </script>
    <script type="text/javascript">
    jQuery(document).ready(function($){
    $('.tab').click(function(){
    $('.at').removeClass('at');
    $(this).addClass('at');
    $('.content').slideUp();
    var catshow = $(this).attr('rel');
    $('#'+ catshow).slideDown();
    });
    });
    </script>
     
       <table border="0" width="100%" class="tborder" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}"  style="margin-bottom: 3px;">
    <tr align="center">
    <td class="tcat at tab" title="Category 1" style="cursor: pointer;" rel="cat_1">General</td>
    <td class="tcat tab" title="Category 4 &amp; 6" style="cursor: pointer;" rel="cat_4, #cat_6">Coding&amp; 6</td>
    <td class="tcat tab" title="Category 9" style="cursor: pointer;" rel="cat_9, #cat_11">Computing</td>
    </tr>
    </table>
      {$forums}
    
    </div>
     
    <br class="clear" /><br />
    {$ps_footer_index} 
    {$boardstats}
    {$footer}
    </body>
    </html>
    Code (markup):
    This is my code in index page of my forum......so i added this to tabbed categories manually.....but then, hide content button is not working.....can u give me a answer what i can do for it.....pleasee.....

    [​IMG]

    [​IMG]
     
    Kavidu Dilshan Jayakody, Nov 18, 2014 IP