- Posts: 23
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- creat thumbnail by width and height. you can input height value on K2 control center
creat thumbnail by width and height. you can input height value on K2 control center
- vanshion
- Topic Author
- Offline
- Junior Member
Less
More
14 years 10 months ago #75410
by vanshion
Replied by vanshion on topic creat thumbnail by width and height. you can input height value on K2 control center
OK, i'm testing now
Lukas said:Well, this is wrong:
if (JRequest::getInt('itemImageS')) {
$imageWidth = JRequest::getInt('itemImageS');
$imageHeight = JRequest::getInt('itemImageS_height');
} else {
$imageWidth = $params->get('itemImageS', '200');
$imageHeight = $params->get('itemImageS_height', '200');
}
should be? :
if (JRequest::getInt('itemImageS')) {
$imageWidth = JRequest::getInt('itemImageS');
} else {
$imageWidth = $params->get('itemImageS', '200');
}
if (JRequest::getInt('itemImageS_height')) {
$imageHeight = JRequest::getInt('itemImageS_height');
} else {
$imageHeight = $params->get('itemImageS_height', '200');
}
p.s. for clear view, am just frontendguy, so php i guess+assemble+tweak ;)
Lukas said:Well, this is wrong:
if (JRequest::getInt('itemImageS')) {
$imageWidth = JRequest::getInt('itemImageS');
$imageHeight = JRequest::getInt('itemImageS_height');
} else {
$imageWidth = $params->get('itemImageS', '200');
$imageHeight = $params->get('itemImageS_height', '200');
}
should be? :
if (JRequest::getInt('itemImageS')) {
$imageWidth = JRequest::getInt('itemImageS');
} else {
$imageWidth = $params->get('itemImageS', '200');
}
if (JRequest::getInt('itemImageS_height')) {
$imageHeight = JRequest::getInt('itemImageS_height');
} else {
$imageHeight = $params->get('itemImageS_height', '200');
}
p.s. for clear view, am just frontendguy, so php i guess+assemble+tweak ;)
Please Log in or Create an account to join the conversation.
- vanshion
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
14 years 10 months ago #75411
by vanshion
Replied by vanshion on topic creat thumbnail by width and height. you can input height value on K2 control center
great, the last method is OK..
thank you.
thank you.
Please Log in or Create an account to join the conversation.
- vtiger
- Offline
- Premium Member
Less
More
- Posts: 83
14 years 10 months ago #75412
by vtiger
Replied by vtiger on topic creat thumbnail by width and height. you can input height value on K2 control center
Great, we can celebrate :) Can you put here that one "simple&real" solution for others?
Then we can delete that our confusing looks like posts?...
l
Then we can delete that our confusing looks like posts?...
l
Please Log in or Create an account to join the conversation.
- vanshion
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
14 years 10 months ago #75413
by vanshion
Replied by vanshion on topic creat thumbnail by width and height. you can input height value on K2 control center
OK,i'll upload a patch on my web...
Lukas said:Great, we can celebrate :) Can you put here that one "simple&real" solution for others? Then we can delete that our confusing looks like posts?...
l
Lukas said:Great, we can celebrate :) Can you put here that one "simple&real" solution for others? Then we can delete that our confusing looks like posts?...
l
Please Log in or Create an account to join the conversation.
- vtiger
- Offline
- Premium Member
Less
More
- Posts: 83
14 years 10 months ago #75414
by vtiger
Replied by vtiger on topic creat thumbnail by width and height. you can input height value on K2 control center
Thanks.
It's how OSS users with mood sometimes can works ;)
Regards,
l
It's how OSS users with mood sometimes can works ;)
Regards,
l
Please Log in or Create an account to join the conversation.
- vanshion
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
14 years 10 months ago #75415
by vanshion
Replied by vanshion on topic creat thumbnail by width and height. you can input height value on K2 control center
what do u mean by OSS users?
then I have uploaded that. everone can download now.
Lukas said:Thanks. It's how OSS users with mood sometimes can works ;)
Regards,
l
then I have uploaded that. everone can download now.
Lukas said:Thanks. It's how OSS users with mood sometimes can works ;)
Regards,
l
Please Log in or Create an account to join the conversation.
- vtiger
- Offline
- Premium Member
Less
More
- Posts: 83
14 years 10 months ago #75416
by vtiger
Replied by vtiger on topic creat thumbnail by width and height. you can input height value on K2 control center
lol OpenSourceSoftware users :)
I missed link here? ? Come on, promote link to your site with solution here...
l
I missed link here? ? Come on, promote link to your site with solution here...
l
Please Log in or Create an account to join the conversation.
- vanshion
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
14 years 10 months ago #75417
by vanshion
Replied by vanshion on topic creat thumbnail by width and height. you can input height value on K2 control center
Oh, i'm sorry that i have a mistake...now it's OK
but i can't delete the administrator.rar
I have to go to bed now..it's dark.
but i can't delete the administrator.rar
I have to go to bed now..it's dark.
Please Log in or Create an account to join the conversation.
- vtiger
- Offline
- Premium Member
Less
More
- Posts: 83
14 years 10 months ago #75418
by vtiger
Replied by vtiger on topic creat thumbnail by width and height. you can input height value on K2 control center
it's same file? btw, thanx
Please Log in or Create an account to join the conversation.
- vtiger
- Offline
- Premium Member
Less
More
- Posts: 83
14 years 10 months ago #75419
by vtiger
Replied by vtiger on topic creat thumbnail by width and height. you can input height value on K2 control center
HI Sébastien,
you want some semi-solution that is somewhere in middle from "original" to "all to params" way . I've got it?
l
you want some semi-solution that is somewhere in middle from "original" to "all to params" way . I've got it?
l
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- creat thumbnail by width and height. you can input height value on K2 control center