MyBB Community Forums

Full Version: Expand-Collapse not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Suddenly I've noticed my expand-collapse buttons in thead are not working. Seems its a conflict but I have no idea what exactly caused it.

Does anybody have any solution on this?
What's your forum URL?
Its in my localhost. I'm creating a theme.
But I can apply the theme to a demo site if at all required.
This is usually an issue with jQuery. What are the contents of your headerinclude template?
Additional, check your forumbit_depth1_cat template for
<img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" />
Its my headerinclude:

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
{$stylesheets}
<script type="text/javascript">
<!--
	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}

I've only inserted this line in it:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

I had earlier included a script in it which handles a sliding footer. After finding the problem I thought that may be the reason of conflict. So, I've moved the script to footer template as it is only required in footer and working fine.

But since moving the script didn't solve the issue I've tried removing the script also, still its not working.

@loveley: I didn't do anything in that template. It is OK and the collapse gif is showing up.
Replace:

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

With:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
Change:

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

To:

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


Edit: Ninja'd
It worked!!!

But my script is not working now Sad
Well I took the liberty of updating jQuery to the latest version. It might be possible that your script is only compatible with jQuery 1.4.2. Try reverting back to it.
Pages: 1 2