MyBB Community Forums

Full Version: Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys I'm developing a plugin and I need you help:

For run this plugin users need to add {$text} near the forum name in forumbit_depth2_forum.
It's reccomended that user put this variable in template or that I put it with the plugin?

I got this question for theme that didn't have this code:
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>
(2015-10-26, 09:28 PM)chack1172 Wrote: [ -> ]It's reccomended that user put this variable in template or that I put it with the plugin?

Obviously the 2nd option

(2015-10-26, 09:28 PM)chack1172 Wrote: [ -> ]I got this question for theme that didn't have this code:
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>

Well, first of all, your regex should be as short as possible in terms of the code it requires. <strong> should be either optional (use ?) or not included in the regex at all, if you want to affect as many themes as possible. And for those that still won't be affected, you can include a "Template changes" documentation - I do it for all of my plugins.