ddumont
✭✭
i've got no thoughts on other way. what you said.
if (!preg_match('/dashboard/',$Sender->SelfUrl))
$Sender->AddModule("SubscribeModule");
get the buttonbar back - it was much easier to paste code.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
Answers
Wow, it's a good question, but also I need a bit of more information. Can you write out the conditions in semi-code? Also in which events to you want to add those modules? I was more thinking 'Smarty' then 'plugin' with your title, if you know what I mean.
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •public function Base_Render_Before($Sender) { ... if (/* not dashboard */) { $Sender->AddModule("SubscribeModule"); } ... }If that makes any sense. I have a plugin, and it's placing a module in this way, so I'm looking for a condition to wrap it in. If you have a better way of doing it, I'm all ears.
My addons: NillaBlog | Vanoogle
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Looks good to me, I don't know my way around plugins yet though. Maybe @Peregrine and @x00 know more to say about this one.
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks @peregrine, the SelfUrl was exactly what I was looking for.
My addons: NillaBlog | Vanoogle
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •glad I could help someone who could code circles around me :).
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome 1LOL •As an FYI, in 2.1 we have an InSection() function which will allow you to call:
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •oh, nice.
My addons: NillaBlog | Vanoogle
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@Todd, are you nearing a 2.1 beta or rc build? Or are you teasing me?
My addons: NillaBlog | Vanoogle
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •We are nearing a 2.1 beta, but probably still a month or so away.
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •Hehe, cool. I'm looking forward to it.
My addons: NillaBlog | Vanoogle
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •you must be special to get the answer on that one. :)
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome 1LOL •@peregrine I guess :)
I try to help out where I can, though php is not my favorite and I don't know it that well. (If the nilla folks are ever interested in doing a java port with OSGi plugins and stuff... I would totally be a huge contributor to that. I really think it could solve a ton of the problems with translations and stuff)
le sigh... Maybe @Todd just think's my bird is cute (he's not wrong)
My addons: NillaBlog | Vanoogle
- Spam
- Abuse
- Troll
2 • Off Topic Insightful 2Awesome LOL •Alright, alright. Thread closed. Move along.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •