UddeIM Profile link does not match up with Kunena 4.x

2 years 7 months ago #279946 by tobasium
The UddeIM Component Manager, under the Integration tab, has an option for "User Profile Links" and "Show Thumbnails". There are four choices for each option:

I want to link my kunena 4 profile but it does not work.

The link which is use from uddeim is:

index.php/forum/userid-198?func=profile

But it must be like

index.php/forum/profile/userid-198?func=profile

Is there an option to change these settings?

Thanks a lot.
2 years 7 months ago #280117 by slabbi
From the code:
"index.php?option=com_kunena&func=profile&userid=<id>&itemid=<id>"

As you can see uddeIM uses standard URLs and uses Joomla Framework to translate these links into SEF links.
So when the Joomla configuration is incorrect, these links will be certainly wrong.

In your example you quote "index.php/..." which indicates that your configuration is buggy. "index.php" should never be seen in a correct setup.

uddeIM & uddePF Development
Google+ profile: plus.google.com/u/0/b/117839921924782901705/
CB Language Workgroup
CB 3rd Party Developer
1 year 7 months ago - 1 year 7 months ago #293171 by theITfactor
This is still an issue even with a proper configuration, now on Kunena 5.x.

The link that is being generated is as follows:

/forum/userid-735?func=profile

The correct link should be:

/forum/profile/735-username


EDIT:

Here's the fix:

Change line 125 from this:
$gimmeback = "<a href='".uddeIMsefRelToAbs("index.php?option=com_kunena&func=profile&userid=".(int)$ofanid.$itemid)."'>".$ofaname."</a>";

To this:
$gimmeback = "<a href='".uddeIMsefRelToAbs("index.php?option=com_kunena&view=user&userid=".(int)$ofanid.$itemid)."'>".$ofaname."</a>";

It should be "view=user" instead of "func=profile"
Moderators: beatnantslabbikrileon
Time to create page: 0.371 seconds
Facebook Twitter Google LinkedIn