To use this website completely, it is necessary to store cookies on your computer.
 

URLs for categories with same name

Started by BurakG, 6 years ago

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

BurakG

6 years ago
Hi Fel,

Since we are an automobile forum, we have several boards with same name which results in SEF as being displayed as ;

.../mazda3/
../mazda31/
../mazda32/  and it continues.

is it possible to seperate the real board name and index number ? for example as ;

.../mazda3/
../mazda3-1/
../mazda3-2/

so that google reconnizes mazda3s separetly ?
Destiny. The design is clearly Ancient ..

http://www.mazdaclubtr.com
http://www.subaruclubtr.com

feline

#1
6 years ago
Yes .. it's possible. There a three places to change in the file PortaMxSEF.php:
Find around line 630:
Code Select

$check = @array_keys($PortaMxSEF['BoardNameList'], $name);
if(!empty($check))
$name .= $PortaMxSEF['BoardNameList']['dupes']++;

replace with:
Code Select

$check = @array_keys($PortaMxSEF['BoardNameList'], $name);
if(!empty($check))
$name .= $PortaMxSEF['spacechar'] . $PortaMxSEF['BoardNameList']['dupes']++;


Find around line 945:
Code Select

$check = @array_keys($PortaMxSEF[$type .'NameList']['name'], $title);
if(!empty($check))
$title .= $PortaMxSEF[$type .'NameList'][strtolower($type) .'dupes']++;


Replace with:
Code Select

$check = @array_keys($PortaMxSEF[$type .'NameList']['name'], $title);
if(!empty($check))
$title .= $PortaMxSEF['spacechar'] . $PortaMxSEF[$type .'NameList'][strtolower($type) .'dupes']++;


At least find around line 1158:
Code Select

$result = trim(str_replace($PortaMxSEF['stripchars'], '', $result));


Replace with:
Code Select

$result = trim(str_replace($PortaMxSEF['stripchars'], '', $result), "\t\r\n\0\x0B .");


Fel
Many are stubborn in relation to the path, a few in relation to the target.

BurakG

#2
6 years ago
Thanks for the info Fel, I will try it asap and let you know about the result :)
Destiny. The design is clearly Ancient ..

http://www.mazdaclubtr.com
http://www.subaruclubtr.com

BurakG

#3
6 years ago
It works :) !!! Thanks ;)
Destiny. The design is clearly Ancient ..

http://www.mazdaclubtr.com
http://www.subaruclubtr.com

feline

#4
6 years ago
Added to the bugtracker .. see https://www.portamx.com/issue/7.0/
Many are stubborn in relation to the path, a few in relation to the target.

BurakG

#5
6 years ago
Thanks  O0
Destiny. The design is clearly Ancient ..

http://www.mazdaclubtr.com
http://www.subaruclubtr.com