You are not logged in.
I am trying to use the 'Events - Date Choose' field outside of the events module but it does not work like in the Events module.
For example, I added it to a different module and when I select the Reoccur list, nothing happens.
Some things I tried
I added the same fields in the database and looked at the modules.json code and used the same code.
I tried to create my own field and copy the code of draw, options and settings files. It was the same issue as using the original.
I added BTXEvents the the Class Name in the module.
Is there a way to use the Events - Date Choose field in a different module?
Thanks
You might have to truncate the bigtree_module_view cache table.
You need to look for that templates php file in the templates folder. Then add code to show the subtitle and you can style it there as well.
In the environment.php file, you can can change the time zone.
The oAuthSetToken function doesn't seem to be creating the token. I even tried to Authenticate and Save Code without entering anything in the field and still gave me a success message.
Thanks for the update.
Tim,
The code from google doesn't seem to be saving for me. When I go back to analytics, it is still asking to authenticate. I tried on my local and live websites. The token is empty.
Any ideas?
Thanks
Hello,
I was getting a "No profiles were found in your Google Analytics account."under Analytics. Which was odd because it was working before. So I Disconnected and tried to Authenticate. I sign in with my email account and get warning below.
"Google hasn’t verified this app
The app is requesting access to sensitive info in your Google Account. Until the developer (info.fastspot@gmail.com) verifies this app with Google, you shouldn't use it."
I go to site to get code anyways and copy code. It says successfully authenticated but nothing happened.
I still get the "To connect Google..." and Enter Code Here field to authenticate. I tried hard refresh and logging in/out.
Any ideas why it is not connecting?
bigtree 4.4.12
Thanks
Hello,
When you removed the IP address feature from form builder, the "IP Address of Submitter" label still shows up when viewing an entry. In view-entry. php, you would want to remove the code below.
Version 2.5.2
<fieldset class="form_builder_entry_right">
<label><strong>IP Address of Submitter</strong></label>
<p><?=$entry["ip"]?></p>
</fieldset>Thanks, this worked.
Hello,
I reordered my module menu in Actions. When I go back to view my module, the left most menu is not the active menu, instead it is showing the original menu as the active one. The two menus are View menus.
I was expecting the left most menu to be the active menu, is there something I'm missing in the Actions area when reordering the menus?
Thanks
Saw on github you had already fixed the issue.
I think I found the issue and it is possibly a bug. I was getting the error below.
(index):145 Uncaught TypeError: Cannot read property 'indexOf' of undefinedIt was referring to core/admin/modules/files/add/file.php, line 42 which checks if it is a svg.
Instead of
} else if (file.type.indexOf("image") !== -1 && this.type.indexOf("svg") === -1) {it should be
} else if (file.type.indexOf("image") !== -1 && file.type.indexOf("svg") === -1) {Once I changed it from "this" to "file", I was able to upload an svg file.
Hello,
I just upgraded to bigtree 4.4.11 locally and tried to upload an svg file through Files > Add Files. It it seems to hang once I select the svg file.
I tried adding different variations of the below code to .htaccess and httpd.conf(Mamp) but still same issue.
Tried without the periods before svg and svgz.
Tried without AddEnco... line
AddType image/svg+xml .svg .svgz
AddEncoding gzip svgz
Any suggestions to why its not working?
Thanks for the information Tim!
If I set a page to expire and after it expires , I was expecting the subpages of that page to not be available and show a 404 error. But you can still go to the subpages if you know the url. I was expecting it to act like an archived page, where page and all subpages are archived.
I'm not sure if this post should be under Bug Reports or Feature Requests.
Thanks
Thanks Tim, that worked!
Tim,
I figured out my issue but was wondering if I can pass a variable through the List Parser Function field. I want to pass the id of the row editing in the module.
For example:
List Parser Function field: policy::getPolicy($rowId, $data, $type)
Is this possible?
BigTree
BigTree::redirect($url = false, $code = ["302"])
BigTreeModule
$module = new module_name
$get = $module->getAll($order = false, $columns = false)
This is how we do it, hope this helps.
Thanks, I will create the ip column.
I'm testing out form builder v2.5 and when submitting a form and viewing the entry. The IP Address of Submitter is blank. Looking at process.php, it looks like it is trying to insert the ip address in an ip column in the btx_form_builder_entries table. There is no ip column in that table.
I downloaded the form builder extension and copy/pasted into the extensions folder to upgrade. Would it create the column if I upgraded through Bigtree > Developer > Extensions?
Hey Tim,
I removed the if else but all the items are still in the selected section.
https://imgur.com/a/nSwv80J
$return_data = array();
// if not selected
// if ($type === true) {
foreach ($policies as $item) {
$category_name = "";
$category = json_decode($item["category"]);
if($category[0]) {
foreach ($categories as $each) {
if($each["id"] == $category[0]) {
$category_name = " (" . $each["name"] . ")";
break;
}
}
}
$return_data[$item["id"]] = $item["policy"] . $category_name;
}
return $return_data;
// } else {
//return $data;
// }I added a One to Many field type to a module and trying to use the List Parser Function to display a different title. I have the new title displaying if not selected but if I add an item and save and then go back. The selected item title is the original, not the title from the List Parser Function. I'm not sure what I need to do to show the new title after its been added?
I was referencing this example you had
function parseManyToMany($data,$type) {
$return_data = array();
// If $type is true, we're parsing the full list of values available for a user to tag
if ($type === true) {
foreach ($data as $id => $description) {
$return_data[$id] = strtoupper($description);
}
return $return_data;
// If $type is false, we're parsing the currently tagged values
} else {
// Let's leave it how it is.
return $data;
}
}I thought if I put the description in the else, it displays the new description but it also has all of them in the added section.
Thank you Tim!
Just updated v4.4.3 locally and want to remove the comment "Generated by the BigTree CMS https://www.bigtreecms.org." from sitemap.xml. I know I can remove it from the original sitemap.php but I copied sitemap.php and moved it to /custom/inc/bigtree folder. The comment is still showing up.
I deleted the sitemap.xml from the cache folder as well so it would create a new one but that didn't work.
Should I be editing the original sitemap.php?
Thanks