phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
hierarchie problem in phpbb-seo-advanced mod rewrite

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
drsyntax



Joined: 25 Oct 2006
Posts: 9

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Wed Oct 25, 2006 3:21 pm    Post subject: hierarchie problem in phpbb-seo-advanced mod rewrite

i have installed phpbb-seo-advanced mod rewrite and every thing is ok except hierarchie in the topics view

for example :

if iam watching a topic on the "Community, Music / Media" section
this is hierarchie link up in the topic view :

Board Index
-> Community, Music / Media

when i click on -> Community, Music / Media i return to the same topic

plz help :S
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15129

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Wed Oct 25, 2006 4:15 pm    Post subject: Re: hierarchie problem in phpbb-seo-advanced mod rewrite

And welcome Very Happy

It's rather hard to tell without a link here, but it seems you are talking about the forum link in viewtopic.

It's most likely you did something wrong while installing the mod in the viewtopic.php file.

Please check those code changes, and send us a nice zip of the file if necessary Wink

++

_________________
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
Visit poster's website
drsyntax



Joined: 25 Oct 2006
Posts: 9

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Wed Oct 25, 2006 4:51 pm    Post subject: Re: hierarchie problem in phpbb-seo-advanced mod rewrite

i checked it and i think that every thing is right

this is a link to my viewtopic.php file if you want to check it

http://qarasena.com/viewtopic.txt

i hope that you find where is the error very soon Very Happy
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15129

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Thu Oct 26, 2006 8:49 am    Post subject: Re: hierarchie problem in phpbb-seo-advanced mod rewrite

Oh I get it, you're using UTF-8, Persian or Arabic, sorry I cannot tell Wink

So the title injection will not work as is.

I worked on an UTF-8 trick which is nicely working, but you'll need some extra steps.

For your viewtopic file (heavily modded), try these additional steps:

Find :
Code:
               $title = (strlen($similar['topic_title']) > 40) ? (substr($similar['topic_title'], 0, 37) . '...') : $similar['topic_title'];
               $topic_url = '<a href="'. append_sid('viewtopic.'.$phpEx.'?'. POST_TOPIC_URL . '=' . $similar['topic_id']) . '" class="topictitle">' . $title . '</a>';


Before add :

Code:
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_topic_name = $similar['topic_title'];
$seo_forum_name_save = $seo_forum_name;
$seo_forum_name = $similar['forum_name'];
// www.phpBB-SEO.com SEO TOOLKIT END


Find :
Code:
               $forum = '<a href="' . append_sid('viewforum.'.$phpEx.'?' . POST_FORUM_URL . '=' . $similar['forum_id']) .'" class="forumlink">' . $similar['forum_name'] . '</a>';


after add :
Code:
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $seo_forum_name_save;
// www.phpBB-SEO.com SEO TOOLKIT END


It should be enough, but you'll have to test Wink

Then for UTF-8, please read this thread and we talk about the additional changes there Wink

_________________
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
Visit poster's website
drsyntax



Joined: 25 Oct 2006
Posts: 9

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Thu Oct 26, 2006 10:13 am    Post subject: Re: hierarchie problem in phpbb-seo-advanced mod rewrite



the problem still exists , when i click on "Community , Introduction" i have to go to the forum section that contain this topic but as you see when i click on it i return to the same topic again :S
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15129

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Thu Oct 26, 2006 2:58 pm    Post subject: Re: hierarchie problem in phpbb-seo-advanced mod rewrite

I think I got it now :

Find :

Code:
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
   'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;start=$start&amp;postdays=$post_days&amp;postorder=$post_order$highlight_ok"),
   // www.phpBB-SEO.com SEO TOOLKIT END   'U_VIEW_FORUM' => $view_forum_url,


Replace with :

Code:
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;start=$start&amp;postdays=$post_days&amp;postorder=$post_order$highlight_ok"),
   // www.phpBB-SEO.com SEO TOOLKIT END
   'U_VIEW_FORUM' => $view_forum_url,


The U_VIEW_FORUM line was commented as it's on the same line as the comment, small mistake while editing Wink

And I forgot to post the link about the UTF-8 thread : http://boards.phpbb-seo.com/phpbb-mod-rewrite/discussions-vt138.html

A good thing would be to start a new topic for UTF-8 where I'll give you a synthesis about the other one, will be helpful to others in your case this way.

Here an example of the result : http://forum.persia-cms.com/index.php

++

_________________
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
Visit poster's website
drsyntax



Joined: 25 Oct 2006
Posts: 9

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Thu Oct 26, 2006 3:26 pm    Post subject: Re: hierarchie problem in phpbb-seo-advanced mod rewrite

Thx it is working now , thank you very much for your help.
Back to top
drsyntax



Joined: 25 Oct 2006
Posts: 9

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Mon Oct 30, 2006 5:46 pm    Post subject: Re: hierarchie problem in phpbb-seo-advanced mod rewrite

i have another problem , i have a phpbb fully moded that have a lite mod

after installing phpbb mod rewrite , there is a problem on the lite board , i get this error :Fatal error: Call to undefined function if_query() in /home/******/public_html/forums/includes/sessions.php on line 698

and this is my sessions.php file : http://www.qarasena.com/sessions.txt

i hope that you can tell me where is the error , i know this problem because of the lite board attached with phpbb fully modded , but i hope that someone here can tell me how to fix this problem.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15129

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Mon Oct 30, 2006 6:13 pm    Post subject: Re: hierarchie problem in phpbb-seo-advanced mod rewrite

It looks like you did not perform the correct changes in includes/functions.php, where the if_query() function should be defined after the mod rewrite install.

++

_________________
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
Visit poster's website
drsyntax



Joined: 25 Oct 2006
Posts: 9

hierarchie problem in phpbb-seo-advanced mod rewritePosted: Tue Oct 31, 2006 1:16 pm    Post subject: Re: hierarchie problem in phpbb-seo-advanced mod rewrite

Oh , tge lite board has its functions.php

Thx for your help , it is working fine now Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: