نعم يجب اعادة تعديله في كل مرة يتم تحديث ملف template.class.php
بهذا التعديل
افتح ملف : template.class.php
ابحث عن :
CODE
// Activating Cache Templates
اضف اسفله :
CODE
if (defined('IN_Portal'))
{
$activating_cache_templates=0;
}
else
{
$activating_cache_templates=1;
}
ثم ابحث عن :
CODE
// We have loop
ضع اعلاها :
CODE
$forum_folder_name = "Upload";
if (defined('IN_Portal'))
{
$string = str_ireplace('index.php?page=portal','',$string);
if ($filename == 'header')
{
$string = str_ireplace('"index.php"','""',$string);
}
if ($filename == 'main_bar')
{
$string = str_ireplace('"index.php"','"/'.$forum_folder_name.'/"',$string);
}
$string = str_ireplace('stylesheet" href="{$ForumAdress}','stylesheet" href="',$string);
$string = str_ireplace('{$ForumAdress}index.php',"index.php",$string);
$string = str_ireplace('index.php','/'.$forum_folder_name.'/index.php',$string);
$string = str_replace('/'.$forum_folder_name.'/index.php?page=login&', "index.php?", $string);
$string = str_replace('/'.$forum_folder_name.'/index.php?page=logout&index=1', "index.php?logout=1", $string);
$string = str_ireplace('{$admincpdir}','/'.$forum_folder_name.'/{$admincpdir}',$string);
$string = str_ireplace('src="{$LastNews_subjectList','src="/'.$forum_folder_name.'/{$LastNews_subjectList',$string);
$string = str_ireplace('look/portal','/'.$forum_folder_name.'/look/portal',$string);
$string = str_ireplace("href='<","href='/".$forum_folder_name."/<",$string);
$string = str_ireplace("src='<","src='/".$forum_folder_name."/<",$string);
}
else
{
$string = str_replace('/'.$forum_folder_name.'/index.php?page=login&', "index.php?", $string);
$string = str_ireplace('index.php?page=login&',"index.php?",$string);
$string = str_ireplace('index.php?page=portal','',$string);
$string = str_replace('index.php?page=logout&index=1', "index.php?logout=1", $string);
}