Integrating a Trello Board into NuBuilder form

Questions related to customising nuBuilder Forte with Javascript or PHP.

Integrating a Trello Board into NuBuilder form

Postby ernesttan1976 » Sun May 17, 2020 1:54 pm

Hi, I need to know where to put the php and js and html snippets in order to integrate a Trello-like board into a nuBuilder Edit form.
I have tried putting it all into a HTML object but it doesn't work.

The original source of this snippet.
https://phppot.com/php/trello-like-drag-and-drop-cards-for-project-management-software/

This is my website with just plain php file without integration.
https://lean-app-maker.space/nubuilder4/board.php
ernesttan1976
 
Posts: 4
Joined: Sat May 16, 2020 5:38 pm

Re: Integrating a Trello Board into NuBuilder form

Postby kev1n » Sun May 17, 2020 2:21 pm

Hi,

jQuery UI would go in the (Setup -> ) Header. jQuery is already included in nuBuilder, no need to include it again.

The PHP would go in separate PHP files (the ones that are called with ajax).

The other PHP code from index.php can't be added to the HTML object, it has to placed in the BE event or maybe in a (nuBuilder) PHP procedure.
kev1n
 
Posts: 728
Joined: Mon Oct 15, 2018 2:13 am

Re: Integrating a Trello Board into NuBuilder form

Postby kev1n » Sun May 17, 2020 2:58 pm

On second thought, it is even easier if an iframe is used.

1. Add this html in a HTML object. (change the path to index.php and the iframe dimensions)

Code: Select all
<iframe src = "\nu4\libs\trello\index.php" width = "955" height = "800"> </iframe>


2. Change the db config in DBController.php

trello.png
trello.png (9.19 KiB) Viewed 109 times
kev1n
 
Posts: 728
Joined: Mon Oct 15, 2018 2:13 am

Re: Integrating a Trello Board into NuBuilder form

Postby ernesttan1976 » Sun May 17, 2020 10:19 pm

Thank you so much Kevin! :D
ernesttan1976
 
Posts: 4
Joined: Sat May 16, 2020 5:38 pm


Return to Custom Code