Page X from Y in page title

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

Page X from Y in page title

Postby one » Sat Mar 24, 2012 7:36 pm

Hello,

I have some problem with Russian language variable. Now, if my board preferences is set in English language I have "Topic name - Page X -forum name" but if I set board preferences language to Russian I have "Topic name - X -forum name". As can see, lost word "Page". I can understand Russian language not have correct variable for this but can't find this variable. Please point me how I can correct this.

Finally I want get page title as this "Topic name - Page X from Y - forum name". It is possible? How?

I have use latest version of phpBB SEO Premod, 3.0.10.

Thank you!
one
 
Posts: 5
Joined: Wed Apr 14, 2010 3:59 pm

Advertisement

Re: Page X from Y in page title

Postby Stephen26 » Sun Mar 25, 2012 7:39 am

Open /language/en/common.php and scroll to the end. You will find a code like this:

Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
$lang['Page'] = 'Page ';
// www.phpBB-SEO.com SEO TOOLKIT END - TITLE
// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> GYM Sitemaps
$lang = array_merge($lang, array(
   'GYM_LINKS' => 'Links',
   'GYM_LINK' => 'Link',
   'GYM_RSS_SLIDE_START' => 'Start scroller',
   'GYM_RSS_SLIDE_STOP' => 'Stop scroller',
   'GYM_RSS_SOURCE' => 'Source',
));
// www.phpBB-SEO.com SEO TOOLKIT END -> GYM Sitemaps
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - Related Topics
$lang['RELATED_TOPICS'] = 'Related topics';
// www.phpBB-SEO.com SEO TOOLKIT END - Related Topics


Copy it to the clipboard and open /language/*russian*/common.php - Put the code correctly at the end of the file (before ?>). Instead of $lang['Page'] = 'Page '; use the russian word). Maybe you have to clear the board cache.
Last edited by Stephen26 on Sun Mar 25, 2012 9:38 am, edited 1 time in total.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 404
Joined: Mon May 03, 2010 7:06 am

Re: Page X from Y in page title

Postby one » Sun Mar 25, 2012 9:37 am

Ohhh.... Yes, your are right. Thank you! I have updated my Russian language files and lost changes on it.

And what about this:
Finally I want get page title as this "Topic name - Page X from Y - forum name". It is possible? How?
one
 
Posts: 5
Joined: Wed Apr 14, 2010 3:59 pm

Re: Page X from Y in page title

Postby Stephen26 » Sun Mar 25, 2012 9:51 am

Good news: That's possible for sure. Bad news: I don't know how, altough it should be fairly simple. :oops:

You'll have to wait for an answer from one of the more skilled guys.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 404
Joined: Mon May 03, 2010 7:06 am

Re: Page X from Y in page title

Postby coyote » Fri Mar 30, 2012 10:09 pm

You're right, Stephen, it's fairly simple :)

OPEN
root/language/ru/common.php

FIND
Code: Select all
   'PAGE_OF'            => 'Страница <strong>%1$d</strong> из <strong>%2$d</strong>',


REPLACE WITH
Code: Select all
   'PAGE_OF'            => 'Страница %1$d из %2$d',


OPEN
root/viewtopic.php

FIND
Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
$extra_title = ($start > 0) ? ' - ' . $user->lang['Page'] . ( floor( ($start / $config['posts_per_page']) ) + 1 ) : '';
page_header($topic_data['topic_title'] . ' : ' .  $topic_data['forum_name'] . $extra_title, true, $forum_id);
// www.phpBB-SEO.com SEO TOOLKIT END - TITLE


REPLACE WITH
Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
$extra_title = on_page($total_posts, $config['posts_per_page'], $start);
page_header($topic_data['topic_title'] . ' - ' . $extra_title . ' - ' .  $topic_data['forum_name'], true, $forum_id);
// www.phpBB-SEO.com SEO TOOLKIT END - TITLE


SAVE AND CLOSE ALL FILES

Clear your cache and voila:

<title>Topic Title - Page %1$d of %2$d - Forum Title</title>

Enjoy! :)
coyote
phpBB SEO Team
phpBB SEO Team
 
Posts: 284
Joined: Fri May 11, 2007 6:24 am


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google Adsense [Bot] and 9 guests