Quote:
Originally Posted by z4media
Hello
I?am very intersted in this modification, but there is no howto.
Please explain the implementation of this mod.
Where do i put the code in the class_core.php, btw. in which line ?
thx
Flo
|
Quote:
Originally Posted by mayanks
thanks for it...could you please provide a small tutorial on how to do it?
|
1.- open includes/class_core.php
2.- find
Code:
$this->querycount++;
(should be line 406)
3.- after that, add
Code:
$shared_tables = Array("user","useractivation","userban","usertitle","userchangelog","usertextfield","userfield","usergroup","userlist","usernote","profilevisitor","reputation","reputationlevel","spamlog","strikes","pm","pmreceipt","pmtext","avatar","profilefield");
$main_prefix = "FP_";
foreach ($shared_tables as $shared_table)
{
$orig = TABLE_PREFIX.$shared_table;
$dst = $main_prefix.$shared_table;
$this->sql = str_replace($orig." ",$dst." " ,$this->sql);
$this->sql = str_replace($orig.".",$dst."." ,$this->sql);
$this->sql = str_replace($orig."\r",$dst."\r",$this->sql);
$this->sql = str_replace($orig."\n",$dst."\n",$this->sql);
$this->sql = str_replace($orig."\t",$dst."\t",$this->sql);
}
4.- save and close file, upload if you need to