====== Custom PageBuilder Add-on ====== This tutorial describes how to create Add-Ons for PageBuilder and package them. You will see how easy it is to extend the PageBuilder with your own scripts and features. In the tutorial below we will start with a very simple PHP Add-On script and then move to a more advanced Javascript Add-on script that we will incrementally improve. We will go from the start to finish and do the full Add-On creation cycle including the package creation. ===== Minimal Add-on ===== The minimum you need to create an add-on script is 2 files: - An Add-on script file - A tool list. ==== Add-on script ==== They are PHP file stored in the **includes/** folder with the **.script.inc.php** extension. Open the WebIDE, click on the WebPage tab and click on the green plus or link **Create a new web page** Lets copy and paste the code below in a new file called **includes/user_connexion_info.script.inc.php** that we will store in the **includes/** folder of our project. Here is some information on your current connections Your on page:".$_SERVER\['PHP_SELF'\]; echo "
Your IP address is:".$_SERVER\['REMOTE_ADDR'\]; echo "
Your browser is:".$_SERVER\['HTTP_USER_AGENT'\]; echo "

Cookies set by this server are:"; foreach ($_COOKIE as $cookie_name => $cookie_value) { echo "
".$cookie_name."=".$cookie_value ; } ?> **/ ?>
Escaping the “[“ and “]” between the