- Posts: 12
- Thank you received: 1
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
This category contains miscellaneous, uncategorised third-party extensions (e.g. JomSocial, Community Builder, etc.) relating to older versions of Kunena that are no longer supported.
This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.
The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.
This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.
The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.
Question Kunena 1.6
15 years 6 months ago - 15 years 6 months ago #68587
by slabbi
Kunena 1.6 was created by slabbi
In order to make uddeIM compatible to Kunena 1.6 I need following information:
1) In Kunena 1.5 a link to a users profile was
"index.php?option=com_kunena&task=showprf&func=fbprofile&userid=ID"
How does it look like in Kunena 1.6?
2) Where are the profile pictures stored?
I assume "/media/avatars/" name of avatar taken from database. Is the size still fine or do I have to resize the picture to a smaller one? What is the site of the pictures and when there are already resized ones what is the size of these?
3) Where do I find the picture when no avatar has been selected? In Kunena 1.5 it was:
"/media/kunena/attachments/legacy/avatars/s_nophoto.jpg". Is it now: "/media/avatars/s_nophoto.jpg"?
4) "_fb_users" is "_kunena_users", correct?
1) In Kunena 1.5 a link to a users profile was
"index.php?option=com_kunena&task=showprf&func=fbprofile&userid=ID"
How does it look like in Kunena 1.6?
2) Where are the profile pictures stored?
I assume "/media/avatars/" name of avatar taken from database. Is the size still fine or do I have to resize the picture to a smaller one? What is the site of the pictures and when there are already resized ones what is the size of these?
3) Where do I find the picture when no avatar has been selected? In Kunena 1.5 it was:
"/media/kunena/attachments/legacy/avatars/s_nophoto.jpg". Is it now: "/media/avatars/s_nophoto.jpg"?
4) "_fb_users" is "_kunena_users", correct?
Last edit: 15 years 6 months ago by slabbi.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #68602
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re: Kunena 1.6
Hello,
1°) In Kunena it's looks like that "index.php?option=com_kunena&func=profile" if you want access to your own profile
2°) The avatars are stored into /media/kunena/avatars/users, each user avatar has an name like that avatar62.png where 62 is the userid , for avatars the best way is to use KunenaUser class
3°) The avatar by default is in /media/kunena/avatars/nophoto.jpg
4°) Yes, it's correct
1°) In Kunena it's looks like that "index.php?option=com_kunena&func=profile" if you want access to your own profile
2°) The avatars are stored into /media/kunena/avatars/users, each user avatar has an name like that avatar62.png where 62 is the userid , for avatars the best way is to use KunenaUser class
3°) The avatar by default is in /media/kunena/avatars/nophoto.jpg
4°) Yes, it's correct
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #68606
by fxstein
We love stars on the Joomla Extension Directory .
Replied by fxstein on topic Re: Kunena 1.6
I strongly recommend you use the Kunena API classes to get to all of that. If you hard code URLs and image paths, the integration will break with every change that happens. We have wrapped all of that into classes and function calls that get you that information dynamically.
We love stars on the Joomla Extension Directory .
Please Log in or Create an account to join the conversation.
15 years 6 months ago #68625
by slabbi
Replied by slabbi on topic Re: Kunena 1.6
1) No I want to access a certain user's profile, not my own.
2) Currenlty I use
$filenameg stores the avatar path (assuming that the DB stores avatars like "gallery/xxx.jpg" or "users/xy.png".
3) "/media/kunena/avatars/nophoto.jpg" is correct? I checked the source and it looks like "/media/avatars/nophoto.jpg" and "/media/avatars/s_nophoto.jpg" for a smaller one.
Have nophoto.jpg and a users avatar the same size? Or s_nophoto.jpg and a users avatar?
How do I use this class? Is there any example available?
4) Ok, that was easy.
2) Currenlty I use
Code:
$sql="SELECT avatar FROM #__kunena_users WHERE userid=".(int)$ofanid." LIMIT 1";
$database->setQuery($sql);
$ofanavatar=$database->loadResult();
$filenameglocal = "/media/avatars/".$ofanavatar;
$filenameglive = uddeIMgetPath('live_site') ."/media/avatars/".$ofanavatar;
$filename2local = "/media/avatars/s_nophoto.jpg";
$filename2live = uddeIMgetPath('live_site') ."/media/avatars/s_nophoto.jpg";
$filenameg stores the avatar path (assuming that the DB stores avatars like "gallery/xxx.jpg" or "users/xy.png".
3) "/media/kunena/avatars/nophoto.jpg" is correct? I checked the source and it looks like "/media/avatars/nophoto.jpg" and "/media/avatars/s_nophoto.jpg" for a smaller one.
Have nophoto.jpg and a users avatar the same size? Or s_nophoto.jpg and a users avatar?
How do I use this class? Is there any example available?
4) Ok, that was easy.
Please Log in or Create an account to join the conversation.
15 years 6 months ago - 15 years 5 months ago #68636
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re: Kunena 1.6
1°) I don't know what you want do with this profile link, but it's like that : h:index.php?option=com_kunena&func=profile&userid=64
2°) Use something like that :
If the user has set integration for avatars with Jomsocial, this will return the avatar from Jomsocial...
3°) the path is right this one : /media/kunena/avatars/nophoto.jpg, but you don't need to know the path if the user has no avatar kunena get nophoto.jpg itself
2°) Use something like that :
Code:
$kunena_user = KunenaFactory::getUser ( ( int ) $userid );
$avatarlink = $kunena_user->getAvatarLink ( '', '72', '72' );
return CKunenaLink::GetProfileLink ( $userid, $avatarlink, $username );
If the user has set integration for avatars with Jomsocial, this will return the avatar from Jomsocial...
3°) the path is right this one : /media/kunena/avatars/nophoto.jpg, but you don't need to know the path if the user has no avatar kunena get nophoto.jpg itself
I don't provide support by PM, because this can be useful for someone else.
Last edit: 15 years 5 months ago by fxstein. Reason: code formatting
Please Log in or Create an account to join the conversation.
15 years 6 months ago #68704
by slabbi
Replied by slabbi on topic Re: Kunena 1.6
Thanks, Kunena 1.6 support is available in the trunk, now.
Until uddeIM 2.2 is released this version has to be pulled from the svn on Joomlacode.org:
www.joomlapolis.com/component/option,com...w/id,51170/catid,25/
Until uddeIM 2.2 is released this version has to be pulled from the svn on Joomlacode.org:
www.joomlapolis.com/component/option,com...w/id,51170/catid,25/
The following user(s) said Thank You: fxstein
Please Log in or Create an account to join the conversation.
Time to create page: 0.252 seconds