Undefined variable: dropdown_menu (v.9.0.2 Pro)

T34
Topic Author
Posts: 18
5 years 4 months ago #3331 by T34
Hi,

I have a notice on my page about code problem:

"Notice: Undefined variable: dropdown_menu in <skiped>/modules/mod_shoutbox/mod_shoutbox.php on line 197"

You can see that here .

This is part of code:

==========
$doc->addScriptDeclaration("
		jQuery(document).ready(function($) {

			var users = " . $users . ";

			$('#jj_message').mention({
				delimiter: '@',
				users: users,
				typeaheadOpts: {
					menu: '<ul class=\"jj_tag_user typeahead . $dropdown_menu . \"></ul>'
				}
			});
		});
	");
==========
How to solve it?

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1185
5 years 4 months ago #3332 by Lodder
Hi T34,

I must have accidentally deleted that variable.

If you open the following file:
modules/mod_shoutbox/mod_shoutbox.php

remove everything and replace with the code here:
pastebin.com/3Ae81qnE

Note that the code in this link will expire in 1 day.

Regards,
Lodder

Please Log in or Create an account to join the conversation.

T34
Topic Author
Posts: 18
5 years 4 months ago - 5 years 4 months ago #3333 by T34
Thanks, I did it, and there aren't notices now.
Last edit: 5 years 4 months ago by T34.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum