#1 Re: Developer Help » Form Builder reCaptcha not working » April 18, 2018 9:12am

The correct _header.php file should be located in this location: extensions/com.fastspot.form-builder/templates/routed/btx-form-builder/

The one in /core/admin/layouts/ is for the header in the BigTree admin.

The one in /templates/routed/directory/ is for the header of your "Directory" template.

#2 Developer Help » WCAG 2.0 AA Standard » October 21, 2017 11:32am

Replies: 1

I am working with a client who wonders how other BigTree users have approached bringing an existing site up to WCAG 2.0 AA standards? Outside vendor? Any suggestions or insight I might be able to give them from the BigTree community?

#3 Re: Developer Help » Installing Within WordPress » July 10, 2017 5:48pm

Well I've made some progress but could use a little advice. I've got it to the point where I can view the homepage but domain/volunteers/admin isn't working, it's running through the WP stuff.

So I'm not sure if the issue is with the WP .htaccess file and that I'm not ignoring directories within /volunteers/ but just the top level.

I added this to the WP .htaccess:
RewriteCond %{REQUEST_URI} !^/(volunteers|volunteers/.*)$

I thought adding this to both BigTree htaccess files would help:
RewriteBase /volunteers/

so that it would prepend the /volunteers/ to requests but it's only allowing the homepage to be viewed.

Any thoughts on what might be missing from one of these so that WP doesn't try to handle requests within the /volunteers/ directory?

#4 Developer Help » Installing Within WordPress » July 6, 2017 4:22pm

Replies: 5

I have WP installation and my goal is to place BigTree within the site as well so I can run both. Currently, I have all my files setup in a separate folder at the root (same level as wp-content, wp-admin, etc.). I have all my tables setup in a separate database and my environment file setup with all the credentials for it. The problem I'm having is when I try to get to the BigTree admin, the WP part is taking over and giving me a 404. So it should be domain/volunteers/admin but it's not working.

I'm guessing this is a .htaccess issue for the WP site? Does anyone have experience with getting these two things to work at the same time?


#5 Bug Reports » One-To-Many JSON Saving Error » December 15, 2016 11:03am

Replies: 1

I'm having an issue when saving my one to many fields. Under normal circumstances when I save the field the data is stored in the database like this: ["3713","27","111"] which is what I believe is supposed to happen and works well. However, when I go in and either rearrange the items or delete an item that is not the first or last item, or add an item somewhere between the first and last (basically anytime I do something to change the indexed position of the existing elements) the data is getting saved in the database like this: {"1":"27","0":"3713","2":"111"}

In this example I just moved the 3713 item from first position to second position. Now after I do this, if I go back into that module entry all the data loads and my previous changes are correctly shown, everything is as it should be. But when I'm trying to pull the data for my front-end pages, I'm having to write code to account for both variations of how the data could be in the database. If I were to Save & Publish that module entry when it had the data as: {"1":"27","0":"3713","2":"111"} already and I didn't make any changes to it, it would convert it to this: ["27","3713","111"], which makes me think that the other version shouldn't actually ever exist.

Is this expected behavior or is there something off in the processing of one-to-many fields? This problem also appears to exist in the BTX Form Builder as well.


#6 Developer Help » Group Based Permissions Working with Multiple Values » September 29, 2016 10:25am

Replies: 1

I'm having some trouble tracking down what's happening in my view. What I want is to be able to assign an item to multiple groups, store that value as JSON in my table, then use that column as my group based permissions field, then have the view show the records that that user is assigned to across all groups. It's my understanding that the way things are setup, it's designed to only handle scenarios where the gbp field is a single id value. Can you tell me what function I would need to modify to have it also look for the value in a JSON string. I've tried tracking it down and can't seem to find where those fields are being removed from the overall data set.


#8 Re: Developer Help » Site Domain with Multiple URL Segments on 4.2.12 » September 19, 2016 4:17pm

Awesome! That worked. For some reason I guess I thought the domain needed to be the same as my www_root.


#9 Developer Help » Site Domain with Multiple URL Segments on 4.2.12 » September 19, 2016 4:10pm

Replies: 2

I just upgraded to 4.2.12 and I'm having a small issue with the login page. My site domain as defined in my environment.php file is: "http://localhost/bigtree_dev/" and when I go to the login page and input the correct login credentials I am ultimately redirected to "http://localhost/bigtree_dev/bigtree_dev/admin/login" this comes back as a 404 page rather than taking me into the admin to the dashboard. Now I am actually being logged in correctly and if I browse to: http://localhost/bigtree_dev/admin/dashboard" everything works fine. I believe I found the problem is in /core/admin/router where $_SESSION["bigtree_login_redirect"] = DOMAIN.$_SERVER["REQUEST_URI"];

The request uri is: /bigtree_dev/admin/login because there are multiple segments in my domain. I'm having trouble coming up with a way to solve this so that the extra parts of the domain are either removed from the request uri or are removed from domain before it is prepended to the request_uri. Do you have any thoughts on what the best approach might be?


#10 Re: Developer Help » Custom Action Not Occurring » September 19, 2016 10:21am

Ok that sounds great! So then how would I redirect the user back to the view? I noticed that in the pre-defined ones (approved, archived, etc.) that the view id and the id of the item are passed to the ajax page using url variables but with custom ones it seems like I only have access to the id of the item through $bigtree["commands"]. Would it be possible to just have the id of the view added on as a url variable to custom actions as well? So the id of the item would still be contained in $bigtree["commands"] but then the id of the view would also be passed so it could be recached and used to have the user redirected back.

#11 Re: Developer Help » Custom Action Not Occurring » September 19, 2016 9:47am

Ok looking at: core/admin/auto-modules/views/_common-js.php There is a click event associated with .icon_disabled that is just set to return false. Was that created because of the context that icon has with pending changes? Does that mean that that icon is in essence "off limits" to custom actions? I changed it to a different icon and now I'm getting the same behavior that I have with the icon_dialog_add. And as I look at this file, I'm only seeing click events associated with delete, approve, featured, and archived. Does that mean that only those four icons are capable of performing ajax calls and that the rest will always be treated as links? I'm guessing there's not a way to override that behavior?

#12 Re: Developer Help » Custom Action Not Occurring » September 19, 2016 9:23am

One quick thing I forgot to mention. On the denied icon, if I copy the link location off of it and paste it in the browser then I get the same effect as when I click the add_dialog icon. The HTML/JS code is displayed in the browser and the php code is run. So I know my action routes for both files are being run correctly. The problem has to be something on the view page itself that is treating them different than "normal" view actions.

#13 Re: Developer Help » Custom Action Not Occurring » September 19, 2016 9:19am

The two classes that I'm using are icon_dialog_add and icon_disabled. When I click on the disabled icon in my view, nothing happens. The code in the associated file is not run and the Bigtree.growl that I have set isn't displayed (I do have header("Content-type: text/javascript"); at the top of my php file). When I click on the dialog_add icon, rather than running the code thorugh ajax it actually takes me to the link in the browser and outputs all the HTML/JS like it was a source code view (I'm assuming this is because this file also has a header("Content-type: text/javascript"); at the top and the browser treats the page like it was a .js file). Now on this one, the php code is actually being run it's just not staying on the view page like I need it to. But since it is running the code and loading it in the browser, I know that I have the action route for the file setup correctly.

I know that I'm not using any of the three classes you mentioned, but I'll try changing that to different ones to see if that has any effect. If not, I can start trying to debug things and see if I can pinpoint where the issue is. Just wanted to start here first and see if you had experienced something like this before.


#14 Developer Help » Custom Action Not Occurring » September 14, 2016 3:47pm

Replies: 11

I created a custom action for my view but when I click on it, none of the code in the corresponding file is run. I know the file is in the right place and there aren't any errors because if I just copy/paste the link location from the icon in the view in my browser and go to it directly, everything in the code is run when I check it. I checked the console and no errors or any other messages are generated when I click the icon in the view. I can't understand why it works when browsed to directly but not when I click the link, any thoughts?


#15 Re: Developer Help » Matrix Field: Too Many Rows » June 16, 2016 11:18am

Awesome! Thanks for your help. I increased the number for max_input_vars in my php.ini and that did the trick. Thanks!

#16 Developer Help » Matrix Field: Too Many Rows » June 16, 2016 10:06am

Replies: 2

Is there a limit to the amount of entries a nested matrix field can handle. I'm running 4.2.9 and I just tried to update a page with a matrix field that contains another matrix field which has 118 entries within it (each entry has 4 text fields) along with two single text inputs. When I save the page, I lose the last 18 fields from my nested matrix and end up with only 100 and I also lose the data from the two text inputs. If I look in the database, all the JSON is still formatted correctly and everything even appears on the site correctly, except for all the missing data. So I just wanted to check if there is some limit to what the either the json encoding or the matrix field itself can handle?

#17 Re: Developer Help » Custom Preview Links with Different Behavior » May 23, 2016 2:32pm

Ah ok, that makes sense. Yes I had them as relative, I think because I thought it would be easier for them to work in the context of different domains but it should still be fine either way.


#18 Developer Help » Custom Preview Links with Different Behavior » May 20, 2016 9:50am

Replies: 2

I have a module with a custom preview page I created. The preview page sits in /custom/admin/modules/module_name/_preview.php. When in the module and using the preview icon, everything works great. However, when using the "Save & Preview" button or the preview link from the "Pending Changes" page, I am given a 404 error. Technically, all of them are going to the same link but I have noticed that the one in the module (the one that is working) is a relative link, but the others are absolute. Is this a bug or is this resulting from me incorrectly placing my preview file?


#19 Re: Feature Requests » Images as titles for Matrices » April 27, 2016 8:58am

Yeah that's how I have been doing it so far. For the list view I had thought about just doing the title but I like your idea of a thumbnail with the title, I think that could look really good. The only thing about this that seems slightly less than clean is that I can't let the title/subtitle run through safeEncode like everything else does. So I've just been using strpos to see if the title starts with '<img'. Does that seem like the best way to identify which callouts/matrices are using an image as the title?

#20 Feature Requests » Images as titles for Matrices » April 26, 2016 10:53am

Replies: 3

I've been working on how the titles/subtitles are displayed in matrices and callouts when an image upload field is selected as the title. I have the code for main.js done so that if an image exists and it is marked as the title, then it is visually displayed and the subtitle is hidden (see picture below). In all other cases, just the filename of the image is used. But before I went in and began working on editing the draw fields for callouts/matrices, I wanted to ask if this is something you would be willing to incorporate into BigTree once it is finished? Since it's such a specific use case and involves modifying some pretty important files, I didn't think it would be worth it for us to create it and then and have to run all those files through /custom from here on out.


Matrix with Image Title

#21 Re: Bug Reports » Nested Callouts Not Working » April 8, 2016 10:51am

I played around with it a little more and it appears that the new dropdown issue is affecting even just regular (top level) callouts but still only in Chrome. So whenever you go in to edit an existing callout that has either a one to many or dropdown field, if you click on any of the dropdown fields they don't expand and there is no error shown in the console.

#22 Re: Bug Reports » Nested Callouts Not Working » April 7, 2016 3:59pm

One other thing. In Chrome (Windows, latest version) only (seems to be fine in FF). If you have a nested callout saved and then go in to edit the page, click edit for the first callout, then click edit for the second (nested) one, none of the dropdowns (one to many or regular selects) are working. It's as if there is no click event bound to them. No error in the console is given, it's just like you're clicking on empty space. However, other browsers seem to be fine.

#23 Re: Bug Reports » Nested Callouts Not Working » April 7, 2016 3:54pm

Ok sorry I think this is a bug for a really specific scenario and of course it would be the setup that I have. So I implemented the fix (thank you for that) and I can switch back and forth and it updates the correct dialog box. However, on callouts with either one to many fields or select dropdowns, if I change to that callout from the first one (default one at the top of the list), the dropdowns are not styled correctly but more importantly when clicking "Add Item" on one to many fields I get this error in the console: "main.js:2151 Uncaught TypeError: Cannot read property 'remove' of undefined". Firefox has an issue with the same line but slightly different message: "TypeError: Select.customControl is undefined".

#24 Bug Reports » Nested Callouts Not Working » April 7, 2016 10:21am

Replies: 5

I'm running a clean install of 4.2.9 and I'm experiencing an issue with nested callouts. The setup is a callout resource defined for a template, a callout that has a field to select another callout, and then a second callout that just needs to have different fields than the first (in order to clearly see the issue). When you click the "Add Callout" button from the initial "Edit Page" screen, the dialog appears like normal and displays the correct fields. When you have the first callout selected and then click "Add Callout" from within that callout, it does open a second dialog box like you would expect, but no matter which callout use choose from "Callout Type" it does not change the fields in the visible dialog box. Instead, it is changing them in the first dialog box (the one that was opened when clicking "Add Callout" from the "Edit Page" screen). If you change the "Callout Type" to something different for the nested callout (the top level dialog box) and click "Cancel" you'll see that the in the first level dialog box the fields that are shown belong to the second callout even though the "Callout Type" has the first one selected.

#25 Re: Bug Reports » Trailing Slash with PDF Links » April 4, 2016 2:36pm

I just realized it would probably help to have the code that handles redirects from a folder to a page. So this would be for instances where there was a folder structured like /site/undergrad with some pdf documents in it. Then if the user browses to domain.edu/undergrad, this code is in the index.php file and gets run. I don't know if you need this to help see what's happening, but I figured it might be part of the problem.

    $serverRoot = str_replace("site\\","",__FILE__);
    $serverRoot = strtolower($serverRoot); //In case someone enters a URL with capital letters
    $serverRoot = str_replace("web\sectionindexreplacement.php", "", $serverRoot);
        // Check that server root was setup correctly and points to the right place
    if(file_exists($serverRoot."\\custom\\environment.php") == 'OK' && file_exists($serverRoot."\\core\\bootstrap.php") == 'OK'):
        $url = $_GET["bigtree_htaccess_url"] = ltrim(rtrim($_SERVER["REQUEST_URI"], '/'), '/');
        $_SERVER["PATH_INFO"] = array_values(array_filter(explode('/', $url)));
        chdir($serverRoot . "\\site");
        require $serverRoot."\\site\\index.php";
        header("Location: http://www.drury.edu/404");

Board footer

Powered by FluxBB

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