MyBB Community Forums

Full Version: SEF URLs to use keywords
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
It wont be in readme. But for SEO URL's to work, you have to do it. Edit inc/functions.php

Find:
Quote:function get_profile_link($uid=0)
{

Replace with:
Quote: function get_profile_link($uid=0)
{
if(function_exists("google_seo_url_profile"))
{
$link = google_seo_url_profile($uid);

if($link)
{
return $link;
}
}

Find:
Quote: function get_announcement_link($aid=0)
{

Replace with:
Quote:function get_announcement_link($aid=0)
{
if(function_exists("google_seo_url_announcement"))
{
$link = google_seo_url_announcement($aid);

if($link)
{
return $link;
}
}

Find:
Quote:function get_forum_link($fid, $page=0)
{

Replace with:
Quote: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:
Quote: function get_thread_link($tid, $page=0, $action='')
{

Repace with:
Quote: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:
Quote:function get_post_link($pid, $tid=0)
{

Replace with:
Quote: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:
Quote: function get_event_link($eid)
{

Replace with:
Quote:function get_event_link($eid)
{
if(function_exists("google_seo_url_event"))
{
$link = google_seo_url_event($eid);

if($link)
{
return $link;
}
}

Find:
Quote:function get_calendar_link($calendar, $year=0, $month=0, $day=0)
{

Replace with:
Quote: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:
Quote: function get_calendar_week_link($calendar, $week)
{

Replace with:
Quote: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:
Quote:function multipage($count, $perpage, $page, $url)
{

Replace with:
Quote:function multipage($count, $perpage, $page, $url)
{
if(function_exists("google_seo_url_multipage"))
{
$newurl = google_seo_url_multipage($url);

if($newurl)
{
$url = $newurl;
}
}

The instructions are found in the inc/plugins/google_seo.txt file present in the plugin file you downloaded. I had attached it with this post.
Pages: 1 2