Thank youBoardtalk.net wrote:Nawid,
That's really, really nice work and show's how good this theme is.
Well done,
Thank you Christian, this wasn't possible without your support and helpChristian 2.0 wrote: your site looks awesome. Love seeing people's improvisations of my work
We shall see, they already scored 2 goals ( actually 1, you know what I mean )Christian 2.0 wrote:Sweet edits Nawid! - it's just too bad I don't understand a single word on your site...and too bad you support Holland. No way you're winning the World Cup this year
Hi reVvo,reVvo ! wrote:Is better to add this line?
...
...
Maybe make use of the toggle function in Jquery,this with a cookie remembering the stat and the ID of the category.....Christian 2.0 wrote:@reVvo: The animated collapse category script wouldn't work with the draggable category script. They just kept conflicting and causing all kinds of problems.
Code: Select all
/*orginal code by bramme.net *
* Adjusted by demon *
* *
********************************/
/********************************************
*You can adjust the following settings: *
*expire date *
*Path *
*Domain *
* More info, see *
*http://www.quirksmode.org/js/cookies.html *
********************************************/
$(document).ready(function() {
// the div that will be hidden/shown
var panel = $("#slidediv");
//the button that will toggle the panel
var button = $("#toggle");
// do you want the panel to start off collapsed or expanded?
var initialState = "expanded"; // "expanded" OR "collapsed"
// the class added when the panel is hidden
var activeClass = "hidden";
// the text of the button when the panel's expanded
var visibleText = "hide";
// the text of the button when the panel's collapsed
var hiddenText = "show";
//---------------------------
// don't edit below this line,
// unless you really know what you're doing
//you may only, and only edit ://
//******************************
//Hide the toolbar drawer *
//Show the toolbar drawer *
//domain:'mydomain.tld *********
//path: '/' -->won't be needed normaly!*
//**************************************
// end of allowd edit//
//---------------------------
if($.cookie("panelState") == undefined) {
$.cookie("panelState", initialState);
}
var state = $.cookie("panelState");
if(state == "collapsed") {
panel.hide();
button.text(hiddenText);
button.addClass(activeClass);
}
button.click(function(){
if($.cookie("panelState") == "expanded") {
$.cookie("panelState", "collapsed", { /*The cookie should "never" expire.*/ expires: 36500/*, path: '/', domain:''*/});
button.text(hiddenText);
$("#toggle").attr('title', 'Show the toolbar drawer');
$('#toolbar a.toggle')
button.addClass('toggle-active');
button.addClass(activeClass);
} else {
$.cookie("panelState", "expanded", { /*The cookie should "never" expire.*/ expires: 36500/*, path: '/', domain:''*/});
button.text(visibleText);
$("#toggle").attr('title', 'Hide the toolbar drawer');
button.removeClass('toggle-active');
}
panel.slideToggle(400);
return false;
});
});
it's not my script, but i had to adjust it for a "toolbar" mod that i made, and it works just great with remembering the state .Christian 2.0 wrote:Thanks, it was the jQuery toggle function (also supported by cookies) which I was using although slightly different to your script so I'll look into it.
Collapsible categories aren't a priority though, they're not even on my "to do" list.
Code: Select all
<!-- IF S_MCHAT_ENABLE -->
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery_core_mini.js"></script>
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery_cookie_mini.js"></script>
<link rel="stylesheet" href="{ROOT_PATH}mchat/mchat_prosilver.css" type="text/css" />
<!-- ENDIF -->
Code: Select all
<!-- IF S_MCHAT_ENABLE -->
<link rel="stylesheet" href="{ROOT_PATH}mchat/mchat_prosilver.css" type="text/css" />
<!-- ENDIF -->
Code: Select all
</head>
<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) or U_RESTORE_PERMISSIONS -->
<!-- INCLUDE arcade/arcade_info_body.html -->
<div class="sn-header-alert">
<!-- IF S_BOARD_DISABLED --><img src="{T_THEME_PATH}/images/exclamation.png" width="16" height="16" alt="" /> {L_INFORMATION}: {L_BOARD_DISABLED}<!-- ENDIF --><!-- IF S_BOARD_DISABLED and U_RESTORE_PERMISSIONS --> • <!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --><img src="{T_THEME_PATH}/images/user_go.png" width="16" height="16" alt="" /> <a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
</div><!-- /sn-header-alert -->
{ADS_1}
<!-- ENDIF -->
<div id="sn-header">
<a id="top" name="top" accesskey="t"></a>
<div id="sn-header-content">
<a id="sn-logo" href="{U_INDEX}"><img src="{T_IMAGESET_PATH}/site-logo-{SITE_LOGO_RANDOM}.png" width="484" height="100" alt="" /></a>
<div id="sn-controlbox">
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT --