#1 Re: Developer Help » PHP 8.1 Support » August 2, 2022 1:34am

Also, given that PHP 7.4 EOL is November 2022, is it safe to assume BigTree 4.5 will be available before then?  And does it currently support PHP 8.0?

#2 Re: Developer Help » PHP 8.1 Support » August 2, 2022 1:09am

Thanks, Tim.  Is there an estimated time frame for when it will be released?

#3 Developer Help » PHP 8.1 Support » August 1, 2022 8:48am

asiral
Replies: 4

Does BigTree support PHP 8.1?

#4 Re: Bug Reports » Possible Bug in Module Search » April 16, 2014 2:41am

I just realized a few things.  For security reasons, the MySQL user for BigTree in our implementation has been limited to certain operations (INSERT, DELETE, etc.) but either the upgrade did not include these migrations or it didn't indicate an error in the queries to update the collations and they just failed because of the operation limitation.  If the latter is true, can you point me to the script where these queries are so I can verify they were all executed?

#5 Re: Bug Reports » Possible Bug in Module Search » April 8, 2014 2:31am

Should I then change the collation on all the tables in the database to utf8_general_ci?

#6 Bug Reports » Possible Bug in Module Search » March 25, 2014 9:05am

asiral
Replies: 5

Since upgrading from BigTree 4.0RC2 to 4.0.2, I noticed searching in-page for a module does not work as well.  The interface I'm referring to is when you click on 'Modules' in the main menu and then click and Module.  From that table, the search results quality seems reduced.  Here is some debugging info if it's helpful.

The query being generated is something like the this:

SELECT * FROM bigtree_module_view_cache WHERE view = '29' AND (column1 LIKE '%home%' OR column2 LIKE '%home%' OR column3 LIKE '%home%')This query is generating by converting all the search parts to lowercase but then does not return any results that contain the word 'Home' in uppercase, even though that is what the search query was.

Hope this helps, let me know if you need any more info.

-Michael

#7 Re: Developer Help » Custom Dashboard Functionality Breaks Dashboard » December 18, 2013 7:55am

Sorry, this dropped off my radar.  Yes, the other views like Pending Changes, etc. no longer worked.  Even if the content of /custom/admin/modules/dashboard/default.php was the same as the OOB content, they still did not work. sad  But again, we still need to upgrade from RC2 unfortunate so this may have been addressed either directly or indirectly.

#8 Feature Requests » Content Entry Suggestion » November 3, 2013 8:25am

asiral
Replies: 1

Hi, guys:

I thought I would throw out a suggestion that I think has the potential to revolutionize (pardon if this eventually seems exaggerating) BigTree and really make it stand out from other CMSes than I feel it already does.

With the possible caveat that rich text editors can give you a little more control (I, personally, don't think so but I am sure there are use cases), I think the best approach to content entry would be using the 'contenteditable' attribute.

If you're familiar with Medium.com, they use this to write their posts and I think it's becoming increasingly more common.  They also have a very lean framework of Javascript to control input.  I think it would be straightforward enough to create a lean framework around the entry of special structures into this content editable area (such as a callout like a photo gallery).  Moreover, it dramatically increases the flexibility and even paves the way for a truly drag-and-drop interface.  For more on what I'm talking about, see my previous post: http://www.bigtreecms.org/discussion/di … -templates and for a good example of a drag-and-drop CMS (although much else about it is bloated and poor, in my opinion, is Adobe CQ (formerly Day CQ) or now called Adobe WEM).

This method also lends itself to realtime saving of drafts.  I'm also imagining that the lean framework allows entry of a 'callout' on the page whereby filling in the fields for a piece of content, retrieves the generated markup and inserts it where desired.  The inserted content itself would not be editable as the 'rich text' is, but can present the same dialog box to constrain input when double-clicked or triggered in some other.  What's more, this avoids the awful overhead and load times of some rich text editors and frees you and your product from another dependency.

A quick list (some re-iteration) of how this would improve the user experience: potential in-page editing, flexible content entry, real-time saving of drafts, potential for a future drag-and-drop interface, reduced overhead, load times, and dependencies.  I don't believe I'm terribly oversimplifying at least given the scope I've outlined, although I'm still familiarizing myself with the API for this feature.  But I see a custom implementation centered around this feature being increasing a choice for many content-driven websites as it's intended to be included in the final HTML5 spec.  With the right foundation in place, I would love to help contribute to this kind of improvement to BigTree in the future.

-Michael

#9 Developer Help » Custom Dashboard Functionality Breaks Dashboard » October 10, 2013 3:07am

asiral
Replies: 3

This may no longer apply to BigTree 4.0 but in RC2, when add the file /custom/admin/modules/dashboard/default.php, the other parts of the dashboard no longer work.

#10 Re: Bug Reports » Textareas inside RTE » September 4, 2013 3:48am

Hey, Tim:

Glad it's been fixed and happy to hear about TinyMCE in 4.1.  In the meantime, can you point me in the right direction for encoding the textarea values (what files to edit, etc.)?

Thanks!

#11 Bug Reports » Textareas inside RTE » September 2, 2013 8:30am

asiral
Replies: 4

This might be a limitation of the RTE libraries, but seems like the value could be encoded in a way to avoid this.

Anyway, whenever you insert a textarea inside the RTE, it works as expected but the content is then truncated at the closing of the inner textarea when you edit the page again.

#12 Developer Help » CodeIgniter and other PHP frameworks with BigTree » August 3, 2013 2:51pm

asiral
Replies: 1

I was wondering if you have a recommended approach in mind for integrating an application into BigTree built with a framework. Specifically, this is the feature described as 'Plays Well With Others - Non-blocking/nestable sites allows other apps to live inside your site.' Some of the questions/issues I am encountering are:

The application should ideally run from a BigTree template so there is no duplication of the site's design, etc. Should the template be routed or basic? How can I best separate out the URI segments for BigTree from those for the PHP framework? What other configurations need to happen? Any important considerations concerning routing or other features of BigTree?  Any examples?

Happy to provide more specific questions as well.

Thanks,
Michael

#13 Feature Requests » LESS Import Directory » July 25, 2013 1:14pm

asiral
Replies: 1

Just a suggestion here: Some open source projects have separation between less files and css files (/js, /css, /less).  I prefer this organization, too.  In order to implement this right now, I need to edit a hard-coded path in the router: SITE_ROOT . "css/".  It would be easy to turn this into a variable, which as a filesystem path seems appropriate, and also allows for this organizational scheme.

#14 Re: Bug Reports » Can't Rename a Resource » July 17, 2013 8:17am

And in the BigTreeAdmin class, looks like the updateResource method tries to escape the $title variable instead of the $name variable sent to it.

#15 Bug Reports » Can't Rename a Resource » July 17, 2013 5:50am

asiral
Replies: 2

When renaming a resource in the file browser, a resource cannot be retrieved to rename.

Looks like the URL of the resource being posted to core/admin/ajax/file-browser/save-title.php is the fully resolved resource with the domain rather than the {static_root} expression.  Since no resource is retrieved, no resource can be renamed.

#16 Re: Bug Reports » Installation Not Working » July 11, 2013 2:38am

Sorry for the trouble.  I absent-mindedly skipped over the routing choice. :-/

#17 Re: Bug Reports » Installation Not Working » July 8, 2013 1:31pm

And one other thing. Sorry to pile it on. The admin URL doesn't seem to work.  Not sure at all why though.

#18 Re: Bug Reports » Installation Not Working » July 8, 2013 1:28pm

And it's working for me now, too!  Thanks!

Also, might be worth mentioning, and I'm not sure why because I thought it was being created before, but the .htaccess in the /site/ folder is not created in this environment either.  I've just been copying it from other installs but if I remember correctly, it is supposed to be included. :-)

#19 Re: Bug Reports » Installation Not Working » July 8, 2013 9:47am

Thanks, Tim.  If it helps, it may happen to others in the future since it is a build choice of WampServer.

http://www.wampserver.com/en/ (top right choice)

#20 Bug Reports » Installation Not Working » July 8, 2013 9:01am

asiral
Replies: 9

I'm trying to install BigTree on my server with the following software and it's not working.  I am presented with a 404 page after seemingly successful installation of the example site.  Viewing the database shows that no pages exist in the pages table.  Manually importing the example_site.sql file does not work because it seems some entries were imported and redundancies cause a failure.  Installing without the example site and then manually importing example_site.sql does not work either.

Apache 2.4.4
PHP 5.4.12
MySQL 5.6.12

Any thoughts as to why this would happen or how to troubleshoot?

-Michael

#21 Developer Help » Deleting Resources/Assets/Images » June 25, 2013 12:51pm

asiral
Replies: 3

If I wanted to add the capability for users to delete resources uploaded through the Image Library/File Browser, what would be the suggested approach?  I see in /core/admin/ajax/file-browser, there are a lot of functions but none to delete files.  I also see that entries are created in the database referencing the assets uploaded.  Is there a recommended approach or anything I should be aware of?  What about checking for where the asset is referenced?

Thanks again!
Michael

#22 Developer Help » Nestable Sites » June 25, 2013 7:59am

asiral
Replies: 1

I was wondering if you could perhaps expand a little more on the feature "Non-blocking/nestable sites allows other apps to live inside your site."

For example, what are the best practices, recommended approaches to nesting sites within BigTree? Specifically, we have a number of discrete applications we would like to keep separate from BigTree but be able to include them in the page.  Should we just use text fields and input PHP includes to call the scripts?  What should we be careful of when posting data, etc.? Since there is little documentation on this feature, it's difficult to form questions so apologies if this is vague.  Any help is appreciated.

Thanks,
Michael

#23 Bug Reports » Cannot Add Callouts After Changing Template » June 10, 2013 12:29pm

asiral
Replies: 1

To reproduce this problem:

Add a Subpage
Click "Blog" template (or any other template)
Click "Content" template
Click "Content" tab
Click "Add Callout"

Behavior: jumps to top of page
Expected behavior: open dialog to add callout

Any quick tip on how to fix this until next release or is this a bigger issue?

#24 Developer Help » Batch Uploading Files » June 10, 2013 9:31am

asiral
Replies: 1

Wanted to share the method I used to batch upload files.  There is a great plugin out there called Dropzone.  I included the CSS and Javascript in the admin panel and in my custom CSS, overwrote the BigTreeFileManager.addFile method.

This basically creates the dialog like the original function but with the content and some other parameters changed (final parameter for onCancel no longer applies) and stores the dialog in a variable.  The footer is in the form originally, so we remove the footer, apply the dropzone class to the form, append the footer to the dialog (for a close button which does not need to be in the form) and apply Dropzone to the form.

BigTreeFileManager.addFile = function() {
        var dialog = new BigTreeDialog("Upload File",'<input type="hidden" name="folder" value="' + this.currentFolder + '" />',false,"folder",false,"Upload File",true,this.finishedUpload);
        dialog.dialogWindow.find("form").addClass("dropzone").find("footer").remove();
        dialog.dialogWindow.append('<footer><a class="button bigtree_dialog_close">Close</a></footer>').find(".bigtree_dialog_close").click(function() { $(".bigtree_dialog_overlay").last().remove(); BigTreeFileManager.finishedUpload(); });
        var myDropzone = new Dropzone(".dropzone", { url: "admin_root/ajax/file-browser/upload/" });
        return false;
    };

It's a great library and I think worth considering for inclusion in the next release.

#25 Re: Developer Help » Previewer User Role » June 10, 2013 6:13am

I've made some further customizations as well I'd thought I'd share.  Since we want to be able to preview sites in a multi-site setup, it helps to enable the previews within the site context, in this case a subdomain.  So in the custom router, before checking for the existing of "_preview" in the path, I've added this code to alter the path variable.

    // right before serving header for HTML, add site 1 or site 2 directory to path based on host
    // the is_sitex() functions are defined in the configuration file, explained here: [url]http://www.bigtreecms.org/discussion/discussion/55/multi-site-setup[/url]
    if(is_site1()) {
        if($bigtree['path'][0] != "" && $bigtree['path'][0] != "_preview") {
            array_unshift($bigtree['path'], "site1");
        } else if($bigtree['path'][0] == "_preview") {
            $bigtree['path'] = array_merge((array)"_preview", (array)"site1", array_slice($bigtree['path'], 1));
        } else {
            $bigtree['path'][0] = "site1";
        }
    } else if(is_site2()) {
        if($bigtree['path'][0] != "" && $bigtree['path'][0] != "_preview") {
            array_unshift($bigtree['path'], "site2");
        } else if($bigtree['path'][0] == "_preview") {
            $bigtree['path'] = array_merge((array)"_preview", (array)"site2", array_slice($bigtree['path'], 1));
        } else {
            $bigtree['path'][0] = "site2";
        }
    }

It's a little hacky, but works very well and allows us to do this:

site1.domain.nyu.edu/_preview/this-is-a-page/
site2.domain.nyu.edu/_preview/this-is-a-different-page/

Board footer

Powered by FluxBB

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