| :: |
| Author |
Message |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 515 Location: Michigan
|
Posted: Thu May 25, 2006 12:24 am Post subject: Problem with my boards URL's - Simple sub forum |
|
|
Small problem with my subforums. ( simple subforums MOD ) on my board, the subforum URL's are ALL named as my last 'regular' forum.
So say the last non subforum is called jokes-vf88.html then all my subforums are called jokes-vf88.html. I click on on the subforum URL and it takes me to the proper forum, but the URL is still http://www.exampple/phpbb/jokes-vf88.html. |
Last edited by Peter77 on Thu Jun 08, 2006 10:56 pm; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
Posted: Thu May 25, 2006 5:19 am Post subject: Re: Problem with my boards URL's - Simple sub forum |
|
|
yop, the sub forum mod needs extra adaptation :
Add on for the simple sub forum mod for the mixed and advanced phpBB seo mod rewrites :
| Code: |
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
// Append new entry
$data[] = array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $forum_data['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
if( $all_forums[$i]['forum_id'] == $parent_id )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $all_forums[$i]['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
if( $total_forums )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $forum_row['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('catrow.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $subforum_data[$j]['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
if( $all_forums[$i]['forum_id'] == $parent_id )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $all_forums[$i]['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
Those are very simple as for the regular phpbb files moddings.
And there is a small issu with this code, links won't all work until there is a post in all sub forums (not the on hosting them if you like).
This is due to how sud forum does the trick and to the fact I did not want to implement an additional check for a case only supposed to happen very few time before the forum is populated.
Besides, woks like a charm.
Will soon start posting add ons like this one  |
_________________ 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
Last edited by dcz on Wed May 31, 2006 11:07 pm; edited 3 times in total |
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 515 Location: Michigan
|
Posted: Thu May 25, 2006 6:34 am Post subject: Re: Problem with my boards URL's - Simple sub forum |
|
|
Great... worked like a charm, indeed. thank you.  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
Posted: Wed May 31, 2006 5:19 pm Post subject: Re: Problem with my boards URL's - Simple sub forum |
|
|
it seems we did not achieved this one proper last time
So here is the problem : http://boards.phpbb-seo.com/phpbb-mod-rewrite/discussions-vt59.html
And the solution : Just look two post ahead, I edited the message for the sub forum's code change.
If you had already installed the previous, just look in viewforum.php and delete the two following piece of code :
| Code: |
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name_save = $seo_forum_name;
// phpBB-SEO.com SEO TOOLKIT END |
And :
| Code: | // phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $seo_forum_name_save;
// phpBB-SEO.com SEO TOOLKIT END |
I changed method and they are now useless and could mess with the new modding.
Sorry I have missed this issue
++ |
_________________ 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 |
|
 |
sceltic PR0

Joined: 04 May 2006 Posts: 55
|
Posted: Wed May 31, 2006 8:24 pm Post subject: Re: Problem with my boards URL's - Simple sub forum |
|
|
dcz, where is the solution?
I can't find it. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
sceltic PR0

Joined: 04 May 2006 Posts: 55
|
Posted: Wed May 31, 2006 8:33 pm Post subject: Re: Problem with my boards URL's - Simple sub forum |
|
|
This is a viewtopic problem!
On viewtopic the forum all have the same key words |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
Posted: Wed May 31, 2006 11:07 pm Post subject: Re: Problem with my boards URL's - Simple sub forum |
|
|
Lol, I am so stubborn sometime
| Code: | #
#-----[ OPEN ]------------------------------------------
#
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
if( $all_forums[$i]['forum_id'] == $parent_id )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $all_forums[$i]['forum_name'];
// 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 |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 515 Location: Michigan
|
Posted: Thu Jun 01, 2006 8:47 pm Post subject: Re: Problem with my boards URL's - Simple sub forum |
|
|
| I was missing one part from the simple subforum MOD ( from repairing viewtopic.php ). no wonder I did not see this problem. heh, thanks for the fix. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
zinnerz PR0

Joined: 08 Jun 2006 Posts: 75
|
Posted: Thu Jun 08, 2006 7:20 pm Post subject: Re: Problem with my boards URL's - Simple sub forum |
|
|
I've just installing phpBB 2.021 + SEO advanced mod rewrite 0.01 + simple sub forums 1.0.1 + eXtreme Styles mod v2.31
My subforum link is not working, the link is directly to the main forum although I'm in subforum
Is the hack is not compatible with the latest phpBB?
I've repeat 2 times to implementing those hack carefully, but it's still didnt working
Please help me how to make it works.. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
zinnerz PR0

Joined: 08 Jun 2006 Posts: 75
|
Posted: Thu Jun 08, 2006 7:49 pm Post subject: Re: Problem with my boards URL's - Simple sub forum |
|
|
I mean, the link is not in /subforum/link.html
the link still pointing to /link.html although I'm in subforum |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

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