I am sure this is fairly simple but unfortunately my limited coding ability is failing me and hope someone on here can help.
I am running Joomla 1.5, Virtuemart 1.1.9 and the component concerned is JD Testimonials. SEF is turned on.
This is the code that I need to fix:
$uri = $router->build('index.php?option=com_jdtestimonials&Itemid='.$this->Itemid.'&order_id='.$order_id);
$url = JURI::root().str_replace('/administrator/', '', $uri->toString());
$link = '<a href="'.$url.'">'.$url.'</a>';
This is the output it is giving:
http://www.uniqbuy.com/electronics//electronicstestimonials.html?order_id=109
What I need is:
http://www.uniqbuy.com/electronics/testimonials.html?order_id=109
Alternatively, if someone could comment the code with what each line is doing, I can have a go at correcting it. I am thinking maybe this might do something but unfortunately, it is very difficult to test:
$url = JURI::root().str_replace('/electronics/administrator/', '', $uri->toString());
I have included the full .php file if it helps.sendreminder.class.php