![]() |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Currently there is not an option to disable a module based on the style.
|
|
#3
|
|||
|
|||
|
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]);
}
|
|
#4
|
||||
|
||||
|
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. |
|
#5
|
||||
|
||||
|
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)) {
__________________
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. |
|
#6
|
||||
|
||||
|
Thanks Brian that worked perfectly.
|
|
#7
|
||||
|
||||
|
Quote:
Code:
($vbulletin->userinfo['styleid']==4) Code:
($vbulletin->userinfo['styleid'] == 4) |
|
#8
|
|||
|
|||
|
Where do I have to edit this setting? Is in a file?
Robert |
|
#9
|
|||
|
|||
|
Any updates on this. Would like to disable vba portal for one theme.
|
|
#10
|
||||
|
||||
|
__________________
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. |
![]() |
| 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 |
| 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 |