Two IP.Blog file edits to help SEO

Discussion in 'IP.Board Discussions' started by Mike, Jan 25, 2010.

  1. Mike

    Mike Adept

    Joined:
    May 23, 2009
    Messages:
    137
    Likes Received:
    88
    Location:
    Lafayette, IN, USA
    First Name:
    Mike
    As I keep hammering about within IPB, I keep finding more ways to help improve SEO.

    In http://www.adminaddict.net/forum/ipb/two-file-edits-help-search-engine-optimization-5114/ I outlined a way to edit two IP.Board files to remove the forum name from the page title.

    Now let's move on and edit two files to do the same with IP.Blog. If you make these two simple edits, it will prevent the forum name from being included on your blog page and on your blog entry pages. This will give more weight to your blog name and to your blog entries.

    The first file to edit is /admin/applications_addon/ips/blog/modules_public/display/entry.php

    The line you are looking for is in the block identified as -

    //-----------------------------------------
    // Page title and navigation
    //-----------------------------------------

    Find the following line -

    Change it to -

    That will remove the forum name from the title of each blog entry page.

    Next, you want to edit /admin/applications_addon/ips/blog/modules_public/display/blog.php

    In the block identified as -

    //-----------------------------------------
    // Navigation bar + page title
    //-----------------------------------------

    Find the following line -

    Change it to -

    That will remove the forum name from the title of each blog page.

    I hope you will be able to use these two edits to help optimize your IPB sites!
     
    2 people like this.
  2. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,707
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    great work Mike, I had wanted the blog url cleaned up, now the gallery is the only one I have left :)

    I hope you share this on ipbsetup as well :)
     
  3. Mike

    Mike Adept

    Joined:
    May 23, 2009
    Messages:
    137
    Likes Received:
    88
    Location:
    Lafayette, IN, USA
    First Name:
    Mike
    I was already on it.

    The Gallery will be a bit more of a challenge, because the title remains Forum Name -> Gallery all the way through the individual users' albums. When you click on an image, it then becomes Forum Name -> Gallery -> Viewing Image -> Image Caption.

    I'll look into it and see if I can sort it.
     
    2 people like this.
  4. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,707
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    awesome :)
     
  5. Mike

    Mike Adept

    Joined:
    May 23, 2009
    Messages:
    137
    Likes Received:
    88
    Location:
    Lafayette, IN, USA
    First Name:
    Mike
    The file edits described in the original post will not work if you are upgrading to IP.Blog 2.2.1. You will need to use the following edits, instead.

    The file you need to edit is /admin/applications_addon/ips/blog/modules_public/display/entry.php

    Find the following line -

    Code:
    $this->page_title= $entry['entry_name'] . ' - ' . $this->settings['board_name'];
    Change it to -

    Code:
    $this->page_title = $entry['entry_name'];
    That will remove the forum name from the title of each blog entry page, giving more 'weight' to the blog entry name.

    Save your work and then you will need to edit /admin/applications_addon/ips/blog/modules_public/display/blog.php

    Find the following line -

    Code:
    $this->page_title = $this->blog['blog_name'] . ' - ' . $this->settings['board_name'];
    Change it to -

    Code:
    $this->page_title = $this->blog['blog_name'];
    That will remove the forum name from the title of each blog page.

    Again, use these edits for IP.Blog 2.2.1 only, all previous versions will use the edits described in the original post.
     

Share This Page