The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Removing Plugin from one skin?
Hey, if anyone could help me, that would be awesome.
I'm making a light mobile skin for my forum. I have a plugin installed that shows random pictures from members' albums on the forum index, below the Navbar. Since I want this skin to be as light as possible, I really don't want this plugin to work in this skin. Is there a way I can disable/remove it JUST from this new mobile skin I'm making? Thanks! |
#2
|
||||
|
||||
I would try wrapping the relevant PHP plugin code in the following:
PHP Code:
|
#3
|
|||
|
|||
Thanks, I'll give it a try! I'll update soon..
EDIT: Actually, I don't even know where the plugin code is located. I looked through all the templates, and can't find anything that has it. |
#4
|
||||
|
||||
Look in your plugins, not your templates. Look for the block titled "Plugins & Products" and then click "Plugin Manager" and look at the relevant plugins associated with the product you're trying to affect.
|
#5
|
|||
|
|||
Ok, it worked, but it removed it on all my skins. lol
I think maybe I didn't put the style in correctly? What exactly would I type where you put "IS_MOBILE_STYLE"? Thanks! |
#6
|
||||
|
||||
You should have "!IS_MOBILE_STYLE" but perhaps that constant isn't defined for vB 3...I don't know.
|
#7
|
|||
|
|||
Oh, it will know automatically what the mobile style is? I put the name of the style (lightweight), but it didn't work. I'll give that a try, thanks!
|
#8
|
||||
|
||||
Yes, it should contain the styleid of your mobile style.
If that constant isn't defined for vB 3, we can try something else, but I will wait until I hear back from you on this... |
#9
|
|||
|
|||
I'm a little confused. Don't mind me, I'm just really, really stupid.
So if the name of my style is 'lightweight,', I would want it like this: Code:
if (!lightweight) { plugin code here... } |
#10
|
||||
|
||||
No, that's not going to work...have you tried what I initially posted?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|