You are not logged in.
One of the longest was: "smallpicture_img_20150911_142804-2.jpg"
Hmm, not that long actually.. hehe
So the limit wasn't the issue I think...
I'm also curious about what's wrong with a varchar. It should be working fine I think.
Thanks for thinking with me! I have found the problem. In the module there was set a varchar (255) for the upload field. I think the file names were too long becouse of the prefix. I changed it to text and after that everything was working perfectly
It think varchar (255) is the default setting for upload fields. Maybe it's good to consider an extended limit on the default upload field in module builder, becouse pictures taken with a phone usually have long file names with a date and that kind of stuff. (If it's not the default setting: I've said nothing )
Allright, thanks! I've used the method you mentioned but it's still not working. I am displaying content from a module by the way. Maybe that makes a difference?
This is what I have:
<ul class="bxslider">
<?
$homeSlider = new HomeSlider();
$sliders = $homeSlider->getApproved(3);
foreach ($sliders as $slideItem) {
$image = $slideItem['slide_image'];
$thumb_image = BigTree::prefixFile($image, "thumbslide_");
?>
<li>
<div class="wrapper">
<img src="<?=$thumb_image?>">
<div class="slideDescription">
<span class="redSpan"><?=$slideItem['slide_heading']?> |</span>
<span class="graySpan"><?=$slideItem['slide_subheading']?></span>
<p><?=$slideItem['slide_description']?></p>
<a href="<?=$slideItem['slide_link']?>" alt=""><?=$slideItem['button_text']?></a>
</div>
</div>
</li>
<?}
?>
</ul>
Hello,
Thanks for the quick response! When I look in Developer -> Site Status I don't see any errors. Only a warning from the favicon.
Do I need to make extra fields in the module table for cropped images? I don't see a link to a cropped image in the database table either. What does "preview prefix (for forms)" do by the way? do I need to set something there? And does it matter what I set?
Thank you in advance.
Hello,
I've been trying to use cropped images on my website for a slider on the homepage. But when I want to display an image, everything is black. I also can't see a crop preview when I upload a file, but when I hit "upload" I don't have any errors or something... And there is a (black) image file uploaded in the right directory .
Do you guys know what I did wrong?
Thanks for the answer. Allright, sounds good! I'm looking forward to it. Luckely you guys are very active on the forum.
Helloi,
I've been using bigtree for a while now and it's getting better and better .
But one thing I really hope to see in the future as a beginning devolopper, are tutorials of the basic principles in Bigtree. The workflow and what's the best way to setup your templates and modules in the most common situations. Like how to show content from a callout or module, how to make a basic photo gallery (with crops and thumnails) or a routed tempate example.
Would be great to have for the new bigtree users.
I don't know if this is the right place for my post, but it's a kind of a feature I thought.
Thank you in advance.
If you setup a crop without a prefix it'll replace the originally uploaded photo. When we're worried about keeping the original photo for whatever reason, we usually just setup a thumbnail to 2000x2000 to prevent the ridiculously large files from taking up space.
I was having the same issue. Thanks for the solution! I think it would be good to mention that in the description of the prefix field like: "when not filled in, we only upload the cropped size of your picture" .
No worries, it was pretty quick in my opinion. Thanks for the response and adding it to the queue, that's reall cool! We're looking forward to it.
Hello,
Over the last few months we have been very pleased with Bigtree. An idea popped into my mind today which could save a lot of time in styling the websites. Often we have to search for an image to use as placholder, then upload another picture over and over again, which causes a lot of server bandwidth.
It would be awesome if we can set a placeholder image if there is no picture uploaded. I think it would be the best to have that option when you create your resources. On the same place where you can set the cropping settings. Or maybe as a global setting for the entire website.