#1 Developer Help » Displaying a form outside of form builder? » October 23, 2016 9:00am

namtrok
Replies: 1

Hi,

I'm very new to BigTree, and I'm not sure if what I'm asking for is (yet) possible, but it seems that y'all have thought of everything. So I suspect I just need more education.

I want to have a form displayed on a page that doesn't use the form-builder template.

The form-builder template is limiting, and I need some callouts, photo galleries and more on this template. So I've incorporated the fields from the form-builder template so an admin can pick a form/set a thankyou page/specify who receives the notification. However, I cannot figure out how to grab the form on the front end (in the template) and display it.

Thanks in advance!

#2 Re: Developer Help » Admin url is not working on dev site » October 20, 2016 9:32am

Thanks to another developer I changed the following lines to not have the placeholders (this is not intuitive to me!) and now it works!

Specific lines that were changed:

        $bigtree["config"]["admin_root"] = "http://localhost/site/admin/"; // "admin_root" should be the location you want to access BigTree's admin from, i.e. http://www.website.com/admin/
        $bigtree["config"]["force_secure_login"] = false; // If you have HTTPS enabled, set to true to force admin logins through HTTPS
        $bigtree["config"]["routing"] = "htaccess";

The top part of my environment.php file is now:

        // Website Environment
        $bigtree["config"]["debug"] = true; // Set to false to stop all PHP errors/warnings from showing, or "full" to show all errors include notices and strict standards
        $bigtree["config"]["domain"] = "http://localhost/";     // "domain" should be http://www.website.com
        $bigtree["config"]["www_root"] = "http://localhost/site/"; // "www_root" should be http://www.website.com/location/of/the/site/
        $bigtree["config"]["static_root"] = "http://localhost/site/"; // "static_root" can either be the same as "www_root" or another domain that points to the same place -i t is used to server static files to increase page load time due to max connections per domain in most browsers.
        $bigtree["config"]["admin_root"] = "http://localhost/site/admin/"; // "admin_root" should be the location you want to access BigTree's admin from, i.e. http://www.website.com/admin/
        $bigtree["config"]["force_secure_login"] = false; // If you have HTTPS enabled, set to true to force admin logins through HTTPS
        $bigtree["config"]["environment"] = ""; // "dev" or "live"; empty to hide
        $bigtree["config"]["environment_live_url"] = ""; // Live admin URL
        $bigtree["config"]["developer_mode"] = false; // Set to true to lock out all users except developers.
        $bigtree["config"]["maintenance_url"] = false; // Set to a URL to 307 redirect visitors to a maintenance page (driven by /templates/basic/_maintenance.php).
        $bigtree["config"]["routing"] = "htaccess";
        $bigtree["config"]["cache"] = false; // Enable Simple Caching
        $bigtree["config"]["sql_interface"] = "mysqli"; // Change to "mysql" to use legacy MySQL interface in PHP.

#3 Developer Help » Admin url is not working on dev site » October 20, 2016 6:48am

namtrok
Replies: 2

Hello,

I've grabbed a copy of the live site, exported the live database (and imported it locally). I've configured my local apache server and the frontend is loading well.

However when I try to access my local environment's admin I cannot. Instead I'm presented with a BigTree (custom) 404 error. Therefore I know my mod_rewrite is doing it's thing and my request for /admin/ is making it to the BigTree system. However it's not seeing that this is an admin URL.

Here's the top part of my custom/environment.php file... after this it's just DB settings.

       // Website Environment
        $bigtree["config"]["debug"] = true; // Set to false to stop all PHP errors/warnings from showing, or "full" to show all errors include notices and strict standards
        $bigtree["config"]["domain"] = "http://localhost/";     // "domain" should be http://www.website.com
        $bigtree["config"]["www_root"] = "http://localhost/site/"; // "www_root" should be http://www.website.com/location/of/the/site/
        $bigtree["config"]["static_root"] = "http://localhost/site/"; // "static_root" can either be the same as "www_root" or another domain that points to the same place -i t is used to server static files to increase page load time due to max connections per domain in most browsers.
        $bigtree["config"]["admin_root"] = "[www_root]admin/"; // "admin_root" should be the location you want to access BigTree's admin from, i.e. http://www.website.com/admin/
        $bigtree["config"]["force_secure_login"] = [force_secure_login]; // If you have HTTPS enabled, set to true to force admin logins through HTTPS
        $bigtree["config"]["environment"] = ""; // "dev" or "live"; empty to hide
        $bigtree["config"]["environment_live_url"] = ""; // Live admin URL
        $bigtree["config"]["developer_mode"] = false; // Set to true to lock out all users except developers.
        $bigtree["config"]["maintenance_url"] = false; // Set to a URL to 307 redirect visitors to a maintenance page (driven by /templates/basic/_maintenance.php).
        $bigtree["config"]["routing"] = "[routing]";
        $bigtree["config"]["cache"] = false; // Enable Simple Caching
        $bigtree["config"]["sql_interface"] = "mysqli"; // Change to "mysql" to use legacy MySQL interface in PHP. 

In another question, what's the difference between www_root and wwwroot, both are used in various files, but I haven't been able to determine which to use in admin_root and where [wwwroot] comes from or where it's value is set.

The URL I'm trying to load to get to my admin/login is http://localhost/site/admin/

I assume I'm missing something simple?

Board footer

Powered by FluxBB

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