Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.
Please keep in mind:
Home page? Or User?
Not everything needs to be a setting. In your theme CSS look for #home-cover, if it's not there simply add something like the following (give or take on the padding). Then just define the size manually. Ideally if you use an image you won't want the gradient...
Code:#home-cover { width: 100%; padding: 100px 0 100px 0; background-image: url(LINK HERE'); color: #FFF; }
CHV.obj.config = {
image : {
max_filesize: "<?php echo CHV\getSetting('upload_max_filesize_mb') . ' MB'; ?>"
},
user: {
avatar_max_filesize: "1 MB",
background_max_filesize: "1 MB"
}
};
if(user_file.size > CHV.obj.config.user.avatar_max_filesize.getBytes()) {
PF.fn.growl.call(PF.fn._s("Please select a picture of at most %s size.", CHV.obj.config.user.background_max_filesize));
return;
}
Yeah... I noticed this tidbit but even changing that I'm still having trouble getting it to upload files over 2mb.Is hardcoded in the js and in the backend.
CHV.fn.uploader = {
options: {
image_types: ["png", "jpg", "jpeg", "gif", "bmp"],
max_filesize: "2 MB"
},
if(typeof CHV.obj.config !== "undefined" && typeof CHV.obj.config.image !== "undefined" && CHV.obj.config.image.max_filesize !== "undefined") {
this.options.max_filesize = CHV.obj.config.image.max_filesize;
}
CHV.obj.config = {
image : {
max_filesize: "<?php echo CHV\getSetting('upload_max_filesize_mb') . ' MB'; ?>"
},
user: {
avatar_max_filesize: "1 MB",
background_max_filesize: "1 MB"
}
};
$image_upload = Image::upload($source, $user_images_path, ($type == 'avatar' ? 'av' : 'bkg').'_' . strtotime(G\datetimegmt()), ['max_size' => G\get_bytes('2 MB')]);