مرجع پارسی MyBB

نسخه‌ی کامل: اموزش تغییر funcations.php
شما درحال مشاهده‌ی نسخه‌ی متنی این صفحه می‌باشید. مشاهده‌ی نسخه‌ی کامل با قالب‌بندی مناسب.
برای تغییر 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;
}

الان دوست عزیز این چیه ؟!

اگر هم مربوط به پلاگین google seo است باید در مطلب مربوط به خودش منتشر می کردید
درود

من و دوستان درباره ی چگونگی تغییر روی فایل functions.php برای گوگل سئو در تاپیک مربوطه
توضیح دادیم. حتی فایل آماده برای نسخه ی 1.6 رو هم قرار دادم که کاربران مجبور نباشن همه را
دستی جایگزین کنند.
شما حتی اسم فایل رو هم اشتباه نوشته اید و کد هایی را که در فایل google_seo.txt هست را در اینجا کپی کرده اید.
ای کاش قبل از ارسال تاپیک جست و جو می کردید.

موفق باشید