hierarchie problem in phpbb-seo-advanced mod rewrite

Discussions and support about the different URL Rewriting techniques for phpBB2.

Moderator: Moderators

hierarchie problem in phpbb-seo-advanced mod rewrite

Postby drsyntax » Wed Oct 25, 2006 3:21 pm

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
drsyntax
 
Posts: 9
Joined: Wed Oct 25, 2006 3:14 pm

Advertisement

Postby dcz » Wed Oct 25, 2006 4:15 pm

And welcome :D

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 ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21391
Joined: Fri Apr 28, 2006 9:03 pm

Postby drsyntax » Wed Oct 25, 2006 4:51 pm

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 :D
drsyntax
 
Posts: 9
Joined: Wed Oct 25, 2006 3:14 pm

Postby dcz » Thu Oct 26, 2006 8:49 am

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

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: Select all
               $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: Select all
// 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: Select all
               $forum = '<a href="' . append_sid('viewforum.'.$phpEx.'?' . POST_FORUM_URL . '=' . $similar['forum_id']) .'" class="forumlink">' . $similar['forum_name'] . '</a>';


after add :
Code: Select all
// 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 ;)

Then for UTF-8, please read this thread and we talk about the additional changes there ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21391
Joined: Fri Apr 28, 2006 9:03 pm

Postby drsyntax » Thu Oct 26, 2006 10:13 am

Image

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
drsyntax
 
Posts: 9
Joined: Wed Oct 25, 2006 3:14 pm

Postby dcz » Thu Oct 26, 2006 2:58 pm

I think I got it now :

Find :

Code: Select all
// 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: Select all
   // 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 ;)

And I forgot to post the link about the UTF-8 thread : http://boards.phpbb-seo.com/phpbb-mod-r ... 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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21391
Joined: Fri Apr 28, 2006 9:03 pm

Postby drsyntax » Thu Oct 26, 2006 3:26 pm

Thx it is working now , thank you very much for your help.
drsyntax
 
Posts: 9
Joined: Wed Oct 25, 2006 3:14 pm

Postby drsyntax » Mon Oct 30, 2006 5:46 pm

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.
drsyntax
 
Posts: 9
Joined: Wed Oct 25, 2006 3:14 pm

Postby dcz » Mon Oct 30, 2006 6:13 pm

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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21391
Joined: Fri Apr 28, 2006 9:03 pm

Postby drsyntax » Tue Oct 31, 2006 1:16 pm

Oh , tge lite board has its functions.php

Thx for your help , it is working fine now :D
drsyntax
 
Posts: 9
Joined: Wed Oct 25, 2006 3:14 pm


Return to phpBB2 mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests