2010-06-06, 09:29 AM
Hi there.
So I'm making a custom theme for a client, and it's now about 90% finished. There's one small problem. Any Javascript codes below the header_welcomeblock_member div section, doesn't see to work. E.g., editing a post, clicking the ficons for marking forums as a read, or even minimizing the thead's doesn't work.
Here's my welcomeblock code for the members (seems to work fine with guests):
My guess is the jQuery script is blocking Javascript from below?
Thanks for help.
So I'm making a custom theme for a client, and it's now about 90% finished. There's one small problem. Any Javascript codes below the header_welcomeblock_member div section, doesn't see to work. E.g., editing a post, clicking the ficons for marking forums as a read, or even minimizing the thead's doesn't work.
Here's my welcomeblock code for the members (seems to work fine with guests):
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<collapse>Welcome back, <strong>{$mybb->user['username']}!</strong><span style="float:right"><img src="{$theme['imgdir']}/collapse.gif"/></span></collapse>
<br />
<div id="welcomeblock">
<br />
<span style="float:left"><div class="avatar"><img src="{$mybb->user['avatar']}"></div></span>
<strong>Post Count:</strong> {$mybb->user['postnum']}<span style="float:right"><a href="{$mybb->settings['bburl']}/usercp.php">User CP</a>{$modcplink}{$admincplink}</span><br />
<strong>Unread Messages:</strong> {$mybb->user['unreadpms']}<span style="float:right"><a href="{$mybb->settings['bburl']}/private.php">Private Messages</a></span><br />
<strong>Total Messages:</strong> {$mybb->user['totalpms']}<span style="float:right"><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">Today's Posts</a> &mdash <a href="{$mybb->settings['bburl']}/search.php?action=getnew">New Posts</a></span><br />
<strong>Warning Level:</strong> {$mybb->user['warningpoints']}%<br />
<strong>Reputation:</strong> {$mybb->user['reputation']}<span style="float:right"><a href="{$mybb->settings['bburl']}/member.php?action=logout&logoutkey={$mybb->user['logoutkey']}">Log Out</a></span>
</div>
<script>
$("collapse").click(function () {
$("#welcomeblock").slideToggle("fast");
});
</script>
My guess is the jQuery script is blocking Javascript from below?
Thanks for help.