The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Disable certain hack in certain style?
I have some hacks on my forum that I would like to disable in certain styles. The hack is a random album picture on the forum home, but on my mobile style I would like to disable this all together.
How can I disable certain hacks on a certain style? Thanks. |
#2
|
|||
|
|||
You can check the styleid to see what style is being displayed, but exactly what you'd have to do to disable the hack depends on exactly what it does. [S]Maybe you can just put an "if" in a template [/S]
Edit: ...if it's possible to remove the hack from a template you could just modify the template in that style. (But if the mod has an on/off option then it might be better to do what Lynne suggests below). |
#3
|
||||
|
||||
You can write a plugin to do this, but you need to look in the code for the modification to grab the correct variable that will turn the modification off.
hook_location: style_fetch php code: PHP Code:
PHP Code:
|
#4
|
|||
|
|||
Lynn,
You are the best!! Thank you so much. How could I define 2 styles within this? I tried separating style ID #'s by commas but that didn't work. For now I just made another plugin with the other style ID. KH9, Thank you for the advise, I really appreciate it |
#5
|
||||
|
||||
PHP Code:
|
#6
|
|||
|
|||
Thanks.
What do I do if the mod doesnt have a variable to turn the modification off? |
#7
|
||||
|
||||
Add one? Look for other variables to use that would turn it off?
|
#8
|
|||
|
|||
Any suggestions when looking for other variables to use to turn it off?
|
#9
|
||||
|
||||
Not really. You kinda have to take a look at the code and see what variable does what.
|
#10
|
|||
|
|||
Okay, I will look into it more in depth tonight.
Thanks, Lynne You're the best |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|