Kenj
01-17-2006, 05:58 PM
What it does - completely hides the module, collapsing it completely off the screen .
! !! this will not reduce your queries !! !
hate looking at what i dont' use . after fidgeting out the side bar that goes away on the forum thought of this .
Conditional allows blocks NOT to be collapsed .
Can change between yes have collapsing modules (with the bar) not all with vBas' permissive .
if a person has one hidden when it is switched, will need to delete the cookies you fed them to see the module(s) again.
works in ie - dont' use a lot of brousers
no auto install, some knowledge of html and vBa needed .
2 template changes, 2 images for each style . collapse_vba, collapse_vba_collapsed - gif format.
know faults :
- wont' work being a module, blocks, tried and randomly blocks dont' function 100% all of the time .
- no Images on/off in the restore bar . believe me i tried ( if you find a way :))
- ?
dont' have any blocks that vBa dont' make, but know it can work for those you have, just have to .. . yea .
adv_portal_footer:
+add :: to the top of the template, above the copyright . have a margin-bottom of 6px set, change to you needs .
( had it in the adv_portal templet in between $header / $navbar and it worked, no margin- .. . on the table - but did no real testing )
this is what i am using - yours is a 99% of a chance of being different!
<if condition="$vba_style['portal_collapsemods']">
<table align="center" border="0" cellpadding="1" cellspacing="1" class="tborder" width="100%" style="margin-bottom: 6px;">
<thead>
<tr>
<td class="thead" colspan="9">
<span class="smallfont"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('blockmenu')">
<img id="collapseimg_blockmenu" src="$stylevar[imgdir_button]/collapse_alt$vbcollapse[collapseimg_blockmenu].gif" alt="" border="0" /></a>» Restore Front page Content</span></td>
</tr>
</thead>
<tbody id="collapseobj_blockmenu" style="$vbcollapse[collapseobj_blockmenu]">
<tr align="center">
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_18')">Calendar</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_6')">Stats</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_1')">OnLine</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_19')">Links</td>
<td class="vba_remote" align="center">
<!--
<a href="#top" onclick="return toggle_collapse('module_21_447')">News</td>
-->
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_15')">Quotes</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_16')">Gallery</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_11')">Archive</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_5')">Threads</td>
</tr></tbody</table>
</table>
</if>
* needed to close a table ?? or the style didnt' work ?? just above the </if at the bottom you might need it night not.
* module_ numbers : they need to be changed for you vBa - the hard part :
enable them for admin to view only or if your only using certain ones just find them . they will be in <div tags after the changes to add more .
- in the source code/html for the page, near the top/beginning of each module you will find in <tbody tags id="collapseobj_module_??" (<div id= .. . after the change) ?? being the module_??, replace the numbers from what i have to the correct ones for your vBa, to add more just copy one and make the replacements . (searching for the module text makes it easy - gives you the correct name the first time )
* one is remed out <!-- this is the news one i dont' allow to be hidden, there for my reference or you could add permissives for it to show for what ever you wish .
* this a collapsing single line bar, padding is set manually - the module has another css def for them - change to you needs . remember the colspan .
adv_portal_module_shell : replace with the default : if yours is moded .. . not hard to figer out .
<div id="collapseobj_module_$mods[collapse]" style="$modcollapse">
$mods[formcode]
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$mods[colspan]">
<if condition="$vba_style['portal_collapsemods']">
<if condition="in_array($mods[collapse], array('21_447',1000))">
<else />
<a href="#top" onclick="return toggle_collapse('module_$mods[collapse]')" style="float:$stylevar[right]"><img alt="" border="0" id="collapseimg_module_$mods[collapse]" src="$stylevar[imgdir_button]/collapse_vba$modimgcollapse.gif" /></a>
</if></if>
<span class="smallfont"><strong>$vba_style[portal_blockbullet] <if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else />$mods[title]</if></strong></span></td>
</tr>
</thead>
<tbody>
<if condition="$show['tablerow']">
<tr>
<td class="$bgclass">
$modulehtml
</td>
</tr>
<else />
$modulehtml
</if>
</tbody>
</table>
<div><img src="$vboptions[bburl]/$vboptions[cleargifurl]" height="$vba_style[portal_vspace]" alt="" /></div>
<if condition="$mods['formcode']"></form></if></div>
* the conditional -> array('21_447',1000 <-- these are the modules you dont' want collapsed . a _> , <_comma separates the numbers ( the reason i have left the 2nd one there, dont belong to anything ) .
if the number has a _> _ <_ underscore or ?? and you get an error, it worked before the adding the number it will probably need to be in _> ' <_ single quotes - it worked for me this way my news forum 21_447, correct me if im' wrong .
- allowing all modules to be collapsed - can remove the permissive <if , the <else and the </if that goes with it .
use a css def for the font ect -> Additional CSS Definitions bottom block : change to you needs .
.vba_remote {
color: #454445;
background: #eeecec;
font: 10px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
padding: 2px 2px 2px 2px;
}
as with any mod - BACKUP before changing something, this way if it dont' work or you dont' like it can be un done with no damage!
will check back - was never good at writing instructions, dont' think this is very hard ?? can explain further ;)
if there is a problem .. . will try and help out - but dont' have a lot of time to "do" it for you .
using it on my vBa . link in sig .
! !! this will not reduce your queries !! !
hate looking at what i dont' use . after fidgeting out the side bar that goes away on the forum thought of this .
Conditional allows blocks NOT to be collapsed .
Can change between yes have collapsing modules (with the bar) not all with vBas' permissive .
if a person has one hidden when it is switched, will need to delete the cookies you fed them to see the module(s) again.
works in ie - dont' use a lot of brousers
no auto install, some knowledge of html and vBa needed .
2 template changes, 2 images for each style . collapse_vba, collapse_vba_collapsed - gif format.
know faults :
- wont' work being a module, blocks, tried and randomly blocks dont' function 100% all of the time .
- no Images on/off in the restore bar . believe me i tried ( if you find a way :))
- ?
dont' have any blocks that vBa dont' make, but know it can work for those you have, just have to .. . yea .
adv_portal_footer:
+add :: to the top of the template, above the copyright . have a margin-bottom of 6px set, change to you needs .
( had it in the adv_portal templet in between $header / $navbar and it worked, no margin- .. . on the table - but did no real testing )
this is what i am using - yours is a 99% of a chance of being different!
<if condition="$vba_style['portal_collapsemods']">
<table align="center" border="0" cellpadding="1" cellspacing="1" class="tborder" width="100%" style="margin-bottom: 6px;">
<thead>
<tr>
<td class="thead" colspan="9">
<span class="smallfont"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('blockmenu')">
<img id="collapseimg_blockmenu" src="$stylevar[imgdir_button]/collapse_alt$vbcollapse[collapseimg_blockmenu].gif" alt="" border="0" /></a>» Restore Front page Content</span></td>
</tr>
</thead>
<tbody id="collapseobj_blockmenu" style="$vbcollapse[collapseobj_blockmenu]">
<tr align="center">
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_18')">Calendar</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_6')">Stats</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_1')">OnLine</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_19')">Links</td>
<td class="vba_remote" align="center">
<!--
<a href="#top" onclick="return toggle_collapse('module_21_447')">News</td>
-->
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_15')">Quotes</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_16')">Gallery</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_11')">Archive</a></td>
<td class="vba_remote" align="center">
<a href="#top" onclick="return toggle_collapse('module_5')">Threads</td>
</tr></tbody</table>
</table>
</if>
* needed to close a table ?? or the style didnt' work ?? just above the </if at the bottom you might need it night not.
* module_ numbers : they need to be changed for you vBa - the hard part :
enable them for admin to view only or if your only using certain ones just find them . they will be in <div tags after the changes to add more .
- in the source code/html for the page, near the top/beginning of each module you will find in <tbody tags id="collapseobj_module_??" (<div id= .. . after the change) ?? being the module_??, replace the numbers from what i have to the correct ones for your vBa, to add more just copy one and make the replacements . (searching for the module text makes it easy - gives you the correct name the first time )
* one is remed out <!-- this is the news one i dont' allow to be hidden, there for my reference or you could add permissives for it to show for what ever you wish .
* this a collapsing single line bar, padding is set manually - the module has another css def for them - change to you needs . remember the colspan .
adv_portal_module_shell : replace with the default : if yours is moded .. . not hard to figer out .
<div id="collapseobj_module_$mods[collapse]" style="$modcollapse">
$mods[formcode]
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$mods[colspan]">
<if condition="$vba_style['portal_collapsemods']">
<if condition="in_array($mods[collapse], array('21_447',1000))">
<else />
<a href="#top" onclick="return toggle_collapse('module_$mods[collapse]')" style="float:$stylevar[right]"><img alt="" border="0" id="collapseimg_module_$mods[collapse]" src="$stylevar[imgdir_button]/collapse_vba$modimgcollapse.gif" /></a>
</if></if>
<span class="smallfont"><strong>$vba_style[portal_blockbullet] <if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else />$mods[title]</if></strong></span></td>
</tr>
</thead>
<tbody>
<if condition="$show['tablerow']">
<tr>
<td class="$bgclass">
$modulehtml
</td>
</tr>
<else />
$modulehtml
</if>
</tbody>
</table>
<div><img src="$vboptions[bburl]/$vboptions[cleargifurl]" height="$vba_style[portal_vspace]" alt="" /></div>
<if condition="$mods['formcode']"></form></if></div>
* the conditional -> array('21_447',1000 <-- these are the modules you dont' want collapsed . a _> , <_comma separates the numbers ( the reason i have left the 2nd one there, dont belong to anything ) .
if the number has a _> _ <_ underscore or ?? and you get an error, it worked before the adding the number it will probably need to be in _> ' <_ single quotes - it worked for me this way my news forum 21_447, correct me if im' wrong .
- allowing all modules to be collapsed - can remove the permissive <if , the <else and the </if that goes with it .
use a css def for the font ect -> Additional CSS Definitions bottom block : change to you needs .
.vba_remote {
color: #454445;
background: #eeecec;
font: 10px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
padding: 2px 2px 2px 2px;
}
as with any mod - BACKUP before changing something, this way if it dont' work or you dont' like it can be un done with no damage!
will check back - was never good at writing instructions, dont' think this is very hard ?? can explain further ;)
if there is a problem .. . will try and help out - but dont' have a lot of time to "do" it for you .
using it on my vBa . link in sig .