Home Forum
Welcome, Guest
Username Password: Remember me

Fix for Expose Scroller not working with SEF enabled
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Fix for Expose Scroller not working with SEF enabled

Fix for Expose Scroller not working with SEF enabled 2 years ago #12526


  • Posts:1
  • TheJaker
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
Hello,

I've seen numerous postings on this issue, I found that Joomla's Jroute class does not return the correct URL back; I do not know if this is a JRoute problem or an issue in the expose scroller, but I did come up with a work-around/fix :-D.

In the file mod_exposescroller.php, find the lines:
			case "shadowboxnav":
$Linkref = "<a href="".$largestpic."" rel="shadowbox[exposescroller]" title="".$titlepic."">";
$LinkEndref="</a>";
break;
default: // Off
$Linkref = "";
$LinkEndref= "";
break;
}
}


and then add the following lines just below:

	// hack by *TheJaker* to work-around JRoute issue of not correctly resolving SEF name for Expose component...
// basically we replace the invalid part of the url with one that is recognized :-)
$Linkref = str_replace ( "component/expose/?" , "index.php?option=com_expose&" , $Linkref);
 


Now at least the Expose Scroller module will work with the standard Joomla SEF setting turned on. The fix is quite simple, it replaces the invalid part of the URL with a working one.

Hope this helps!
  • Page:
  • 1
Time to create page: 1.73 seconds