connectr
02-12-2009, 04:59 AM
hi guys,
i know this is prob a bit pradantic, but could someone point me in the right direction where i can remove the -id's from the sef urls? i had a look in includes/vba_dyna_functions.php, as per this post http://www.vbadvanced.com/forum/showthread.php?t=25549&highlight=remove+ids+sef+urls and i can see where the id is being set (i think)
line 608 i change this:
return str_replace(' ', '-', preg_replace("/[^a-z_0-9 -]/i", '', strtolower(html_entity_decode($text)))) . '-' . $id;
to this:
return str_replace(' ', '-', preg_replace("/[^a-z_0-9 -]/i", '', strtolower(html_entity_decode($text))));
Then further down on line 629, i changed this:
$link .= $vba_options['dyna_spider_cattext'] . '-' . $cats['catid'] . '/';
to this:
$link .= $vba_options['dyna_spider_cattext'] . '/';
Unfortuntely that does seem to have any effect. It feels like i am missing something obvious?
Any suggestions would be much appreciated..
Cheers,
Chris
i know this is prob a bit pradantic, but could someone point me in the right direction where i can remove the -id's from the sef urls? i had a look in includes/vba_dyna_functions.php, as per this post http://www.vbadvanced.com/forum/showthread.php?t=25549&highlight=remove+ids+sef+urls and i can see where the id is being set (i think)
line 608 i change this:
return str_replace(' ', '-', preg_replace("/[^a-z_0-9 -]/i", '', strtolower(html_entity_decode($text)))) . '-' . $id;
to this:
return str_replace(' ', '-', preg_replace("/[^a-z_0-9 -]/i", '', strtolower(html_entity_decode($text))));
Then further down on line 629, i changed this:
$link .= $vba_options['dyna_spider_cattext'] . '-' . $cats['catid'] . '/';
to this:
$link .= $vba_options['dyna_spider_cattext'] . '/';
Unfortuntely that does seem to have any effect. It feels like i am missing something obvious?
Any suggestions would be much appreciated..
Cheers,
Chris