۱۳۸۹/۱۰/۲۰، ۱۳:۳۳:۳۵ عصر
برای تغییر google seo که بایید روی functaion.php انجام شود
کد php:
Find:
function get_profile_link($uid=0)
{
Replace with:
function get_profile_link($uid=0)
{
if(function_exists("google_seo_url_profile"))
{
$link = google_seo_url_profile($uid);
if($link)
{
return $link;
}
}
Find:
function get_announcement_link($aid=0)
{
Replace with:
function get_announcement_link($aid=0)
{
if(function_exists("google_seo_url_announcement"))
{
$link = google_seo_url_announcement($aid);
if($link)
{
return $link;
}
}
Find:
function get_forum_link($fid, $page=0)
{
Replace with:
function get_forum_link($fid, $page=0)
{
if(function_exists("google_seo_url_forum"))
{
$link = google_seo_url_forum($fid, $page);
if($link)
{
return $link;
}
}
Find:
function get_thread_link($tid, $page=0, $action='')
{
Repace with:
function get_thread_link($tid, $page=0, $action='')
{
if(function_exists("google_seo_url_thread"))
{
$link = google_seo_url_thread($tid, $page, $action);
if($link)
{
return $link;
}
}
Find:
function get_post_link($pid, $tid=0)
{
Replace with:
function get_post_link($pid, $tid=0)
{
if(function_exists("google_seo_url_post"))
{
$link = google_seo_url_post($pid, $tid);
if($link)
{
return $link;
}
}
Find:
function get_event_link($eid)
{
Replace with:
function get_event_link($eid)
{
if(function_exists("google_seo_url_event"))
{
$link = google_seo_url_event($eid);
if($link)
{
return $link;
}
}
Find:
function get_calendar_link($calendar, $year=0, $month=0, $day=0)
{
Replace with:
function get_calendar_link($calendar, $year=0, $month=0, $day=0)
{
if(function_exists("google_seo_url_calendar"))
{
$link = google_seo_url_calendar($calendar, $year, $month, $day);
if($link)
{
return $link;
}
}
Find:
function get_calendar_week_link($calendar, $week)
{
Replace with:
function get_calendar_week_link($calendar, $week)
{
if(function_exists("google_seo_url_calendar_week"))
{
$link = google_seo_url_calendar_week($calendar, $week);
if($link)
{
return $link;
}
}
Find:
function multipage($count, $perpage, $page, $url)
{
Replace with:
function multipage($count, $perpage, $page, $url)
{
if(function_exists("google_seo_url_multipage"))
{
$newurl = google_seo_url_multipage($url);
if($newurl)
{
$url = $newurl;
}
}