MyBB Community Forums

Full Version: Collapse and Expand Not Working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Do you guys happen to know why my collapse and expand is not working ?
Here's my forum link: webhostrally.com
Looking at your forum you load jquery twice:
In the header template:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

And in your index template:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

The first one is done correctly with the jquery no conflict added just below it, the second one isnt. Also why would you load jquery twice?
(2012-11-02, 03:21 AM)anori Wrote: [ -> ]Looking at your forum you load jquery twice:
In the header template:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

And in your index template:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

The first one is done correctly with the jquery no conflict added just below it, the second one isnt. Also why would you load jquery twice?

I dont know, I believe it's because of a plugin, so should I remove the 2nd one ?
Yes. Remove the older version from loading.

Just load jQ library once with right no conflict declaration, don't use jQ shorthand ($) in your functions, instead use 'jQuery' and it will all go good.
I cannot seem to find the

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

Its not on the headerinclude, header, and index template.
Where to find it ?
Yes it is. At the very beginning of your index template.

[Image: 9141fa85f927518f49d978d18f191d6f.png]
Its not in my index :\ This below is the start of my index.

<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>
<style type="text/css">
.buttons {
    background: url(images/arrowright.png) no-repeat;
    width: 16px;
    height: 16px;
    display: block;
    cursor: pointer;
}

.clickedbuttons {
    background: url(images/arrowleft.png) no-repeat;
    width: 16px;
    height: 16px;
    display: block;
    cursor: pointer;
}
</style>
</head>
OK, if you can't detect the old library, alternately remove the new lib which is detectable from your headerinclude ...

[Image: d4d65981fe91a78ced8d744fa2aeee1c.png]
The sidebar would not work if I remove that node. :\
I rly do not know what is happening, I can't find the other JS you referred in your previous post, why is that ? :\
Could you list the plugins that you use? Might be because of a plugin adding this to the page.
Because it only happens on the index page. And it is put right behind the <!--headerinclude--> almost makes me think its done by a plugin. (since normally you cant put it right behind it it always appears below it when doing it through template edits.)
Pages: 1 2