SimplePortal

Support => International Support => Turkish (Türkçe) => Topic started by: karanima on April 04, 2010, 09:04:22 AM

Title: pretty url 2.3.2 çakışması
Post by: karanima on April 04, 2010, 09:04:22 AM
pretty url kurulurken şöyle bir bul değiştirme var

bul:

Code: [Select]
if (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd'])))
{
if (defined('SID') && SID != '')
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2?' . SID", $setLocation);
else
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2'", $setLocation);
}

değiştir:

Code: [Select]
// Redirections should be pretty too
if (!empty($modSettings['pretty_enable_filters']))
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$url = array(0 => array('url' => $setLocation, 'url_id' => 'setLocation'));
$filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
foreach ($filter_callbacks as $callback)
{
$pretty_url = call_user_func($callback, $url);
if (isset($pretty_url[0]['replacement']))
break;
}
if (isset($pretty_url[0]['replacement']))
$setLocation = $pretty_url[0]['replacement'];
$setLocation = str_replace("\x12", '\'', $setLocation);
$setLocation = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|;$|#$|=$~'), array(';', '?', '#', ''), $setLocation);
}


bu değişim sonrası simple portal kurulurken şu kod bulunamıyor

bul:

Code: [Select]
\?(?:' . SID . ';)((?:board|topic
değiştir:

Code: [Select]
\?(?:' . SID . ';)((?:board|topic|page

çünkü pretty url burası değişiyor. ne yapmalıyım. güncelleyemedim
Title: Re: pretty url 2.3.2 çakışması
Post by: grafitus on April 04, 2010, 11:14:26 AM
Sadece burada hata veriyosa geçebilirsiniz. Bu kod SMF'nin kendi SEF sistemi için gerekli zaten. Sizse Pretty URLs kurllnıyorsunuz...
Title: Re: pretty url 2.3.2 çakışması
Post by: karanima on April 07, 2010, 11:49:18 AM
Ara
Code: [Select]
\?((?:board|topic
Değiştir
Code: [Select]
\?((?:board|topic|page
bu kodda bulunmaıyor
Title: Re: pretty url 2.3.2 çakışması
Post by: grafitus on April 07, 2010, 12:00:20 PM
Pretty URLs kullanıyorsanız, o kod yoktur. Değişikliği yapmanıza da gerek yok.
SimplePortal 2.3.8 © 2008-2024, SimplePortal