==================================

Mod Title: SEO Page Titles for XMB

Mod Version: 1.0

Mod Author: Robert Chapin, http://www.miqrogroove.com/forums/ (miqrogroove)

Mod Description: Changes all page titles so that the thread name or subforum name is first.

Mod Compatibility: XMB 1.9.11

Mod Install Note: Before adding this mod to your forum, you should back up all files related to this mod.

Mod License Note: This mod is released under the GPL v3 License. A copy is provided with this software.

==================================

STEP 1:  BACKUP ALL FILES AND THE DATABASE

----------------------------------

STEP 2:  EDIT TEMPLATE: header

In the 'header' template, find this code:


<title>{$SETTINGS['bbname']} $threadSubject - $versionlong</title>


Replace with this code:


<title>$threadSubject{$SETTINGS['bbname']} - $versionlong</title>

----------------------------------

STEP 3:  EDIT TEMPLATE: viewthread_printable

In the 'viewthread_printable' template, find this code:


<title>{$SETTINGS['bbname']} $threadSubject - $versionlong</title>


Replace with this code:


<title>$threadSubject{$SETTINGS['bbname']} - $versionlong</title>

----------------------------------

STEP 4:  EDIT FILE: forumdisplay.php

In forumdisplay.php, find this code:


    $threadSubject = '- '.fnameOut($forum['name']);


Replace with this code:


    $threadSubject = fnameOut($forum['name']).' - ';

----------------------------------

STEP 5:  EDIT FILE: index.php

In index.php, find this code:


        $threadSubject = '- '.fnameOut($cat['name']);


Replace with this code:


        $threadSubject = fnameOut($cat['name']).' - ';

----------------------------------

STEP 6:  EDIT FILE: post.php

In post.php, find this code:


        if ($SETTINGS['subject_in_title'] == 'on') {

            $threadSubject = '- '.$threadname;



Replace with this code:


        if ($SETTINGS['subject_in_title'] == 'on' and $threadname != '') {
            $threadSubject = $threadname.' - ';



Find this code:


        if ($SETTINGS['subject_in_title'] == 'on') {

            $threadSubject = '- '.$dissubject;



Replace with this code:


        if ($SETTINGS['subject_in_title'] == 'on' and $dissubject != '') {
            $threadSubject = $dissubject.' - ';



Find this code:


        if ($SETTINGS['subject_in_title'] == 'on') {

            $threadSubject = '- '.$threadname;



Replace with this code:


        if ($SETTINGS['subject_in_title'] == 'on' and $threadname != '') {
            $threadSubject = $threadname.' - ';


----------------------------------

STEP 7:  EDIT FILE: topicadmin.php

In topicadmin.php, find this code:


    $threadSubject = '- '.$threadname;


Replace with this code:


    $threadSubject = $threadname.' - ';

----------------------------------

STEP 8:  EDIT FILE: viewthread.php

In viewthread.php, find this code:


    $threadSubject = '- '.$thread['subject'];


Replace with this code:


    $threadSubject = $thread['subject'].' - ';

----------------------------------

STEP 9:  EDIT FILE: vtmisc.php

In vtmisc.php, find this code:


    $threadSubject = '- '.rawHTMLsubject(stripslashes($forum['subject']));


Replace with this code:


    $threadSubject = rawHTMLsubject(stripslashes($forum['subject'])).' - ';

----------------------------------
