SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
Posted:  29 Aug 2009 18:29
hristo;
How to added my forum page number to title?

Example: <title>$title - $page_number</title>


Because i have received google Duplicate meta descriptions error.

thanks for support...
Posted:  02 Sep 2009 13:36
You can modify the $title variable before including forumheader.php. The page number is in the $p variable.
Example:
Code:


$saved_title = $title; //new line
$title .= ' page '.$p; //new line
require('forumheader.php'); //original code
$title = $saved_title; //new line

Just an example. It will display page 1, page 2 etc. in the title. There are many ways to mod it though.
Posted:  05 Sep 2009 23:12   Last Edited By: takato
How to use???

Code:

<?php


if(!defined('SEO-BOARD'))
{
  die($lang['fatal_error']);
}

if ($user_id == 0)
{
  $navigation = eval(get_template('mainguestnavigation'));
  print eval(get_template('mainheader'));


$saved_title = $title; //new line
$title .= ' page '.$p; //new line
require('forumheader.php'); //original code
$title = $saved_title; //new line

  if ($loginerror == 1)
    show_error_back($lang['invalid_up']);
}
else
{
  $navigation = eval(get_template('mainmembernavigation'));
  print eval(get_template('mainheader'));
}



?>



Example page:

url: http://forums.seo-board.com/article398.htm
Title: Suggestions for the next version - page 1

url: http://forums.seo-board.com/article398-2.htm
Title: Suggestions for the next version - page 2 [up]
Posted:  06 Sep 2009 14:13
What is the question?
Posted:  06 Sep 2009 17:18
how to add page number to title
Posted:  09 Sep 2009 16:48
Isn't the provided code adding the page number to the title?
Posted:  11 Sep 2009 23:52
yes
Posted:  18 Sep 2009 15:06   Last Edited By: touch
Quote:
Because i have received google Duplicate meta descriptions error.

Hmm.. Sorry, but how the adding of page number to title can solve this issue?
__________________