phpBB SEO MOD - topic prefix in SEO URL

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

phpBB SEO MOD - topic prefix in SEO URL

Postby Vogelek23 » Sat Jul 19, 2014 3:02 pm

Hello all,

I have a small/big problem.
I'm using this MOD to serve a topic prefixes in some subforums: https://www.phpbb.com/customise/db/mod/ ... refix_mod/
Above MOD was installed before phpBB SEO MOD.

Is there a method to put the topic prefix together with topic title into the SEO URL? I don't know where is the part of code (of SEO MOD), which generates the topic URL for topic title (example.com/topic-title-tXXXX.html). I want to URL looks like this: example.com/topic_prefix-topic-title-tXXXX.html.
Please for any help.

Regards,
Łukasz
Last edited by Vogelek23 on Fri Jan 01, 2016 3:44 pm, edited 1 time in total.
Vogelek23
 
Posts: 3
Joined: Sat Jul 19, 2014 2:52 pm

Advertisement

Re: phpBB SEO MOD - topic prefix in SEO URL

Postby dcz » Sun Sep 21, 2014 5:22 am

Try replacing :

Code: Select all
$url = preg_replace('`\[.*\]`U','',$url);


with :

Code: Select all
//$url = preg_replace('`\[.*\]`U','',$url);


in phpbb_seo/phpbb_seo_class.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: 21451
Joined: Fri Apr 28, 2006 9:03 pm

Re: phpBB SEO MOD - topic prefix in SEO URL

Postby Vogelek23 » Sun Sep 21, 2014 7:41 am

Thank you for your reply, dear Admin.
However, it seems that you didn't understand me. The "topic_prefix" variable, which i need to add to SEO URL, is saved in a separated cell in the database, not with the "topic_title" cell.

Please look at the example URL: http://www.elvikom.pl/sony-vaio-vpcf23s ... 34663.html
As you can see, the topic prefix is displayed together with topic title, in the topic title link and page header (don't worry about a square brackets, they are added by php code - in the database, the "topic_prefix" column is a clean text).
But if you will look into the address bar or move the pointer over the topic title link, there is only a topic title in SEO URL, without the topic prefix. I need to ADD the topic prefix into the SEO URL like that:
Code: Select all
http://www.elvikom.pl/szukam-wsadu-bios-sony-vaio-vpcf23s1e-pcg-81313m-t34663.html


I hope you will understand me now.
Last edited by Vogelek23 on Fri Jan 01, 2016 3:47 pm, edited 1 time in total.
Vogelek23
 
Posts: 3
Joined: Sat Jul 19, 2014 2:52 pm

Re: phpBB SEO MOD - topic prefix in SEO URL

Postby Vogelek23 » Sun Oct 26, 2014 11:10 am

I didn't resolve this problem yet although many tries. Still no luck, so please for help.
Vogelek23
 
Posts: 3
Joined: Sat Jul 19, 2014 2:52 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Bing [Bot] and 5 guests