- When a category is selected on your toplist, the name of the category will be displayed for example in h1 h2 or h3 Tags, which is good for Seo and the browsing experience of your Visitors.
See Demo here: http://www.anachrony.net/
Select a Category and you will see it.
To apply this Mod do the following:
In sources/misc/skin.php find
- Code: Select all
// Build the multiple pages menu
Add before
- Code: Select all
// Cat Display
$TMPL['cat_info'] = '';
$current_cat = (isset($FORM['cat']) and (isset($FORM['cat']) and !empty($FORM['cat']) ) ) ? $FORM['cat'] : $LNG['main_all'];
if ($current_cat == $LNG['main_all']) {
$TMPL['cat_info'] .= "Place some Intro text here which is display on the front page";
}
else {
////
$result = $DB->query("SELECT category FROM {$CONF['sql_prefix']}_categories WHERE category = \"{$current_cat}\"", __FILE__, __LINE__);
while (list($category) = $DB->fetch_array($result)) {
if("$category" == "$current_cat") {
$TMPL['cat_info'] .= "Category: {$current_cat}";
}
}
///
}
Change the following in the above Code to your desired Text which will display when no category is selected
- Code: Select all
Place some Intro text here which is display on the front page
Add this somewhere in wrapper.html, its best to place in h3 tags above the ranking tables
- Code: Select all
<h3>{$cat_info}</h3>
