You are not logged in.
Ok yeah, I can see how that might cause an issue. All I did to allow for that was to comment out this piece in the updatePage and createPage functions in admin.php:
/*while (file_exists(SERVER_ROOT."site/".$route."/")) {
$route = $oroute."-".$x;
$x++;
}*/
Here is what is stored in the database as: ipl://3532//WyJhcmNoaXRlY3QiLCJwZGYiLCJsb29wLnBkZiJd
Here is what I entered: http://www.drury.edu/academics/undergra … f/loop.pdf
The file does already exist at the path when the link was added. Also, I just realized that is happening in the 301 redirects as well. Also, the page with the id of 3532 is http://www.drury.edu/academics/undergrad/ and it's on a routed template which I'm thinking might have something to do with it? BigTree is thinking everything after that is part of the route/commands and isn't recognizing it as a pdf/file?
I'm having an issue with pdf links specifically getting converted in IPLs and when they are decoded they have a / that has been added to the end of the url and breaks the pdf link. I know it's not coming from the TinyMCE editor and have confirmed they are getting converted to IPLs after my html field is processed. What change and which of the IPL related functions is responsible for that? Is it a problem in the encoding or decoding process?
This could be a problem with my specific setup but if it is I cannot figure out why so I wanted to see if it could be recreated and is indeed a legitimate bug. I am using the Events extension and am having a problem with it not recognizing user permissions correctly. I went in and added a column "group" to the events table so that each event could be assigned to a group. I also have a second table "event_groups" that has a FK relationship to the associated events column and also holds the title for each group. My GBP setup is "Main Table" is "btx_events_events" with the "Main Field" of "group". For the "Other Table" I have it set to my "event_groups" table with the "Title Field" being "group_name". This creates the user permissions setup that I desire, where I can assign a particular user as a publisher/editor for x number of unique groups. Then, when they are adding/editing an event, they only see events within the group(s) they have been assigned to and only those groups appear in the field dropdown when creating a new one. Where the problem occurs is even when all the groups they are assigned to are set at the "Publisher" level, the permissions still come back as only editor which only displays the "Save" button and not "Save & Publish". I looked into it a little bit and my $bigtree["access_level"] is actually returning blank because (I assume) in the getAccessLevel function there is no entry in the user's permissions ($admin->Permissions) under the key for my module. However, there is a key of my module's id under "module_gbp" and the sub-array does contain all the correct information (keys representing event group ids and values of "p") but the function never gets that far and instead returns the empty/null string found from $permissions["module"][$id];. I do understand that I don't have a permissions entry for "modules" because I have it checked as "No Access" at the top level (so for the whole "Events" module). But I don't want to set that as either "Publisher" or "Editor" because that would open up all the groups to my users and basically ignore/override my GBP.
After having thought about it, I'm not sure what the expected behavior would be if, for example, I marked a user as "Editor" for x groups and "Publisher" for y groups. I haven't spent any time looking at the processing to understand how it would behave if a user were to click a "Save & Publish" button for a record that they were technically only an editor of.
Hopefully this all makes sense. I realize I might be trying to do something that was not originally intended and if that's the case, any help/thoughts on how to try and accomplish what I'm after would be greatly appreciated.
Ah, it was so obvious. I don't know why I didn't do it that way. I was naming my file and putting that in the route rather than having a default.php and a blank route.
Thanks again for your help on this!
I ended up going about it a different way. What I was trying to implement/add on to the redirect function was not co-existing well with some of the other urls, particularly in the admin.
I do have one other unrelated question. I have written a custom view but I want it to be the default view for the module. So that when you click on the module from the main list, my custom view is what the user is taken to first. I added it as an action and moved it to the top of the list and then deleted the one created by default but when I choose the module it gives me "Page Not Found". Is it possible to make a custom view the default for a module?
I need to be able to pass url variables to the url of a page's external link so that they also exist on the new url and are present after the user is redirected. I figured out how to do it on the site that I have running 4.2.8 but for some reason the same process does not work on an older site I have on 4.1.5. I've been trying to modify the redirect function so that it appends any variables in the $_GET to the url that the user will be redirected to, but on the 4.1.5 site it's only working in the admin. Is the behavior of external redirects different on that version? Is it possible on that version to accomplish this?
Thanks
Perfect, that worked great.
Thanks
Is there a way to create two separate forms in a module such that one is used only when adding a new item and the other is used only when editing that same type of item? So basically in my navigation there would be an "Add Item" tab like normal which would take me to form A and then once that item was created and placed in the view, the pencil icon would link to Form B. I'm guessing it might be possible but I can't think of how to structure my actions to work for what I want.
Thanks
Ok thanks for the ideas, that makes a lot of sense. I think in the interests of time I'm just going to hard code this one since it's the one and only request we have ever had. But I would like to try and implement what you talked about once I have some free time so I will definitely keep it in mind. Who knows, maybe it could even turn into an extension at some point down the road.
Thanks again!
We have a faculty member who is asking for a decision tree style chart on one of their pages. So it would have a question appear, you choose "Yes" or "No" and then a new question appears based on your selection. Then the user would choose "Yes" or "No" again and the whole process repeats. Ideally I'd like to have this as a callout or even a field type but I'm not sure how to structure it and was wondering if you had ever built something similar? I'm not sure how to indefinitely nest either the matrix or callouts such that I can keep going deeper to add more questions. I'll need some way to associate a question to its parent so that I can have a "Go Back" button that takes them to the previous question.
If you have had any experience building something like this in the past, I would really appreciate any thoughts and ideas you might have!
Thanks
Oh yeah, I forgot that would save me a few steps. Thanks for the heads up, I was able to get it all working correctly!
I'm trying to make a custom settings file for one of my modules. I've done it in the past successfully but always only used basic inputs like text, but now I'm trying to set one up and I'd like to use a matrix field. I'm not sure how to draw or process the field. My thought was that I had to define a $field array with the necessary values and then include the draw file but I feel like there's an easier way that I'm not thinking of. I was wondering if you had any thoughts or had set something up like that before?
Thanks
I'm running 4.2.7 and I think I've found an issue with minimum images sizes not being applied if you're using a defined preset. There's nothing getting defined for $field["options"]["min_width"] or $field["options"]["min_height"] so it's always getting set to 0. If you set the values in the field type options directly then it is getting added correctly.
I'm running Windows 7. Here's a couple screenshots of it, let me know if you need anything else from me!


Yes I am still experiencing it with the browser zoom at 100%. That's interesting that you only see it when you zoom in on yours. It does only seem like the state dropdown is affected if that helps.
Oh ok that makes sense. I was just defining my layout in the wrong spot.
Thanks for your help.
I'm trying to setup a routed template but the design requires an alternative header/footer than our standard ones. However, routed templates seem to pull in the _header.php and _footer.php files even if my routed/default.php file is completely blank. Is there anyway I can set it to not automatically pull in those files? Is my only choice to modify my router.php file?
Thanks
I think there is a bug when using BigTree in Chrome (I am specifically using Chrome 44.0.2403.130, which should be the latest build) where the Text field showing the Address sub type has both the state and country dropdowns about 20px too far down. They appear out of place and don't line up correctly with the other boxes. I believe this can be fixed by changing the display value of the parent container for the select (input_address_state and input_address_country) to flex instead of block. I wanted to post on here first to see what your thoughts were on that before submitting something in GitHub.
Thanks
Ah ok, I thought about that after I made the original post but never walked through the code to see if that was the case. I never saw anything that mentioned that that was possible in the "Developer Guide" so I just quickly (and naively) assumed that it wasn't possible. Thanks for the response!
I have had quite a few different moments where I setup an image upload field for a photo that when implemented in my layout has a defined height/width. I can set a minimum height/width so that the photo is at least the correct size for the space but there isn't as clean of a solution for the many times that people will upload a photo that is way bigger than the dimensions I'm looking for. I can setup a crop and then use the prefixFile function to use the cropped photo in my layout but I still have the original photo on my server even though it'll never be used. I think what might help is the addition of a checkbox or something that allows me to only keep the cropped photo. That way I can mandate a size and be sure that every photo that makes it to my server is the exact size I'm looking for, saving server space and keeping things less cluttered.
I'm having an issue (using 4.2.1 clean install) upgrading to 4.2.2 and it is also affecting trying to upgrade extensions (specifically the one most recently published for Form Builder) and I can't quite figure out what it causing it.
I believe I have narrowed down the bug to something happening in the installLocal (BigTreeUpdater) function. As part of debugging, I've been having the function die right after the call to backupDatabase to make sure everything is getting moved correctly but my core files never get moved to the backups folder. The backups folder and the core-4.2.1 folder are both created and the backup.sql file is stored inside them where it's supposed to be. However on the screen I'm getting a warning for the rename function that moves the old core into the same folder saying "access is denied (code 5)". So I figured something was wrong with either the permissions of the backups (sub)folder when it was being created but the sql file is created in there with no issues so it clearly has read/write permissions for that. Then I thought the permissions might be messed up with the core folder so I duplicated the backupDatabase call to put a second copy of backup.sql in the main core folder and it did that fine as well.
Now if I let the installLocal run all the way through without me killing it, BigTree acts like the upgrade was successful except the message returned says that I upgraded to 4.2.1 (which I'm already on). When I look at the core files and compare them with what I know are updated files from 4.2.2 they don't match so nothing is getting updated. Another weird part is that in the cache/update/core folder the files that were extracted from the update.zip are no longer there but the entire folder structure for the core folder is. Now if I kill the installLocal function before it runs the rename that moves the new core from cache/update/core to core/ then all the files are there extracted properly.
So I'm stuck wondering why it looks like there is a permissions problem but I'm able to create files in all these folders but not move them? The same rename problem looks like it also plaguing extension upgrades when they're both called. Any ideas you have on what problem I might be experiencing would be most appreciated!
It appears that there is an issue with the installExtension function that causes the module form to not be created correctly. Each field is given a numeric column identifier rather than the appropriate text identifier which causes issues when BigTree tries to process the module data when you click "Save and Publish". A quick fix that will solve this specific issue is to go into your database and edit the table: bigtree_module_forms. Find the entry that corresponds to your "Events" module and you'll want to edit the "fields" column, changing the number in each instance of "column":(number) to whatever the title for that field entry is.
So an example for the first two. You'll see "column":0 and change it to "column":"title" and then on "column":1 change it to "column":"description"
You'll need to do this for each instance of "column":(number) in the entire string. Then, update your database with that new string and it should solve your problem.
Obviously this only fixes this specific instance of the problem, Tim and his team will have to publish a solution in an upgrade to fix the code so that the column titles are generated correctly. Also, if you have any other extensions installed you may want to check those for this problem as well (excluding any that don't come with a standard module form).
I created a module form where I have a matrix using a list display directly above a matrix that uses a callout display. There seems to be a problem if matrices appear in that order. The "callouts_no_margin" class gets added to the last matrix and adds a negative margin to it that pushes it up into the matrix above it. I believe the problem is on core/admin/form-field-types/draw/matrix.php line 5: $field["type"] = "callouts"; // Pretend to be callouts to work back-to-back
If I comment that whole line out, the fields display correctly, but based on the comment on that line I wasn't sure if there would be other unknown consequences of me doing that for different form field setups. So I wanted see if you knew if removing that line would negatively impact anything?
Thanks

I'm running BigTree 4.1.5 (although really excited to upgrade to 4.2 soon, love the new Matrix field type) and I found an error when submitting an embeddable form that results from the sqlescape function trying to handle an array and throwing an exception because it is not a string. I've figured out that the problem is the result of using a field type (in this case Text, with a Name sub-type) that saves its information in an array. The sqlescape function is incorrectly called in /inc/bigtree/auto-modules.php line 194 in the cacheRecord function. It passes the entry value which is an array since I'm using the Name sub-type.
Just as an FYI, I've only tried this on an embeddable form with submissions defaulting to pending, although I would assume that it happens in both instances. I wasn't sure whether to modify the cacheRecord function or sqlescape to guard/validate data in arrays. I'm assuming it's the sqlescape function because you still need to sanitize the text in those fields but I'm just not really sure.
Thanks