Welcome, Guest
Username: Password: Remember me

TOPIC: URL with sh404SEF

URL with sh404SEF 7 years 6 months ago #3921

  • BERANGER
  • BERANGER's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
Hello!

Can use JO K2 Auto Facebook with sf404SEF?

Because when I use your module that generates a URL of this type on Facebook:
http://www.velo-ouest.com/resultats/item/5370-landivisiau-minimes.html (-> Error 404)
I would like this URL:
http://www.velo-ouest.com/saison-2016/resultats-2016/landivisiau-minimes.html

Can you help me?
Thank you.

Sorry for my English.
Last Edit: 7 years 6 months ago by BERANGER.
The administrator has disabled public write access.

URL with sh404SEF 7 years 6 months ago #3922

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello BERANGER
Can you send me joomla admin via contact form? So we can check and help you
Best regards
Bach Pham
The administrator has disabled public write access.

URL with sh404SEF 7 years 6 months ago #3923

  • BERANGER
  • BERANGER's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
Ok, I sent an email.

Thank you.
The administrator has disabled public write access.

URL with sh404SEF 7 years 6 months ago #3925

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello BERANGER
We have fixed the problem and now it work fine. Please help me check it again
Thank you for usin gour products
Best regards
Bach Pham
The administrator has disabled public write access.
The following user(s) said Thank You: BERANGER

URL with sh404SEF 7 years 6 months ago #3926

  • BERANGER
  • BERANGER's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
:woohoo: Thank you for your help , efficient and fast support! Convenience. What have you changed so that it works ?
The administrator has disabled public write access.

URL with sh404SEF 7 years 6 months ago #3927

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello
You can see code changed in file plugins/system/jo_k2_autopost_facebook/jo_k2_autopost_facebook.php and go to line 128-135 and changed
if(JPATH_BASE == JPATH_ADMINISTRATOR) {
JFactory::$application = JApplication::getInstance('site');
}
$article_url = JRoute::_(K2HelperRoute::getItemRoute($id_slug, $cat_slug));
if(JPATH_BASE == JPATH_ADMINISTRATOR) {
JFactory::$application = JApplication::getInstance('administrator');
}
To
$article_url = JRoute::_(K2HelperRoute::getItemRoute($id_slug, $cat_slug));

Best regards
Bach Pham
The administrator has disabled public write access.
Time to create page: 0.055 seconds