Hi chefnelone,
Try this step:
1. Follow modification from your previous problem.
2. Find this code:
if (preg_match("/^[0-9]/", $uri_array_original[$l_array]) AND ! preg_match("/[a-zA-Z]+/", $uri_array_original[$l_array]))
{
$show_last_number = $l_array;
}
Then change to:
if (preg_match("/^[0-9]/", $uri_array_original[$l_array]) AND ! preg_match("/[a-zA-Z]+/", $uri_array_original[$l_array]))
{
$show_last_number = $l_array;
$value_last_number = $uri_array_original[$l_array];
}
3. Find this code:
$str .= $delimiter.$wrapper_inline[0].anchor($new_segment_url, ucwords($val_name)).$wrapper_inline[1];
$k++;
Then change to:
if ($i == $number_array-2 && $show_last_number > 0)
{
$new_segment_url = $new_segment_url.$value_last_number;
}
$str .= $delimiter.$wrapper_inline[0].anchor($new_segment_url, ucwords($val_name)).$wrapper_inline[1];
$k++;
4. For the last step, also find this code:
$str .= $delimiter.$wrapper_inline[0].anchor($segment, ucwords($value)).$wrapper_inline[1];
Then change to:
if ($i == $number_array-2 && $show_last_number > 0)
{
$segment = $segment.$value_last_number;
}
$str .= $delimiter.$wrapper_inline[0].anchor($segment, ucwords($value)).$wrapper_inline[1];
It’s such a long step for modification but I hope you can have URL as expected.
Ardinoto W.