Results 1 to 10 of 10

Thread: disable modules for specific style/theme

  1. #1

    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

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: disable modules for specific style/theme

    Currently there is not an option to disable a module based on the style.

  3. #3
    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?

  4. #4

    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 11:57 AM.

  5. #5
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    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.

  6. #6

    Thumbs up

    Thanks Brian that worked perfectly.

  7. #7

    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

  8. #8
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    12

    Default

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

    Robert

  9. #9
    Join Date
    Aug 2004
    Posts
    2

    Default

    Any updates on this. Would like to disable vba portal for one theme.

  10. #10
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Any way to include specific modules into existing page?
    By BuckGB in forum "How Do I..." Questions
    Replies: 8
    Last Post: 09-27-2006, 03:22 PM
  2. Modules for specific pages
    By angelosms in forum Troubleshooting & Problems
    Replies: 8
    Last Post: 12-25-2005, 02:08 AM
  3. Modules only one a specific style
    By e-steki in forum "How Do I..." Questions
    Replies: 7
    Last Post: 12-23-2005, 02:19 PM
  4. Remove/disable modules?
    By MSX in forum Troubleshooting / "How do I..." Questions
    Replies: 1
    Last Post: 10-17-2004, 05:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •