Jump to content

Featured Replies

Posted

Slowly but surely, I am discovering some files and template changes to help with SEO on IPB.

 

One trick many of us former vBulletin admins used was to remove the forum name from the forum display and show thread templates. And this can also be accomplished for IPB, only it will require you to edit a couple of PHP files, instead.

 

The first file you will want to edit is /admin/applications/forums/modules_public/forums/forums.php

 

Find the following -

 

$this->registry->getClass('output')->setTitle( $this->settings['board_name'] . ' -> ' . $this->forum['name'] );

Change it to -

 

$this->registry->getClass('output')->setTitle( $this->forum['name'] );

The second change is an edit to /admin/applications/modules_public/forums/topics.php

 

Find the following -

 

$this->registry->output->setTitle( $this->topic['title'] . ' - ' . $this->settings['board_name']);

Change it to -

 

$this->registry->output->setTitle( $this->topic['title'] );

These two edits will eliminate your board name from those two pages, displaying just the forum title and thread titles. Enjoy!

oh thanks for the forum one, I missed it earlier :)

 

I just got home and tried this edit on the first file.

 

/admin/applications/forums/modules_public/forums/forums.php

 

It doesn't look like it removed the site name from the title tag..?

  • Author
Are you sure you edited the right file? It works on all of my sites.
Are you sure you edited the right file? It works on all of my sites.

I'm pretty sure I did, I'll check again tonight after work.

 

I may of edited the files on the ipbhelp ftp account by mistake :P

  • Author
I see you got it working and that's all that really matters! ;)
I see you got it working and that's all that really matters! ;)

yup, thanks again. I think I had edited the files on the old ipbhelp FTP the first time :P
  • Author
yup, thanks again. I think I had edited the files on the old ipbhelp FTP the first time

No need to thank me, I'm just happy you got it working.

 

As for editing the wrong files, I thought I was the only one that did those kinds of things. ;)

For those of you out there using the Unreal Portal add in, you probably want to remove "Unreal Portal" from the page title.

 

To do this, edit /admin/applications_addon/other/uportal/modules_public/uportal/uportal.php

 

Find the line:

 

$this->registry->output->setTitle( "{$this->settings['board_name']} - {$this->lang->words['page_title']}" );

and change it to:

 

$this->registry->output->setTitle( "{$this->settings['board_name']}" );

  • 3 weeks later...
  • 2 weeks later...
Can u explain how can it help ipbseo

Hello,

 

The reason some of us vBulletin guys have done it on our old forums is that it will help with your long tail keyword phrases.

  • 1 month later...
  • 3 months later...
  • Author

For those using these file edits, you will need a slightly different edit for Invision Community Forum 3.1.1.

 

The new file edit is in /admin/applications/forums/modules_public/forums/forums.php

 

Look for this line -

 

$this->registry->getClass('output')->setTitle( strip_tags($this->forum['name']) . ' - ' . ipsRegistry::$settings['board_name'] );

And change it to -

 

$this->registry->getClass('output')->setTitle( strip_tags($this->forum['name']));

Again, this is for Invision Community Forum 3.1.1 only. The edits in the original post will work for all previous versions.

  • IPBW unpinned this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...