Kunena 7.0.11 & Kunena 6.4.16 – Security Updates Released and K7.1 in RC1 2

The Kunena team has announce the arrival of three simultaneous security release : K6.4.16, K7.0.11 and K7.1 RC2. Just a reminder K6.4.16 receives only securities fixes untill end of 2026, so it's advised for users to upgrade to K7.0.11. K7.0.11 is the last release of the K7.0 because it's replaced by K7.1 branch with the stable release in the corner. The translations for K7.1 on crowdin.com/project/kunena-forum-7-1 needs to be checked or improved becasue it has been generated by TM (Translation Machine).

Solved to big avatar in reply screen

More
11 years 5 months ago #165055 by ruud
Replied by ruud on topic to big avatar in reply screen
Hi, just had a look at the code (I'm not a developer so bear with me :))

in file components/com_kunena/template/crypsis/layouts/topic/edit/history/default.php

replace
Code:
$useravatar = $profile->getAvatarImage('img-polaroid', 'profile');
with
Code:
$useravatar = $profile->getAvatarImage('img-polaroid', 'post');

fixes it (although I don't know what it might possibly break, as I do not understand the 'profile' parameter...
this is the function that is called:
Code:
public function getAvatarImage($class = '', $sizex = 'thumb', $sizey = 90)

so I guess 'profile´ is a variable holding the 200px (as 'post' does 144px, 'welcome' does 72px, 'list' does 36px)

sharing = caring
The following user(s) said Thank You: Josh

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #165056 by ruud
Replied by ruud on topic to big avatar in reply screen
and if you want to make the avatar size for the topic 'consistent'

in file: components/com_kunena/template/crypsis/layouts/user/profile/default.php
replace
Code:
$avatar = $user->getAvatarImage('img-polaroid', 120, 120);
with
Code:
$avatar = $user->getAvatarImage('img-polaroid', 'post');

sharing = caring

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #165062 by 810
Replied by 810 on topic to big avatar in reply screen
strange that blue eagle, always loaded the right size, its the same line.


But I will change it to post.

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #165065 by 810

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #165067 by ruud
Replied by ruud on topic to big avatar in reply screen

810 wrote: please try github.com/Kunena/Kunena-Forum/pull/3113

Hi, just tested the parts I could test, looks okay to me :)

One question:
there are different classes used for the avatar in the various places:
* img-rounded
* img-thumbnail
* img-polaroid

For ease of styling it would be better to only have one class for all of them.
That would also make the look and feel more consistent :) Because the size of the images is variable, there is in my opinion no need for different classes...

Would even be an idea to have this class as a variable in the backend? That is the way e.g. Easyprofile is working. I use cjblog on my site and the avatar is set to 'img-avatar'. In Easyprofile I can configure to also use 'img-avatar': that way I have a consistent look and feel without changing css etc. Just a though :)

sharing = caring

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #165079 by Josh
Replied by Josh on topic to big avatar in reply screen
Agreed, either a single class or a option in the backend to change it would work great. People often are not inclined to mod php files to change a class. ;) Styling a existing class seems a bit easier even if some styling has to be overridden.
The following user(s) said Thank You: ruud

Please Log in or Create an account to join the conversation.

Time to create page: 0.137 seconds