Problem with Form plugin
Grettings
I downloaded this plugin: https://vanillaforums.org/addon/howtoformvalidate-plugin
When enable the plugin, I can access the Form from the link is added to the menu and everything works fine in the Form:
but the problem is I can't no longer access the discussions and I get the following error:
When I remove this code I can access the discussions but this makes the link is not added to the top menu.:
public function base_render_before ($sender) { // We only need to add the menu entry if a) the controller has a menu // and b) we are not in the admin area. if ($sender->Menu && $sender->masterView != 'admin') { $sender->Menu->AddLink('', t('Form & Validation'), 'vanilla/HowToFormValidate'); } }
How I can fix this? I want to have the link on the top menu and have access to the discussions.
Sorry for my bad english btw.
Comments
Thanks for that feedback! You have to change
if ($sender->Menu && $sender->masterView != 'admin') {
toif ($sender->Menu && $sender->MasterView != 'admin') {
. I'll update the plugin as soon as possible.By the way: if you go to the plugin download link https://vanillaforums.org/addon/howtoformvalidate-plugin there is a button for asking a question. If you use that, the plugin author gets a notification.