Endless Paradigm

Full Version: [MyBB] MyPlaza v0.5 (beta version)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
sound? o.O

To Zinga:
It fixed my bug :yipi: but the new function rebuild_settings is causing problems, maybe for users that don't know how to fix this...i fixed it, Just edited the files that were being affected and changed the name of the rebuild_settings to SOMETHINGrebuild_settings, the problem is this function:

PHP Code:
if(!function_exists("rebuild_settings"))
{
	function rebuild_settings()
	{
		global $db;
		$query = $db->query("SELECT * FROM ".TABLE_PREFIX."settings ORDER BY title ASC");
		while($setting = $db->fetch_array($query))
		{
			$setting['value'] = addslashes($setting['value']);
			$settings .= "\$settings['".$setting['name']."'] = \"".$setting['value']."\";\n";
		}
		$settings = "<?php\n/*********************************\ \n  DO NOT EDIT THIS FILE, PLEASE USE\n  THE SETTINGS EDITOR\n\*********************************/\n\n$settings\n?>";
		$file = fopen("./inc/settings.php", "w");
		fwrite($file, $settings);
		fclose($file);
	}
}


A lot of plugins use it and then it says cannot rebuild function rebuild_settings (that function is from other plugins)

And this function from your plugin:

PHP Code:
function rebuild_settings() { rebuildsettings(); }


Is not working with the other one from the other plugins, so the other function mu st be renamed.

I don't know if you get me :S

Pirata Nervo Wrote:sound? o.O

"sound" a term, i use to say Working well

sound
tip top
100%
no probs
xD lol, Sorry I didn't know it :P
lol its cool it must be a U.S.A thing lol

Pirata Nervo Wrote:sound? o.O

To Zinga:
It fixed my bug :yipi: but the new function rebuild_settings is causing problems, maybe for users that don't know how to fix this...i fixed it, Just edited the files that were being affected and changed the name of the rebuild_settings to SOMETHINGrebuild_settings, the problem is this function:

PHP Code:
if(!function_exists("rebuild_settings"))
{
	function rebuild_settings()
	{
		global $db;
		$query = $db->query("SELECT * FROM ".TABLE_PREFIX."settings ORDER BY title ASC");
		while($setting = $db->fetch_array($query))
		{
			$setting['value'] = addslashes($setting['value']);
			$settings .= "\$settings['".$setting['name']."'] = \"".$setting['value']."\";\n";
		}
		$settings = "<?php\n/*********************************\ \n  DO NOT EDIT THIS FILE, PLEASE USE\n  THE SETTINGS EDITOR\n\*********************************/\n\n$settings\n?>";
		$file = fopen("./inc/settings.php", "w");
		fwrite($file, $settings);
		fclose($file);
	}
}


A lot of plugins use it and then it says cannot rebuild function rebuild_settings (that function is from other plugins)

And this function from your plugin:

PHP Code:
function rebuild_settings() { rebuildsettings(); }


Is not working with the other one from the other plugins, so the other function mu st be renamed.

I don't know if you get me :S


That sounds easy to fix :)
just search for "rebuild_settings" in the affected file and rename to SOMETHINGrebuild_settings. (not just hte function but when it the function is called too! like this: rebuild_settings(); rename to SOMETHINGrebuild_settings();
Pirata Nervo Wrote:just search for "rebuild_settings" in the affected file and rename to SOMETHINGrebuild_settings. (not just hte function but when it the function is called too! like this: rebuild_settings(); rename to SOMETHINGrebuild_settings();
Actually, much better to do this:

PHP Code:
if(!function_exists('rebuild_settings'))
{
function rebuild_settings() { rebuildsettings(); } 
}

i didnt try it xD lol, well it works anyway.
Withdraw isn't working here!
It says I don't have enough money to withdraw, but I DO have more than 0.9999 in bank...

Quote:You don't have enough money to buy this item
It's because you don't have enough money :P
It costs a small fee (from your money ON HAND) to withdraw.
ZiNgA BuRgA Wrote:It's because you don't have enough money :P
It costs a small fee (from your money ON HAND) to withdraw.

Ah, money on hand... That's it! :P
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Reference URL's