#1 Re: Bug Reports » Quickly edit template when editing homepage content » January 30, 2019 3:53am

timbuckingham wrote:

Thanks for the screenshot! I just pushed a fix for this to 4.3-devel branch on GitHub.

Awesome. Thanks smile

#2 Developer Help » BigTree 4.4 update not showing up? » January 30, 2019 3:43am

Terrra-Robin
Replies: 2

Hello,

Since the 4.4 update was released, I haven't seen any update messages in my Bigtree 4.3.x installations.
I also did not see any information about how to update to 4.4. Does it require a manual installation or do I need to be a bit more patient wink
Excited to play around with the latest version.

Thanks in advance!

#3 Re: Feature Requests » Get all images inside a resource folder » December 20, 2018 12:19pm

timbuckingham wrote:

Thinking about this more I think it may work better as a custom field type rather than being core to the Photo Gallery. You could specify crops in the Photo Gallery that aren't available in file manager images and we'd have to make new ones on submit. Then it loses the tie to the file manager folder so new things added there wouldn't update in your photo gallery field. In the use case of always pulling photos from a folder in the file manager, I think making a dropdown field type that lets you pick a folder from the file manager would be the way to go. Then on your front end template you could call BigTreeAdmin::getContentsOfResourceFolder to grab the stuff in the folder and draw it.

I'm tracking this issue in GitHub as well in case I can think of a way to do this effectively! https://github.com/bigtreecms/BigTree-CMS/issues/353

Sounds great! Thanks for putting it in motion! Just grabbing a folder could be a nice and simple solution, but then you might be getting in trouble if you want to set pictures in a particular order. The order could be changed in the folder to fix it, but then you might have to switch back and forth many times and always have to put your files in a particular folder. Especially for image carousels the order is important. And it would be nice for the end user to have the power over how many pictures he wants to see. I think in the ideal world a file manager gallery would be the most elegant solution, but that might be quite a technical and time consuming challenge.

#4 Feature Requests » Open graph crops » December 20, 2018 12:03pm

Terrra-Robin
Replies: 1

Hi,

The Open Graph tab is a very great new feature for routed templates that are made of modules.
A crop feature for the image you can upload here would be a very useful addition tough.
I got a customer who uploads huge images (nice for retina screens) and it would be quite a hassle to scale them all down.
I think I'm going to use the mobile crop for now, but I think it could be a bit confusing to have the picture from the module and the description from the OG tags.

#5 Re: Developer Help » Multiple levels of routed templates » December 15, 2018 10:50am

timbuckingham wrote:

Yes, you can do that. What I would do is do a check in your routed template's default.php to see how many additional commands are present. Something like this:

if (count($bigtree["commands"]) == 2) {
   include "sub-item.php";
} else if (count($bigtree["commands"]) == 1) {
   include "item.php";
} else {
    // The landing page is here.
}

Then in sub-item.php you'll want to do a look-up on the top-level item based on the first route in $bigtree["commands"] and look up the sub item based on the second route and make sure that the sub-item is a child of the top-level item (and if it is not, throw a 404).

In item.php you'd just do what you're likely doing now which is just look-up the item by $bigtree["commands"][0].

Ofcourse! Including instead of using a new template each time!
Thanks a lot. It's working and my code is a lot cleaner and less complicated now smile

#7 Developer Help » Multiple levels of routed templates » December 14, 2018 4:54am

Terrra-Robin
Replies: 2

Hi,

I got a question about routed templates and sub items.

Currently I have a module that consist of different items. Under these items, there are sub items.
These sub items are linked via a one to many field.

So there are 2 overview pages. One with the main items, and one with the corresponding sub items.
The main item can be either one level deep, or 2 levels (if it has sub items).

Right now I don't know how to link these 2 modules to have a nice url (and breadcrumb).
For example, I have "athmospheric pictures" and beneath that are "night photograpgy" and "black and white phptpgraphy".
If you go to the "athmospheric pictures" page, the url is "portfolio/landing/athmospheric pictures" to have a different template as a normal item.
A normal item's link would be "portfolio/item/black and white phptpgraphy". But this doesn't have the "athmospheric pictures" inside the url.

Is it possible to make a routed template that has "portfolio/athmospheric-picures/black and white phptpgraphy" as a url?

What would be the right way to do this?

The story about the links could be a bit vague without seeing it.
This is where you can see what I mean https://zpam.nl/portfolio

Many thanks in avance

#8 Bug Reports » Quickly edit template when editing homepage content » November 29, 2018 8:24am

Terrra-Robin
Replies: 4

Hi,

On the latest release I saw the buttons have been changed to edit a template from "edit in bigtee".
On all pages this works, except on the homepage.. So there might be going something wrong here.

Not a huge problem, but it's a thing that gets you out of the workflow a bit.

#9 Re: Developer Help » Reusable functions sending headers in utils.php? » November 27, 2018 4:46am

timbuckingham wrote:

It's possible your environments before defaulted to having output buffering turned on. Since /custom/inc/required/ is included in bootstrap and output buffering isn't turned on until after bootstrap is executed, any errant new line output from a /custom/inc/required/ file will likely cause sessions to fail to start. Are you using the new database session handler? It's possible that handler is less tolerant and won't silently fail.

Thanks again Tim! I had an old environment file without the session_handler entry in it.
When I put "db" in it, it seems to work perfectly fine:)

#10 Developer Help » Reusable functions sending headers in utils.php? » November 26, 2018 8:21am

Terrra-Robin
Replies: 2

Hi,

I'd like to make a function that checks if there's a cropped image.
If not, use the uncropped image. If there's no uncropped image either, use a placeholder image.

I thought it was a good idea to put this inside custom/inc/require/utils. I place all small reusable custom functions in here.

But now I get a waring / error message "cannot send session cookie. headers already send etc. etc." and the whole site doesn't work.
I've had that problem with more cases. For example when doing a require to a vendor /composer folder that does an api call or db request.

So I was wondering: what's the proper place / way to place these kind of functions mentioned above in Bigtree?
I could just include everything in a layout, but probably there's a more elegant way that I don't know of.

Thanks in advance!



EDIT: any empty lines or things before opening  php inside an inc/required file break the site or result into a warning.
Never had this issue before... So it might be a bug.

#11 Re: Feature Requests » Get all images inside a resource folder » November 22, 2018 6:19am

timbuckingham wrote:

I'm going to track this request but I'm not sure the best way to go about it so I'll probably be following up with you when I get a chance to delve in deeper and see if our ideas align!

Awesome! Sounds great. Let me know when you have time for the follow up.

#12 Feature Requests » Get all images inside a resource folder » November 19, 2018 5:26am

Terrra-Robin
Replies: 4

It would be great to have an option which grabs all images inside a resource folder, from newest to oldest (or in the order you set it in the resources folder).
In that way you can really easily create and manage image galleries or sliders.

I think the image reference is nice, and combined with the option to get everything inside a folder it would be even more more powerful.
Another idea would be to have a photo gallery with file references instead of uploads. Would also be very useful.
The image gallery takes quite some time to fill in, one by one.

Maybe the last one is more in line with the current developments.

Cheers!

#13 Re: Developer Help » Using media presets in Big Tree CMS 4.3 » November 19, 2018 4:57am

timbuckingham wrote:

This looks to be a bug! I'll be sure it gets addressed in the 4.3.2 release which should come out next week.

Ah, good to know it's coming back soon. Thanks!

#14 Developer Help » Using media presets in Big Tree CMS 4.3 » November 14, 2018 10:29am

Terrra-Robin
Replies: 3

Hello,

A few updates ago there was a ground-breaking new feature called "media presets".
We used that feature a lot. It was just one click and a crop preset was set that we could reuse for other templates or modules. Really great stuff.
But in the latest update I can't set a preset for the crops anymore (in a template>file upload field). Maybe I'm just doing it wrong, but I can't seem to figure it out.

Could you guys help me out with this? How can I use my own media preset in version 4.3?
Thanks in advance!

#15 Re: Developer Help » Extension updates » June 29, 2018 3:22am

timbuckingham wrote:

So if I'm getting  this right, it's best to have a main version and use that to add functions and roll out updates?

Definitely -- otherwise your manifest versions may get out of sync and you'll have a hard time having other installs see it as a new version.

It happens when creating an extension and then download it in Big Tree. It's a zip-package when doing that with only the manifest in it.

Very strange, PclZip should be just zipping up everything in your /extensions/extension-id/ directory. I might have to look into a different zip library if I can replicate this.

Aha. That must be the thing that went wrong previously. Will watch out for it then. Thanks!

Yeah, it is. Got to say that sometimes it does work and sometimes it does not.
I'll try to find out of what the conditions are to let the zips go wrong.

#16 Re: Developer Help » Extension updates » June 28, 2018 8:39am

Alright. I think it's not working anymore. But I could be wrong.

Update: it does work!
The downloading of extensions also works now.

#17 Re: Developer Help » Extension updates » June 28, 2018 6:52am

Alright, it's working now:) I saw the update appearing after a day or so.

The one thing I've ran into in the past is sometimes when I update extensions from multiple installs the version ID gets off so when I push an update it's actually the same (or lower) version than was previously available, causing the extension updates not to show in other installs.

So if I'm getting  this right, it's best to have a main version and use that to add functions and roll out updates?

Do you mean from the extension repository? It should be pulling directly from GitHub which we don't have any control over.

It happens when creating an extension and then download it in Big Tree. It's a zip-package when doing that with only the manifest in it.
Ah, perfect. Good to know we can also download it from Github.

Yes, that's the proper URL. I honestly haven't tested it in quite some time as I usually just edit the extension to change the release notes and that forces an update.

Alright. I think it's not working anymore. But I could be wrong.

Thanks for the help again!

#18 Re: Developer Help » Extension updates » June 19, 2018 9:59am

Update: I tried the webhook method now, but I still don't see the update notification..

I put this in payload: https://www.bigtreecms.org/ajax/extensions/webhook/ is that the right way?
I tried both x-www-form-urlencoded and json as content type. What is the correct method?

Do I need to fill in a secret or disable SSL verification to make it work?

I tried to send an email to remove the extension from the extension library indexing, but the email does not exist I think.
The email address is: removal@bigtreecms.org. I got a mail back from Google that is was not delivered.

PS: Is it still possible to do updates without being in the extension library?

Thanks!

#19 Developer Help » Extension updates » June 19, 2018 9:17am

Terrra-Robin
Replies: 6

Hi,

We're experimenting with the extensions again.
I bumped into some questions when trying to get it working.

When does Bigtree see there's a new update?
I pushed a new manifest with updated version number and a modified class to Github (also exported the extension again in Bigtree), but I don't see the update notification when I look at my other plugin installation.

Is there a way to check for updates manually or in a shorter timespan?

Are there by the wat things I should keep in mind about the manifest and updates?
I have tried to update extensions before, but it got corrupted in some way.

Also another thing to notice: the downloaded extensions get corrupted.
When looking in the cache folder and downloading the package.zip, the extension is not corrupted.

Thanks in advance!

#20 Re: Bug Reports » Problems after updating to version » February 21, 2018 11:41am

Perfect. It worked! Thanks fot the quick help!

#21 Re: Bug Reports » Problems after updating to version » February 21, 2018 11:03am

Hmm, maybe something with writing rights then?
Thanks! I've PM'd you the FTP credentials.

#22 Re: Bug Reports » Problems after updating to version » February 21, 2018 10:40am

We're a step further now. The error code is gone!  But the BigTree CMS is still only showing the top bar and a few empty buttons, as in the screenshot. We've experienced this issue on another installation as well, so I think it could be a common thing.

Do you have an idea what else it could be?

#23 Bug Reports » Problems after updating to version » February 21, 2018 5:28am

Terrra-Robin
Replies: 6

Hi,

We're excited to install the new update with the SMTP mailer! Unfortunately, when we installed it, the CMS is crashed.
We get an empty nav bar and can't edit anything. In the updates before we never had any problem, so I'm curious if you guys know what's going on.

This is ther error we got:
Notice: Undefined index: sites in /home/deparelnew/domains/deparelverloskundigenpraktijk.nl/public_html/core/admin/router.php on line 164

Link to screenshot: https://imgur.com/xkt4GuB

Thanks in advance!

#24 Re: Bug Reports » Automatically updating extensions » August 28, 2017 4:42am

Whoops, I see our extension on the BigTree website. Is it possible to hide it in some way?

#25 Re: Bug Reports » Automatically updating extensions » August 28, 2017 4:34am

Hmm, the first time it worked, but I logged in with the wrong account.
When I try to login again with another account I get the same error message agein..

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.