Network Infrastructure Forums - Nortel, Cisco, Motorola, Juniper and others

General Category => General Discussion => Topic started by: Michael McNamara on September 07, 2009, 05:36:54 PM



Title: Simple Machines Forum Theme
Post by: Michael McNamara on September 07, 2009, 05:36:54 PM
I've changed the theme from the default to Kani (http://custom.simplemachines.org/themes/index.php?lemma=1695).

I like the simple plain look but let's just see how it plays out.

Mike


Title: Re: Simple Machines Forum Theme
Post by: Michael McNamara on January 04, 2010, 02:00:19 PM
I've 'tweaked' the theme files a little to fix up the META keywords and the HTML title attribute.

I modified the following code within index.template.php. I'll admit it's rather crude but it works;

Code:
echo '<title>';
if ($context['page_title'] == "Network Infrastructure Forums - Nortel, Cisco, Motorola, Juniper and others - Index") {
        echo $context['page_title'];
} else {
echo $context['page_title'],' | Network Infrastructure Forums - Nortel, Cisco, Motorola, Juniper and others';
        }
echo '</title>';

This will essentially add the name of the site to the end of the HTML title, so that in bookmarks and web searching folks will have some idea of what site is hosting this information.