Author Topic: 3rd Party SEF question  (Read 2084 times)

kram

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Schoolguide - South African Schools Search Compare Review
3rd Party SEF question
« on: 18 August 2010, 21:41 »
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['uid'])) {
            $segments[] = $query['uid'].'-'.JFilterOutput::stringURLSafe(SAHelper::getDisplayName($query['uid']));
            unset($query['uid']);
         }
         break;

More in routher.php

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

Is there an easy way to remove the - to get things working?
« Last Edit: 18 August 2010, 21:55 by kram »

kram

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Schoolguide - South African Schools Search Compare Review
Re: 3rd Party SEF question
« Reply #1 on: 22 August 2010, 23:44 »
I am willing to pay for this if it is possible..

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,500
    • View Profile
    • Sakic.Net
Re: 3rd Party SEF question
« Reply #2 on: 23 August 2010, 01:37 »
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.

kram

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Schoolguide - South African Schools Search Compare Review
Re: 3rd Party SEF question
« Reply #3 on: 23 August 2010, 07:06 »
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.





Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,500
    • View Profile
    • Sakic.Net
Re: 3rd Party SEF question
« Reply #4 on: 23 August 2010, 09:23 »
Simply deactivate SEF Advance and see if you get the same with core SEF. Then you will know for sure.

kram

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Schoolguide - South African Schools Search Compare Review
Re: 3rd Party SEF question
« Reply #5 on: 23 August 2010, 09:39 »
I will do that tonight and get back to you.

kram

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Schoolguide - South African Schools Search Compare Review
Re: 3rd Party SEF question
« Reply #6 on: 23 August 2010, 20:22 »
Hello Saka,

I have disabled SEF ADV and the links work as expected.

The core SEF URLS are

dashboard/-/63-kram.html
dashboard/-/63-kram.html#myqna

When I turn SEF ADV Back On
The above links return blank pages.
The only way to view the content is to remove the /-/

Can this be corrected with SEF ADV?

Thanks in advance...

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,500
    • View Profile
    • Sakic.Net
Re: 3rd Party SEF question
« Reply #7 on: 23 August 2010, 21:00 »
Please send the access info on mail and I will have a look.

kram

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Schoolguide - South African Schools Search Compare Review
Re: 3rd Party SEF question
« Reply #8 on: 24 August 2010, 21:56 »

Thanks, I have sent you details requested.

kram

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Schoolguide - South African Schools Search Compare Review
Re: 3rd Party SEF question
« Reply #9 on: 28 August 2010, 18:19 »
Hi,

have not heard back from you, did you recieve my email with the details you requested?

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,500
    • View Profile
    • Sakic.Net
Re: 3rd Party SEF question
« Reply #10 on: 28 August 2010, 22:04 »
Yes. Will have a look soon.

kram

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Schoolguide - South African Schools Search Compare Review
Re: 3rd Party SEF question
« Reply #11 on: 28 August 2010, 23:00 »
Thanks mate ... I appreciate your reply :)

mrmckeen

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • BarkleyAndPaws
Re: 3rd Party SEF question
« Reply #12 on: 15 May 2011, 15:15 »
Was a solution for this ever found?  I'm having the same issue...

Thanks very much!

kram

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Schoolguide - South African Schools Search Compare Review
Re: 3rd Party SEF question
« Reply #13 on: 15 May 2011, 21:02 »
Yes Emir did help me with a modified router.php file.

Email me and ill send you what I have.

Not sure if it will work with the latest version tho...