vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v3.x & 2.x > Modifications (version 3.x & 2.x)

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2007, 03:23 PM
TenPercenter TenPercenter is offline
Junior Member
 
Join Date: Jan 2006
Posts: 9
Exclamation Disable "Collapsable Modules" PER MODULE??

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?
__________________
Greg Cagle
Site Admin
http://www.ChipTalk.net
Reply With Quote
  #2  
Old 12-13-2007, 11:00 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Disable "Collapsable Modules" PER MODULE??

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.
Reply With Quote
  #3  
Old 12-13-2007, 12:08 PM
TenPercenter TenPercenter is offline
Junior Member
 
Join Date: Jan 2006
Posts: 9
Default Re: Disable "Collapsable Modules" PER MODULE??

Thanks! do I copy the wrapper code at the beginning of my module template or at the end?
__________________
Greg Cagle
Site Admin
http://www.ChipTalk.net
Reply With Quote
  #4  
Old 12-13-2007, 12:20 PM
TenPercenter TenPercenter is offline
Junior Member
 
Join Date: Jan 2006
Posts: 9
Default Re: Disable "Collapsable Modules" PER MODULE??

Quote:
Originally Posted by Brian View Post
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.

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 -->
__________________
Greg Cagle
Site Admin
http://www.ChipTalk.net
Reply With Quote
  #5  
Old 12-14-2007, 08:44 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Disable "Collapsable Modules" PER MODULE??

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>
Reply With Quote
  #6  
Old 12-15-2007, 01:32 AM
TenPercenter TenPercenter is offline
Junior Member
 
Join Date: Jan 2006
Posts: 9
Default Re: Disable "Collapsable Modules" PER MODULE??

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
__________________
Greg Cagle
Site Admin
http://www.ChipTalk.net
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 08:17 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.