| :: |
| Author |
Message |
maxidrom11
Joined: 28 Jan 2007 Posts: 18
|
Posted: Sun Jan 28, 2007 2:25 pm Post subject: Forum main page titles didnt get rewritten |
|
|
First of all --
This is most helpful SEO forum I've ever seen, thank you, guys for starting it.
I have message board which I have just started at [mod]we'll keep this private [/mod]
it's phpBB 2.0.22 version
sorry for the way it's called but that's where I do business.
First I tried Simple mod rewrite and it worked perfectly ... then I thought why not giving a try to Advanced mod Rewrite and installed it following all directions described in the help .txt file... as a result my main page didnt get rewritten but viewforum.php page and others look like everything is ok.
Can you help me to find out where my mistake could hide???
Thanks,
I am sure you will help. |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
maxidrom11
Joined: 28 Jan 2007 Posts: 18
|
Posted: Sun Jan 28, 2007 2:43 pm Post subject: Re: Forum main page titles didnt get rewritten |
|
|
this is what help file says:
| Code: |
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->seo_url['cat'][$cat_id] = $phpbb_seo->format_url($category_rows[$i]['cat_title'], $phpbb_seo->seo_static['cat']);
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('catrow.forumrow', array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($phpbb_seo->seo_url['forum'][$forum_id]) ) {
$phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_data[$j]['forum_name'], $phpbb_seo->seo_static['forum']);
}
// www.phpBB-SEO.com SEO TOOLKIT END
|
and tha's how my index.php file looks after all changes:
[mod] php code too long, but I got it [/mod] |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
Posted: Sun Jan 28, 2007 2:47 pm Post subject: Re: Forum main page titles didnt get rewritten |
|
|
You just added this part :
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($phpbb_seo->seo_url['forum'][$forum_id]) ) {
$phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_data[$j]['forum_name'], $phpbb_seo->seo_static['forum']);
}
// www.phpBB-SEO.com SEO TOOLKIT END |
right after :
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->seo_url['cat'][$cat_id] = $phpbb_seo->format_url($category_rows[$i]['cat_title'], $phpbb_seo->seo_static['cat']);
// www.phpBB-SEO.com SEO TOOLKIT END |
What is asked is :
| Code: | #
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('catrow.forumrow', array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($phpbb_seo->seo_url['forum'][$forum_id]) ) {
$phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_data[$j]['forum_name'], $phpbb_seo->seo_static['forum']);
}
// www.phpBB-SEO.com SEO TOOLKIT END |
So just move :
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($phpbb_seo->seo_url['forum'][$forum_id]) ) {
$phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_data[$j]['forum_name'], $phpbb_seo->seo_static['forum']);
}
// www.phpBB-SEO.com SEO TOOLKIT END |
Before :
| Code: | $template->assign_block_vars('catrow.forumrow', array(
|
 |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
maxidrom11
Joined: 28 Jan 2007 Posts: 18
|
Posted: Sun Jan 28, 2007 2:56 pm Post subject: Re: Forum main page titles didnt get rewritten |
|
|
well ... it looks like I am not .php professor at all ---
Can you tell me exactly where I place it
sorry for being soooooo dumb
just tell me how this part should look like withing php<code> |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
Posted: Sun Jan 28, 2007 3:07 pm Post subject: Re: Forum main page titles didnt get rewritten |
|
|
The easiest will be to start again from scratch for index.php.
So take a fresh index.php file (not modified) and open it.
It's really easy, you just need to first find :
| Code: | if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
{ |
and add after :
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->seo_url['cat'][$cat_id] = $phpbb_seo->format_url($category_rows[$i]['cat_title'], $phpbb_seo->seo_static['cat']);
// www.phpBB-SEO.com SEO TOOLKIT END |
You did well for this part so far, the only trick is you need to search again for another piece of code for the second piece of code to add, so then look for :
| Code: | | $template->assign_block_vars('catrow.forumrow', array( |
And this time add BEFORE the found line :
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($phpbb_seo->seo_url['forum'][$forum_id]) ) {
$phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_data[$j]['forum_name'], $phpbb_seo->seo_static['forum']);
}
// www.phpBB-SEO.com SEO TOOLKIT END |
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
maxidrom11
Joined: 28 Jan 2007 Posts: 18
|
Posted: Sun Jan 28, 2007 3:16 pm Post subject: Re: Forum main page titles didnt get rewritten |
|
|
ok --
I found it
| Code: | | $template->assign_block_vars('catrow', array( |
is different from
| Code: | | $template->assign_block_vars('catrow.forumrow', array( |
I see!!!
thank you so much
I am sure that helps! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
|
|