MyBB Community Forums

Full Version: Weird script on page source
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Recently i've installed a plugin called announcement by King louis

http://mods.mybb.com/view/announcement.

After i uninstalled the plugin. This weird script wont go from my forum.. how to completely remove this thing ??

All the files from the plugin completely removed. But this code is still there.

<script type="text/javascript">
function dismissANN(id)
{
	if(!$("Ann_"+id))
	{
		return false;
	}
	
	if(use_xmlhttprequest != 1)
	{
		return true;
	}

	new Ajax.Request("index.php?action=ann_dismiss", {method: "post", postBody: "ajax=1&my_post_key="+my_post_key+"&id="+id});
	Element.remove("Ann_"+id);
	return false;
}
</script>
<script type="text/javascript">
function dismissANN(id)
{
	if(!$("Ann_"+id))
	{
		return false;
	}
	
	if(use_xmlhttprequest != 1)
	{
		return true;
	}

	new Ajax.Request("index.php?action=ann_dismiss", {method: "post", postBody: "ajax=1&my_post_key="+my_post_key+"&id="+id});
	Element.remove("Ann_"+id);
	return false;
}
</script>

found the source. Located in headerinclude.. Done.. Problem solved.. Big Grin
Link?

I'm guessing this script is located in a template within your forums theme.