2011-03-14, 01:43 AM
2011-05-12, 12:40 PM
If I put the welcomeblock inside the sidebar there are jquery conflicts. (Can't open the buddy list for example) who could help me?
2011-05-12, 02:01 PM
It only happens inside the sidebar? That's odd - I've never actually tried doing that kind of thing.
2011-05-12, 02:04 PM
Do you mean that I have to try putting another js in another part of the forum and test it?
2011-05-12, 02:28 PM
No, I mean that I have no idea as I've never tried doing what you're doing.
2011-05-27, 09:10 AM
hello, simple question...where should i edit to make this show by default. thanks
<script type="text/javascript">
jQuery.noConflict();
jQuery(function($) {
$(".forums").css("width","100%");
$(".sidebar").hide();
$(".buttons").hide();
$(".buttons").click(function() {
$(".sidebar").animate({height: "hide", opacity: 0}, 500,
function() {
$(".forums").animate({width: "100%"}, 500);
});
$(this).hide();
$(".clickedbuttons").show();
$.cookie("sidebar","collapsed", {expires: 365});
return false;
});
$(".clickedbuttons").click(function() {
$(".forums").animate({width: "80%"}, 500,
function() {
$(".sidebar").animate({height: "show", opacity: 1}, 500);
});
$(this).hide();
$(".buttons").show();
$.cookie("sidebar","expanded", {expires: 365});
return false;
});
if($.cookie("sidebar") == "collapsed") {
$(".buttons").hide();
$(".clickedbuttons").show();
$(".forums").css("width","100%");
$(".sidebar").hide();
};
});
</script>
2011-05-27, 04:20 PM
adminCP => Themes & templates => Templates => 'Your theme' templates => ungroup templates => headerinclude
http://wiki.mybb.com/index.php/Admin_CP_Templates
http://wiki.mybb.com/index.php/Admin_CP_Templates
2011-05-27, 04:59 PM
thanks aglioeolio, but i'm not asking where to put this, i'm asking how to had this sidebar shown by default (collapse), i'm new to jquery so bit confusion here about where i had to edit the basic function .show and .hide
2011-05-30, 12:22 AM
I am also willing to do the same putting inside sidebar. Let me try with separate js.
2011-06-02, 01:11 PM
I like it... It works well, is there a way you can integrate it into my webpage?