Change avatar size
Change avatar size
12 years 2 months ago - 12 years 2 months ago
Hi there
Thanks for some nice templates. I bought two but ended up using this one
I've done quite a lot of customizing on this template. Just to make it more clean and simple. I will also try to make to responsive design work better, as there are quite a lot of errors. However, my question goes:
Is there a way to change the avatar image size from 90x90px to 100x100px? I've been through all css files but can't figure it out.
Greetings from Denmark.
Thanks for some nice templates. I bought two but ended up using this one
I've done quite a lot of customizing on this template. Just to make it more clean and simple. I will also try to make to responsive design work better, as there are quite a lot of errors. However, my question goes:
Is there a way to change the avatar image size from 90x90px to 100x100px? I've been through all css files but can't figure it out.
Greetings from Denmark.
Last edit: 12 years 2 months ago by ntstore.
Please Log in or Create an account to join the conversation.
Re: Change avatar size
12 years 2 months ago
Hi Grubbe,
Thanks for used our templates. If you want to change the avatar image size, you can use the some CSS rules to increase image size. Please provide us the page you want to change image avatar size, we will help you find the solution.
Regards
Thanks for used our templates. If you want to change the avatar image size, you can use the some CSS rules to increase image size. Please provide us the page you want to change image avatar size, we will help you find the solution.
Regards
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore
Email: 9themestore@gmail.com
Twitter: @9themestore
Please Log in or Create an account to join the conversation.
Re: Change avatar size
12 years 2 months ago
Thanks for a quick answer. The page url is:
www.musikipedia.dk/debat
And the specific place for the avatar to be changed is in the user profile shown to the left of each post.
www.musikipedia.dk/debat
And the specific place for the avatar to be changed is in the user profile shown to the left of each post.
Please Log in or Create an account to join the conversation.
Re: Change avatar size
12 years 2 months ago - 12 years 2 months ago
Hi,
Open the style.css file in the "[your root]/templates/musictheory/css/" path. After paste the below CSS rule to the bottom that file.
Hope this helps.
Open the style.css file in the "[your root]/templates/musictheory/css/" path. After paste the below CSS rule to the bottom that file.
Code:
body #Kunena .kprofile-left .kavatar a img.kavatar {
width: 100px;
}
Hope this helps.
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore
Email: 9themestore@gmail.com
Twitter: @9themestore
Last edit: 12 years 2 months ago by ntstore.
Please Log in or Create an account to join the conversation.
Re: Change avatar size
12 years 2 months ago - 12 years 2 months ago
Thanks. It helped - sort of:
With the solution now, the avatar images is automatically reduced in size to 90x90px and after that the 90x90px images is enlarged to 100x100px. That makes the image quality poor. What I really need, is the image resizing code (wherever it may be) to resize to 100x100px instead gf 90x90px.
Sorry if I'm a bit unclear
With the solution now, the avatar images is automatically reduced in size to 90x90px and after that the 90x90px images is enlarged to 100x100px. That makes the image quality poor. What I really need, is the image resizing code (wherever it may be) to resize to 100x100px instead gf 90x90px.
Sorry if I'm a bit unclear
Last edit: 12 years 2 months ago by Grubbe.
Please Log in or Create an account to join the conversation.
Re: Change avatar size
12 years 2 months ago - 12 years 2 months ago
Hi Grubbe,
We found a solution for you but you should hack to code of the Kunena component. Please follow these below steps:
1. Open the avatar.php file in the "[your root]/libraries/kunena/integration" path.
2. Change the image size in below php code section.
3. Save file and try to upload an other avatar.
Hope this helps
We found a solution for you but you should hack to code of the Kunena component. Please follow these below steps:
1. Open the avatar.php file in the "[your root]/libraries/kunena/integration" path.
2. Change the image size in below php code section.
Code:
public function getSize($sizex=100, $sizey=100) {
$size = new StdClass();
$size->x = intval($sizex);
$size->y = intval($sizey);
if (!intval($sizex)) {
$template = KunenaFactory::getTemplate();
$name = ucfirst(strtolower($sizex));
$size->x = intval($template->params->get('avatarSizeX'.$name, 100));
$size->y = intval($template->params->get('avatarSizeY'.$name, 100));
}
return $size;
}
3. Save file and try to upload an other avatar.
Hope this helps
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore
Email: 9themestore@gmail.com
Twitter: @9themestore
Last edit: 12 years 2 months ago by ntstore.
Please Log in or Create an account to join the conversation.
Time to create page: 0.248 seconds