I've searched with no success on how to add additional sidebar boxes using the hide/un-hide function. Can anyone give me a clue where I need to be looking?
I added a new entry to the sidebarfx.js file (copy and pasting another entry and changing the variables to match the new sidebar box). I've also added the sidebar box no problem... the AJAX mobility works fine, but it does not hide when clicked.
The site is : www.haohaoreport.com
Cheers for any help anyone can provide.
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
__________________ The Hao Hao Report: The Best Stories About China |
| |||
|
Hey Ash, thanks for the reply... but that doesn't work. For whatever reason, it was designed so that you have to add additional entries into the sidebarfx.js to get it to work - unfortunately, I am missing something as I've changed everything I can see ... but it's not working. This is the original per-item code in the JaveScript file (digitalnature/js/sidebarfx.js) - each sidebar element has one of these: Code: '#rssbox h1' : function(el){
el.onclick = function(){
if (Element.hasClassName(this, 'invisible')) {
new Effect.BlindDown('rss', {duration:0.3});
Element.removeClassName(this, 'invisible');
document.getElementById('exprss').className='expand-down';
setCookie(this.parentNode.id, '', 365);
} else {
new Effect.BlindUp('rss', {duration:0.3});
Element.addClassName(this, 'invisible');
document.getElementById('exprss').className='expand-up';
setCookie(this.parentNode.id, 'invisible', 365);
}
}
},
Code: '#ptnrbox h1' : function(el){
el.onclick = function(){
if (Element.hasClassName(this, 'invisible')) {
new Effect.BlindDown('ptnr', {duration:0.3});
Element.removeClassName(this, 'invisible');
document.getElementById('expptnr').className='expand-down';
setCookie(this.parentNode.id, '', 365);
} else {
new Effect.BlindUp('ptnr', {duration:0.3});
Element.addClassName(this, 'invisible');
document.getElementById('expptnr').className='expand-up';
setCookie(this.parentNode.id, 'invisible', 365);
}
}
},
Code: / Id names of all the "boxes"
boxIds = $("rssbox","tagbox","categorybox","loginbox","sidenavbox","aboutbox");
Code: // Id names of all the "boxes"
boxIds = $("rssbox","ptnrbox","tagbox","categorybox","loginbox","sidenavbox","aboutbox");
HTML Code: <li> <div class="box" id="ptnrbox"> <h1><span class="expand"><a id="expptnr" class="expand-up"></a></span><a class="htitle">Partners</a></h1> Our partners.... </div> </li> Code: {assign var=sidebar_module value="ptnr"}{include file=$the_template_sidebar_modules."/wrapper2.tpl"}
__________________ The Hao Hao Report: The Best Stories About China |
| The Following 2 Users Say Thank You to The Humanaught For This Useful Post: | ||
| ||||
|
Ahhh, I had no idea it was that complex. ![]() Try this for ptnr.tpl PHP Code: PHP Code: PHP Code:
__________________ - Ash |
| The Following 2 Users Say Thank You to AshDigg For This Useful Post: | ||
| |||
|
I've got the same problem and tried a lot of ways that didn't work :S Edit: with your instructions, Humanaught, now works! Last edited by Sergio; 01-02-2007 at 11:39 AM.. |
| |||
|
This was a very helpful thread, I was able to get a mod that displays top stories to actually look like all of the other mods in the sidebar, however, I cannot get it to collapse. Any suggestion? Geoserv |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to add additional URL's to Header | paulgreco | General Help | 4 | 03-27-2008 02:57 PM |
| it is a way to add additional exclamation to news ? | lacasuela | General Help | 1 | 02-07-2008 07:05 AM |
| Collecting additional user info during signup | aaronpais | General Help | 3 | 05-25-2007 12:51 PM |
| Any additional downloads required if I am hosting in virtual dedicated environment? | aaronpais | Installation and Upgrade Help | 0 | 05-12-2007 11:28 AM |
| Collapsible Boxes in sidebar | mollyfud | "yget" | 3 | 02-15-2007 11:40 AM |





Linear Mode

