[ Stats page] Title, Meta Description

cajkan

Active Member
Hello all,

Recently ive noticed this problem from Google WMT,
html improvments-->> Long Meta Description

Two users registered and they added long description like 400+ characters.

Now ive inspected stats.html , and ive noticed that user description is showing as Meta Description.

Meta description should be maximum 160 characters, and into stats.html we cannot change anything from title or meta description...

I would like to ask:

1. How to remove Stats from <title>, coz i think isnt important to be there - better to add category name

And how we can limit the meta description into stats page something like {$description, lenght=160}
 

Basti

Administrator
Staff member
Look in wrapper.html , on the tmpl tag there for meta description, use lenght=160 just like you pointed out for the normal description tag. It should work just as fine with every tag which displays text
 

Basti

Administrator
Staff member
Make a new plugin
in a php file called "details_build_page.php" put the following to change stats to the member category
Code:
    $TMPL['header'] = $TMPL['category'];
 

cajkan

Active Member
Hey Basti,

Tested the plugin works, but user title should be displayed too

This current shows only category name, and toplist name

I want to show first user title then category and then toplist name.
 

Basti

Administrator
Staff member
Ah i missed one line
below what you already have, put
Code:
      $TMPL['header'] .= " - {$TMPL['title']}";
 

cajkan

Active Member
Works great Basti,

now the only thing i want is to put them in order:
1 User title, 2 category

currently is category -> user title
 

Basti

Administrator
Staff member
just switch those 2 tag or combine them into one
Code:
$TMPL['header'] = "{$TMPL['title']} - {$TMPL['category']}";
 
Top