3rd Party SEF question
- kram
-
Topic Author
- Offline
- New Member
-
14 years 7 months ago - 14 years 7 months ago #5636
by kram
Mark Brindley
www.2large.co.za
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?
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
Last Edit: 14 years 7 months ago by kram.
Please Log in or Create an account to join the conversation.
- kram
-
Topic Author
- Offline
- New Member
-
14 years 7 months ago #5647
by kram
Mark Brindley
www.2large.co.za
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.
- Saka
-
- Offline
- Administrator
-
14 years 7 months ago #5648
by Saka
Emir Sakic
www.sakic.net
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.
- kram
-
Topic Author
- Offline
- New Member
-
14 years 7 months ago #5649
by kram
Mark Brindley
www.2large.co.za
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.
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.
- Saka
-
- Offline
- Administrator
-
14 years 7 months ago #5650
by Saka
Emir Sakic
www.sakic.net
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.
- kram
-
Topic Author
- Offline
- New Member
-
14 years 7 months ago #5651
by kram
Mark Brindley
www.2large.co.za
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.