![]() |
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. |
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). |
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:
|
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 :D |
PHP Code:
|
Thanks.
What do I do if the mod doesnt have a variable to turn the modification off? |
Quote:
|
Any suggestions when looking for other variables to use to turn it off?
|
Not really. You kinda have to take a look at the code and see what variable does what.
|
Okay, I will look into it more in depth tonight.
Thanks, Lynne :D You're the best |
All times are GMT. The time now is 01:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|