3rd Party SEF question

13 years 9 months ago - 13 years 9 months ago #5636 by kram
Hello,

I recently started testing SIMAnswers on my site.
I just found a little bug, that is driving me crazy & was wondering if it would be possible to point me to a solution.

SIMAnswers does use a router.php
All URLS except for two in the menu bar (module) do not work correctly.

In the URL a - is present that is causing the page to load blank.
dashboard/-/63-kram.html
dashboard/-/63-kram.html#myqna

If I remove the /-/ the page loads fine.
dashboard/63-kram.html
dashboard/63-kram.html#myqna

In the router.php file there is a line

else {
$task = '';
$segments[] = '-';
}

If I remove the - the dashboard links work properly, but then the questions do not function.

in router.php

case 'dashboard':
if(isset($query)) {
$segments[] = $query.'-'.JFilterOutput::stringURLSafe(SAHelper::getDisplayName($query));
unset($query);
}
break;

More in routher.php

function SIMAnswersParseRoute( $segments ) {
$vars = array();
$vars = $segments[0];
$vars = $segments[1];
switch($segments[0]) {
case 'dashboard':
if (array_key_exists(2, $segments)) {
$array = explode(":", $segments[2]);
$vars = $array[0];
}
break;

Is there an easy way to remove the - to get things working?

Mark Brindley
www.2large.co.za

Please Log in or Create an account to join the conversation.

13 years 8 months ago #5647 by kram
I am willing to pay for this if it is possible..

Mark Brindley
www.2large.co.za

Please Log in or Create an account to join the conversation.

13 years 8 months ago #5648 by Saka
If it's not exclusive for SEF Advance and if you get the same behavior with built-in SEF then it's probably a question for authors of the component in question.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

13 years 8 months ago #5649 by kram
Hello Saka,

I tried contacting the developer, the reply was basically "it works on my site, this is a bug in SEF ADV"

I then wrote to him a few more times, with no reply.





Mark Brindley
www.2large.co.za

Please Log in or Create an account to join the conversation.

13 years 8 months ago #5650 by Saka
Simply deactivate SEF Advance and see if you get the same with core SEF. Then you will know for sure.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

13 years 8 months ago #5651 by kram
I will do that tonight and get back to you.

Mark Brindley
www.2large.co.za

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch