[Joomla] Show module on the first Blog page only.

Job ID: 32797109

Budget: €8 – €30 EUR

Hi,
I'm looking for a PHP code that would show a module on the first Blog page only.
The code below is what I use with an Joomla PHP Module Extension. But I want to avoid using an extra Joomla extension for this, and want to simply add a PHP code into my Joomla Template index.php file if possible.

<?php
if (!(JRequest::getVar('option') == 'com_content' && JRequest::getVar('view') == 'category' && JRequest::getVar('id') == '9' && JRequest::getVar('Itemid') == '101' && JRequest::getVar('limitstart') == '')) return;
?>
<?php
if (preg_match('/(MSIE 6.0|MSIE 7.0|MSIE 8.0|MSIE 9.0)/i', $_SERVER['HTTP_USER_AGENT'])) {
echo '<style type="text/css">
#id-element {
display: block;
}
</style>';
} else {
echo '<style type="text/css">
#id-element {
display: none;
}
</style>';
}
?>
Related categories: PHP Joomla CMS