MyBB Community Forums

Full Version: Google Seo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well, i saw Google Seo pulgin, but i'm having a problem. Here some details.


--- functions.php 2009-11-29 16:04:36.000000000 +0100 +++ functions.php 2009-12-02 17:39:41.813958311 +0100 @@ -830,6 +830,16 @@ */ function multipage($count, $perpage, $page, $url) { + if(function_exists("google_seo_url_multipage")) + { + $newurl = google_seo_url_multipage($url); + + if($newurl) + { + $url = $newurl; + } + } + global $theme, $templates, $lang, $mybb; if($count <= $perpage) @@ -4196,6 +4206,16 @@ */ function get_profile_link($uid=0) { + if(function_exists("google_seo_url_profile")) + { + $link = google_seo_url_profile($uid); + + if($link) + { + return $link; + } + } + $link = str_replace("{uid}", $uid, PROFILE_URL); return htmlspecialchars_uni($link); } @@ -4208,6 +4228,16 @@ */ function get_announcement_link($aid=0) { + if(function_exists("google_seo_url_announcement")) + { + $link = google_seo_url_announcement($aid); + + if($link) + { + return $link; + } + } + $link = str_replace("{aid}", $aid, ANNOUNCEMENT_URL); return htmlspecialchars_uni($link); } @@ -4273,6 +4303,16 @@ */ 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; + } + } + if($page > 0) { $link = str_replace("{fid}", $fid, FORUM_URL_PAGED); @@ -4296,6 +4336,16 @@ */ 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; + } + } + if($page > 1) { if($action) @@ -4335,6 +4385,16 @@ */ 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; + } + } + if($tid > 0) { $link = str_replace("{tid}", $tid, THREAD_URL_POST); @@ -4356,6 +4416,16 @@ */ function get_event_link($eid) { + if(function_exists("google_seo_url_event")) + { + $link = google_seo_url_event($eid); + + if($link) + { + return $link; + } + } + $link = str_replace("{eid}", $eid, EVENT_URL); return htmlspecialchars_uni($link); } @@ -4371,6 +4441,16 @@ */ 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; + } + } + if($day > 0) { $link = str_replace("{month}", $month, CALENDAR_URL_DAY); @@ -4409,6 +4489,16 @@ */ 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; + } + } + if($week < 0) { $week = str_replace('-', "n", $week);

But didn't finished yet. There's other.

RewriteBase /mybb/ > My site is /blabla.byethost14.com/htdocs/forum, So What i need to put in Rewrite Base, That all or only /forum).

-Latios
You used the wrong file (patch is meant for patching only). Depending on your host, you may not need RewriteBase at all, but if your forum is in /forum/ then the RewriteBase would be /forum/ as well...
Well, i've found 2 files, one called "functions.php.1.4.13-googleseo" and other functions.php.1.4.13-googleseo-patch", which one i need to install?
The patch is what you can use with any version (even 1.6) if you know how to use the GNU patch program. functions.php.1.4.13-googleseo is the edited file for MyBB 1.4.12 / 1.4.13 and the one you can use if you do not want to make the edits yourself.
Well, now it works. But when i Install it. WHen i try to enter a profile, Show Thread, calendar and that. It always send me 404 Error.
Have you done all installation steps which are expounded in readme file?
Then your rewrite rules don't work...