![]() |
|
#1
|
|||
|
|||
|
I have one advertising module that I want to DISABLE the ability to collapse, but i want to enable "Collapsable Modules" on all other modeuls.
Is there a way to disable collapse for a single module? |
|
#2
|
||||
|
||||
|
Your best bet would probably be to turn off the 'Use Module Wrapper Template' setting for that module, and then just copy the code from the 'adv_portal_module_wrapper' template over to the template you're using for that module, and then remove the collapse code.
|
|
#3
|
|||
|
|||
|
Thanks! do I copy the wrapper code at the beginning of my module template or at the end?
|
|
#4
|
|||
|
|||
|
Quote:
I'm not a coder, I'm having trouble choose which section to comment out in the wrapper? Code:
<!-- BEGIN WRAPPER CODE WITH COLLAPSE REMOVED -->
$mods[formcode]
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="0%" class="mainboxLefttop"><img src="images/chiptalk/spacer.gif" width="6" height="6"></td>
<td width="100%" class="mainboxTop"><img src="images/chiptalk/spacer.gif" width="6" height="6"></td>
<td width="0%" class="mainboxRighttop"><img src="images/chiptalk/spacer.gif" width="6" height="6"></td>
</tr>
<tr>
<td width="0%" class="mainboxLeft"><img src="images/chiptalk/spacer.gif" width="6" height="6"></td>
<td width="100%" class="genBox">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="genBoxStart">
<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']">
<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_tcat$modimgcollapse.gif" /></a>
</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 id="collapseobj_module_$mods[collapse]" style="$modcollapse">
<if condition="$show['tablerow']">
<tr>
<td class="$bgclass">
$modulehtml
</td>
</tr>
<else />
$modulehtml
</if>
</tbody>
</table>
</td>
</tr>
</table>
</td>
<td width="0%" class="mainboxRight"><img src="images/chiptalk/spacer.gif" width="6" height="6"></td>
</tr>
<tr>
<td width="0%" class="cboxLeftbottom"><img src="images/chiptalk/spacer.gif" width="6" height="6"></td>
<td width="100%" valign="top" class="cboxBottom"><img src="images/chiptalk/spacer.gif" width="6" height="6"></td>
<td width="0%" class="cboxRightbottom"><img src="images/chiptalk/spacer.gif" width="6" height="6"></td>
</tr>
</table>
<div><img src="$vboptions[bburl]/$vboptions[cleargifurl]" height="$vba_style[portal_vspace]" alt="" /></div>
<if condition="$mods['formcode']"></form></if>
<!-- END WRAPPER CODE -->
|
|
#5
|
||||
|
||||
|
Should just be this part:
Code:
<if condition="$vba_style['portal_collapsemods']">
<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_tcat$modimgcollapse.gif" /></a>
</if>
|
|
#6
|
|||
|
|||
|
I never could figure out where to insert the wrapper template code in relation to my module code.
BUT... solved.... because I just made a new wrapper template, removed the collapse code, and then assigned THAT wrapper as my wrapper template. Thanks for your help! I'm happy! Look at the right column. The "Sponsors" module cannot be collapsed, but all other can. Very cool. http://www.chiptalk.net/x-poker-chip...tructions.html |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hod do I make the "Module Title" not show in modules? | trgreen | "How Do I..." Questions | 5 | 03-19-2007 06:40 PM |
| Can't upload modules, get "Not a valid module file" | HellRazor | Troubleshooting & Problems | 6 | 10-23-2006 07:13 PM |
| "New Posts" total not updating after "Marking Forums Read" unless we "log out" | Mithan | Troubleshooting & Problems | 3 | 07-12-2006 07:28 PM |
| Disable "Number of Views"? | SARMX | "How Do I..." Questions | 3 | 06-27-2006 04:14 PM |