fBoxes 0.1 Released
thursday, december 27, 2007 - 12.01 am
fBoxes is a php class for creating Facebook-style movable boxes in FBML/FBJS. It only works on Facebook FBML pages right now, no normal HTML support (yet). Boxes are fully movable, they can be locked in place, layout changes are saved automatically, multiple sets of boxes can be put on a single page (just initiate a new fBoxes object with a different id)
Download - View Demo
It supports storing user layouts in either a flat file or MySQL database. If you are using MySQL, remember to do your mysql_connect() before calling the load/save functions.
The simple configuration is at the top of fboxes.php:
It supports storing user layouts in either a flat file or MySQL database. If you are using MySQL, remember to do your mysql_connect() before calling the load/save functions.
The simple configuration is at the top of fboxes.php:
// path to your fboxes ajax save script
public $ajax_save_url = '';
// 0 for flat file, 1 for MySQL (you will have to do
// mysql_connect() yourself before calling any load or save functions)
public $db_type = 0;
// for flat file db, box id will be appended
public $db_file_path = './fboxes_store/boxes_';
// for mysql, name of table
// CREATE TABLE fboxes_position (uid BIGINT UNSIGNED NOT NULL,
// id CHAR(16) NOT NULL, data TEXT NOT NULL, UNIQUE KEY (uid, id));
public $db_table_name = 'fboxes_position';
An example on how to use fBoxes is provided in the example_fboxes.php file.
