#26 Developer Help » Bigtree form builder » September 2, 2018 10:18am

daansk44
Replies: 3

Hey a short question,

How can we call a form (made in form builder) in a template file?
Where is the example file located (the special template).
Now we run into the problem that we can only add a form to a page and can not tweak properly

#27 Re: Developer Help » Add pages using API » November 25, 2017 4:47am

I wanted to do it using PHP (internal),
So you say I can use the createPage($data) class.

How how to add data in that page (using an array)?

#28 Developer Help » Add pages using API » November 24, 2017 3:26pm

daansk44
Replies: 15

Hey,

Is it possible to make a page using the API and fill in the info of the page directly.
Let's say you have a video website. And all video's are uploaded at the back of the server.

So those video's got ripped and the data is putted in the page using the API

The page has a template (lets say video).
That contains the title, the url and the description

Is this possible?

#29 General » Auto width image » September 28, 2017 3:50am

daansk44
Replies: 1

Is it possible to give a image a auto width without changing the codes?

/Daan

#30 Developer Help » portfolio using a routed template » June 15, 2017 6:33am

daansk44
Replies: 1

Hey everyone,

I want to make a portfolio using a routed template.

First of all, I've made an routed templated named portfolio and linked it to a module (portfolio too).
On the /portfolio page I want to make an overview with all the items.
But when you press on a 'photo' of a website I want to load another page /portfolio/name with more information on it.

How Can I do this using a routed templated?

/Daan

#31 Developer Help » Website in two languages » April 3, 2017 6:38am

daansk44
Replies: 2

Heyy everyone,

What is the best way to make your website in two languages (only the front-end).
We want to make the website in English and Dutch (And maby German)

#32 General » Enable SEO rating » January 1, 2017 3:31pm

daansk44
Replies: 1

contact.png

Morning,

Quick question, when I add seo information to a page. I don't see the seo rating (like the image below)
The website is connected with google analytics.
Do I need to enable this somehow :? smile

edit-page.png

#33 General » Images invisible on page » December 28, 2016 8:34am

daansk44
Replies: 1

Good Afthernoon,

I am trying to upload images to a page, but it adds the wrong link (http://domain.comfiles/resources/large_gym.jpg)

This is my enviroments.php (someone know why it does nog work

wrong_page.png

<?
// Time Zone
    date_default_timezone_set("Europe/Amsterdam");
    // 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://domain.lan/";    // "domain" should be http://www.website.com
    $bigtree["config"]["www_root"] = "http://domain.lan/"; // "www_root" should be http://www.website.com/location/of/the/site/
    $bigtree["config"]["static_root"] = "http://domain.lan/"; // "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://domain.lan/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"]["cache_ttl"] = 300; // Number of seconds to keep a cached page
    $bigtree["config"]["sql_interface"] = "mysqli"; // Change to "mysql" to use legacy MySQL interface in PHP.

    // Database Environment
    $bigtree["config"]["db"]["host"] = "localhost";
    $bigtree["config"]["db"]["name"] = "xx";
    $bigtree["config"]["db"]["user"] = "xx";
    $bigtree["config"]["db"]["password"] = "xx";
    $bigtree["config"]["db"]["port"] = "";
    $bigtree["config"]["db"]["socket"] = "";

    // Separate write database info (for load balanced setups)
    $bigtree["config"]["db_write"]["host"] = "";
    $bigtree["config"]["db_write"]["name"] = "";
    $bigtree["config"]["db_write"]["user"] = "";
    $bigtree["config"]["db_write"]["password"] = "";
    $bigtree["config"]["db_write"]["port"] = "";
    $bigtree["config"]["db_write"]["socket"] = "";
?>

#35 Developer Help » Using mollie with Bigtree » September 30, 2016 7:54am

daansk44
Replies: 1

Hellow,

My question off today smile

I am buzzy adding Mollie (dutch payment company) within Bigtree.
In my Template (startpayment.php) I do this:

But when I go to the payment Page I get this
I know bigtree rewrites a lot, haha.
Normally this is working with just php

Fatal error: Cannot redeclare class Mollie_API_Autoloader in /home/onepageshop/public_html/templates/layouts/Mollie/API/Autoloader.php on line 32

<?

//site/extensions/Startpayment.php

include 'extensions/Mollie/API/Autoloader.php';
$mollie = new Mollie_API_Client;
 // = new Mollie_API_Client;
$mollie->setApiKey("test_xxx");



$payment = $mollie->payments->create(array(
    'amount' => $amount,
    'description' => '$DES',
    'redirectUrl' => '$returnsite',
    'metadata' => array(
    'order_id' => $orderID)));

// bewaar de payment_id voor als de gebruiker terugkeert
$_SESSION['mollie_payment_id'] = $payment->id;
echo '<br>';
echo getcwd() . "\n";

?>
<?

//Mollie/API/Autoloader.php

* @license     Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
 * @author      Mollie B.V. <info@mollie.com>
 * @copyright   Mollie B.V.
 * @link        https://www.mollie.com
 */
class Mollie_API_Autoloader
{
	/**
	 * @param string $class_name
	 */
	public static function autoload ($class_name)
	{
		if (strpos($class_name, "Mollie_") === 0)
		{
			$file_name = str_replace("_", "/", $class_name);
			$file_name = realpath(dirname(__FILE__) . "/../../{$file_name}.php");

			if ($file_name !== false)
			{
				require $file_name;
			}
		}
	}

	/**
	 * @return bool
	 */
	public static function register ()
	{
		return spl_autoload_register(array(__CLASS__, "autoload"));
	}

	/**
	 * @return bool
	 */
	public static function unregister ()
	{
		return spl_autoload_unregister(array(__CLASS__, "autoload"));
	}
}

Mollie_API_Autoloader::register();

?> 

#36 Developer Help » Adding an submenu » September 20, 2016 1:41pm

daansk44
Replies: 1

I have found a lot of things using the last post I made.

But I have a new question.

Well I fixed the menu, with this code

<?
$cms = $cms->getNavByParent(0,5);
foreach($cms as $item) {
print '<li ><a href="'.$item['link'].'">'.$item['title'].'</a></li>';
if (!empty($item['children'])) {
  // foreach ($item['children'] as $submenu) {
  //   print '<ul><li ><a href="'.$submenu['link'].'">'.$submenu['title'].'</a></li>';
  // }

}
?>

But I want to load a specific menu, for example
Home
-Contact
--MAKE TICKET
-FAQ
--HOW LOGIN
--HOW TO UPLOAD something (whatever)

I have a header menu
With
[HOME | CONTACT | FAQ ]

But on the FAQ page I want to load the FAQ menu smile, without thousand foreach loops, is there an more simple solution smile

Daan

--

#37 General » Add data to module » September 15, 2016 8:53am

daansk44
Replies: 1

Hi everyone,

I am bizzy with bigtree cms again.
Bigtree is very new for me, so I do not get it completely.

I am trying to make an order form. and I made a module.
How can I insert that kind off specific data into the module / table I made.

add($fields, $values = false, $enforce_unique = false, $ignore_cache = false)


bigtree.png

#38 Re: General » Admin page keeps looping » September 15, 2016 7:39am

I found out that Cloud flare was looping the website for some reason.
Even with a normal certificate

#39 General » Admin page keeps looping » September 12, 2016 9:24am

daansk44
Replies: 2

Sup guys

I got the problem that the admin link (site/admin) keeps looping.
loop.png


<-- Config file

    $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://xx";    // "domain" should be http://www.website.com
    $bigtree["config"]["www_root"] = "http://xx"; // "www_root" should be http://www.website.com/location/of/the/site/
    $bigtree["config"]["static_root"] = "hxxttp://xx"; // "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://xx/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"] = true; // 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"] = true; // Enable Simple Caching    // $bigtree["config"]["cache"] = false; // Enable Simple Caching
    $bigtree["config"]["sql_interface"] = "mysqli"; // Change to "mysql" to use legacy MySQL interface in PHP.


-->

.htaccess file in root dir

RewriteEngine On
RewriteRule ^$ site/ [L]
RewriteRule (.*) site/$1 [L]

The normal site works, but the admin part does not work sad

/Daan

Board footer

Powered by FluxBB

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