Bienvenido, Invitado
Nombre de Usuario Contraseña: Recordarme

Wrong link to profiles - Jomsocial + SEF
(1 viendo) (1) Invitado
  • Página:
  • 1
  • 2

TEMA: Wrong link to profiles - Jomsocial + SEF

Wrong link to profiles - Jomsocial + SEF hace 1 año, 5 meses #16758



Hello

When i enable the Joomla! native SEF im getting wrong links to Jomsocial profiles all over the place. (1 module, 2 component, 3 history)

It inserts /photos (slike) in every link which ofcourse, leads to a wrong page.

How could i fix this?

Thanks
  • sinisa
  • DESCONECTADO
  • Visitante
  • Temas: 8
  • Karma: 0
Última Edición: hace 1 año, 5 meses Por sinisa.

Re: Wrong link to profiles - Jomsocial + SEF hace 1 año, 5 meses #16769

I use Joomsocial and the SEF, it works ok.

Can I look your site?
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144

Re: Wrong link to profiles - Jomsocial + SEF hace 8 meses, 1 semana #18993

I'm having the same issue. Trying to click on the profile link on my test site you are not directed to the jomsocial profile, it's inserting random url information.

Link to my test site: testsite.yakangler.com/yaksocial

The test site is password protected please use

username: user
password: user
  • yaksushi
  • DESCONECTADO
  • Visitante
  • Temas: 5
  • Karma: 0

Re: Wrong link to profiles - Jomsocial + SEF hace 8 meses, 1 semana #19008

Hi,

In helper/links.php, try to change:
	function getUserLink($userid) {
$class = kideLinks::getInstance();
if (!(int)$userid || !$class->link) return '';
return JRoute::_($class->link.$userid);
}
 
// BY
 
function getUserLink($userid) {
$params =& JComponentHelper::getParams('com_kide');
$perfil = $params->get('perfil_link');
if ($perfil == 'js') {
require_once(JPATH_ROOT.DS.'components'.DS.'com_community'.DS.'libraries'.DS.'core.php');
return CRoute::_('index.php?option=com_community&view=profile&userid='.$userid);
}
$class = kideLinks::getInstance();
if (!(int)$userid || !$class->link) return '';
return JRoute::_($class->link.$userid);
}
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144
Última Edición: hace 8 meses, 1 semana Por JoniJnm.

Re: Wrong link to profiles - Jomsocial + SEF hace 8 meses, 1 semana #19010

updated your code and it broke the jomsocial template. it might be because I'm using only the module and have hard coded it into the jomsocial template. i sent you a private message with the super admin login info for the test site so you can have a look.
  • yaksushi
  • DESCONECTADO
  • Visitante
  • Temas: 5
  • Karma: 0

Re: Wrong link to profiles - Jomsocial + SEF hace 8 meses, 1 semana #19034

Anyone else having this issue?
  • yaksushi
  • DESCONECTADO
  • Visitante
  • Temas: 5
  • Karma: 0

Re: Wrong link to profiles - Jomsocial + SEF hace 8 meses, 1 semana #19045

Sorry, I forget one line. Try now
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144

Re: Wrong link to profiles - Jomsocial + SEF hace 8 meses #19059

No... Same url in the link I've tested it with both the component and module, both display the wrong link.
  • yaksushi
  • DESCONECTADO
  • Visitante
  • Temas: 5
  • Karma: 0

Re: Wrong link to profiles - Jomsocial + SEF hace 8 meses #19062

So, maybe the problem is in your menus (try to delete cache). With:

require_once(JPATH_ROOT.DS.'components'.DS.'com_community'.DS.'libraries'.DS.'core.php');
return CRoute::_('index.php?option=com_community&view=profile&userid='.$userid);

the URL is given by Jomsocial

Or maybe you use a plugin of system that changes the SEF urls?

--

I have tested in your shoutbox. It works. The old urls can't be fixed, but the new urls (mine in tests) are ok
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144
  • Página:
  • 1
  • 2
Página generada en: 0.42 segundos