If you have MOSpjirc Component in your Joomla 1.X installation then you would have noticed that it uses the same <title></title> tag as your homepage. We all know that is bad as far as SEO (Search Engine Optimization) is concerned! Another problem about this component is that it doesn’t add a Meta tag when it generates its pages which means that it’ll use the same Meta tag that your homepage uses! Again, having duplicate Meta tags will hurt your website.
Here’s a simple fix that I’ve come up with. It involves going to your ~/components/com_mospjirc/ directory and looking for the mospjirc.html.php file. Open it and add the following lines right after…
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
So it should look like this now.
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$mainframe->setPageTitle(Chatroom);
$mainframe->addMetaTag( 'description', Chatroom);
$mainframe->addMetaTag( 'keywords', Chatroom);
You can change Chatroom to whatever you want. I just used it because that’s basically what MOSpjirc is. Refresh your page right after you saved the file. Now you’ll see the following lines when you view your webpage’s source.
<title>Chatroom</title>
<meta name="description" content="Chatroom" />
<meta name="keywords" content="Chatroom" />
Have fun improving your websites!