Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: SEO title ??!!  (Read 2848 times)

ha100

  • Newbie
  • *
  • Karma: 7
  • Posts: 19
    • ha100
SEO title ??!!
« on: October 27, 2008, 11:28:39 PM »

i just find out that archive/contact/sitemap has same title - which IMHO is not SEO friendly.
i think this should be implemented by default.

to solve this just replace this
Code: [Select]
//TITLE
function title() {
.
.
.
<meta name="keywords" content="'.(!empty($_KEYW) ? $_KEYW : s('website_keywords')).'" />';

with this (changed code in RED)

Quote
//TITLE
function title() {
   global $categorySEF, $_DESCR, $_KEYW, $_TITLE, $_NAME, $_XNAME;
   echo '<base href="'._SITE.'" />';

   $title =  $_TITLE ? $_TITLE.' - ' : '';
   $title .= $_NAME ? $_NAME.' - ' : '';
   $title .= $_XNAME ? $_XNAME.' - ' : '';
   if (check_category($categorySEF) == true && $categorySEF != 'administration' && $categorySEF)
   $title .= l($categorySEF).' - ';
   $title .= s('website_title');


   echo '
<title>'.$title.'</title>
<meta http-equiv="Content-Type" content="text/html; charset='.s('charset').'" />
<meta name="description" content="'.(!empty($_DESCR) ? $_DESCR : s('website_description')).'" />
<meta name="keywords" content="'.(!empty($_KEYW) ? $_KEYW : s('website_keywords')).'" />';
Logged

Sven

  • ULTIMATE member
  • ******
  • Karma: 88
  • Posts: 2029
  • Chasing MY bugs!
    • hiseo.fr - rédacteur Web
Re: SEO title ??!!
« Reply #1 on: October 28, 2008, 07:51:38 AM »

i just find out that archive/contact/sitemap has same title - which IMHO is not SEO friendly.
i think this should be implemented by default.
Absolutely right! 1 karma for the bug, 1 karma for the code.

Reminder: you owe 1 more karma to ha100

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: SEO title ??!!
« Reply #2 on: October 28, 2008, 08:11:29 AM »

thx. will be in final.
Logged
Of all the things I have lost, it is my mind that I miss the most.