Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

sobi2 sef url not working
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: sobi2 sef url not working

Re: sobi2 sef url not working 10 years, 6 months ago #45051

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

You would need to contact Sobi2 authors to add the JRoute::_() function call to the code where the button gets generated, or you could make the modification yourself.
We could also make the modification for you as a paid support service, for pricing please see: www.artio.net/e-shop/support-services/joomla-support-1h
ARTIO Support Team
The topic has been locked.

Re: sobi2 sef url not working 10 years, 6 months ago #45055

Your product is supposed to do converting sobi2 URLs to SEF url.
You should have already announced this missing feature for example saying that
some SOBI2 urls need special treatment.
It seems that your product is not capable of doing this.
If ı knew that this was missing in the product, then maybe I wouldn't have bought your product .
I don't actually find it very elegant to ask an extra price for this.

If you tell me what to do in details, i prefer doing it myself.
The topic has been locked.

Re: sobi2 sef url not working 10 years, 6 months ago #45057

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

I don't think this is a missing feature in our product, as all the standard links are converted to SEF correctly. The links in JavaScript functions require support from the component itself and please understand that we cannot fix 3rd party components. JoomSEF converts to SEF only the URLs that are handled by Joomla, which is not the case for this type of links.

You would need to find the locations in the Sobi2 source code where the HTML code for the button gets generated and process the URL with the JRoute::_() function there. I can't be any more specific than that because Sobi2 is not our component, so I don't know its source code. I think the best option for you is to contact Sobi2 developers to fix the Sobi2 code to support SEF correctly.
ARTIO Support Team
The topic has been locked.

Re: sobi2 sef url not working 10 years, 6 months ago #45073

I realized that there is already a function implemented for sef in sobi2.

It is th "sef" function in config.class.php in sobi2 :

function sef ( $url )
{
$config = & sobi2Config::getInstance();
if ( $config->key( 'general', 'extended_menu', true ) && class_exists( 'JURI' ) ) {
$url = $config->itemid( $url );
}
if ( $config->key( 'frontpage', 'sef_on', true ) ) {
if ( class_exists( 'JURI' ) ) {
$url = str_replace( '&', '&', $url );
$uri = JURI::getInstance();
$prefix = $uri->toString( array( 'scheme' , 'host' , 'port' ) );
$JURL = $prefix . JRoute::_( $url );
return $JURL;
}
else {
return sefRelToAbs( $url );
}
}
else {
return $config->liveSite . '/' . $url;
}
}

you need to call this function as follows :
inside sobi2 :
$href=$config->sef($href);
outside sobi2 :
$href=$config->sef($href);

There is no need to implement a new functionality.
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty