vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2006, 12:33 AM
wildo69 wildo69 is offline
Member
 
Join Date: Jan 2006
Posts: 35
Default disable modules for specific style/theme

i am trying to setup a "lite" theme that will be access from WAP devices liek phones and PDA's

i have the new style uploaded and working except that it shows the modules

how do i disable modules from displaying in style X
Reply With Quote
  #2  
Old 02-11-2006, 03:03 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: disable modules for specific style/theme

Currently there is not an option to disable a module based on the style.
Reply With Quote
  #3  
Old 06-21-2009, 03:40 AM
Wobbly74 Wobbly74 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default

Just digging up an old thread, but I was trying to work out how to do this with VBA 3 the other day. The only way I could work out was to use a plugin on the vba_cmps_include_preprocess_modules hook. Here's the code I used, but you'll need to put in your own ID values for the VBA module you want to disable and the ID of the style you want to disable it for.

Code:
// Disable module if the style and module combo should be omitted

if (($advmodid == 16) && ($vbulletin->userinfo['styleid']==4)) {
  unset($pages['modules'][$pagecol][$advmodid]);
}
Not sure if there's an easier/more declarative way of doing this apart from writing a nicer plugin?
Reply With Quote
  #4  
Old 12-14-2009, 10:28 AM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default

Works fine for one module but how to disable several? I tried a comma separation of module id's and a space separation but neither worked.

Better yet would be how to disable vba all together on one style or at least drop all modules from a style

I need this for an I-phone style and the modules are messing up the display. Thanks

Last edited by scalemotorcars; 12-14-2009 at 10:57 AM.
Reply With Quote
  #5  
Old 12-14-2009, 03:01 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

You would need to use something like this:
Code:
if (($advmodid == 16 OR $advmodid == X OR $advmodid == Y OR $advmodid == Z) && ($vbulletin->userinfo['styleid']==4)) {
(replace X, Y, and Z with the modids you want to disable)
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #6  
Old 12-14-2009, 06:39 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Thumbs up

Thanks Brian that worked perfectly.
Reply With Quote
  #7  
Old 12-28-2009, 11:34 AM
Moonz0r's Avatar
Moonz0r Moonz0r is offline
EYE ME!?!
 
Join Date: Apr 2007
Posts: 35
Default

Quote:
Originally Posted by Brian View Post
You would need to use something like this:
Code:
if (($advmodid == 16 OR $advmodid == X OR $advmodid == Y OR $advmodid == Z) && ($vbulletin->userinfo['styleid']==4)) {
(replace X, Y, and Z with the modids you want to disable)
Code:
($vbulletin->userinfo['styleid']==4)
into
Code:
($vbulletin->userinfo['styleid'] == 4)
prevents modules disappearing on other styles too
Reply With Quote
  #8  
Old 03-07-2010, 01:56 PM
Robert Waanders Robert Waanders is offline
Junior Member
 
Join Date: Mar 2006
Location: The Netherlands
Posts: 11
Default

Where do I have to edit this setting? Is in a file?

Robert
Reply With Quote
  #9  
Old 04-12-2011, 11:30 PM
danrak danrak is offline
Junior Member
 
Join Date: Aug 2004
Posts: 2
Default

Any updates on this. Would like to disable vba portal for one theme.
Reply With Quote
  #10  
Old 04-15-2011, 03:36 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

http://www.vbadvanced.com/forum/showthread.php?t=42784
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
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
Any way to include specific modules into existing page? BuckGB "How Do I..." Questions 8 09-27-2006 02:22 PM
Modules for specific pages angelosms Troubleshooting & Problems 8 12-25-2005 01:08 AM
Modules only one a specific style e-steki "How Do I..." Questions 7 12-23-2005 01:19 PM
Remove/disable modules? MSX Troubleshooting / "How do I..." Questions 1 10-17-2004 04:11 AM


All times are GMT -4. The time now is 09:24 PM.

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.