Sym Paradise
The Boxes Paradise
Home
  • My Menu
    • Log In
  • Contents
    • Discussion
    • Help
      • User Help
        • Installation
        • Others
      • Developer Help
        • Drupal
        • Others
      • Box Request
  • Library
    • Main Library
    • Search Boxes
  • Handbooks
    • User Handbook
    • Developer Handbook
    • Using This Site

Box's File Structure

12th Jun 2009, 12:40:51 AM
Box File Structure
Figure 5 - Box File Structure

A full explanation of a Box's File Structure is presented here.

 

html Folder that contains all the necessary files to build the javascript file
    start.html Code that starts a Box without a Title
    start_title.html Code that starts a Box with a Title
    mid.html Code that closes a Title, and starts the Contents
    end.html Code that closes a Box
    script.html List of extra javascript files to be included for Box construction, separated by spaces
res Folder that contains all the necessary files to build the box (image files, and extra javascript files)
    id Box ID
        *.png, *.jpg, *.gif
Image files needed to construct your Box. Not limited to these image file extensions.
        *.js
Extra javascript files to be included for Box construction
        style.css CSS file for the Box
map.jpg Image file that contains technical specifications of a Box
theboxesparadise_id.inc Drupal Panel Style file for a Drupal Solution
theboxesparadise_id.js System automatically generated file, you need not create it.

 

 

Html Files

All Html Files are compulsory. You must be able to render a Box with Title or without Title. Even if your Box doesn't need any special markup for the Title text, you must still create the mid.html, which in this case, will be empty. start_title.html must then contain duplicated contents from start.html. The rationale is that, in the case where the user does not know your Box support a Title, he must still be able to call out the standard set of API calls without any error.

The attribute values of your Html tags must be double-quoted. For example, <table width=100%> and <table width='100%'> are both wrong. <table width="100%"> is correct. TBP does not guarantee that your code will be rendered correctly if you do not adhere to this policy.

Even if your code here uses functions from extra javascript files, you should use it as though the functions were already available. This is because tbp_id_getHeader() will render the necessary extra javascript files to load on the actual web page where this Box is used, which will then expose those functions for you to use.

 

Res Files

style.css is compulsory. You are not restricted to the number of image files or javascript files. Most techiques do not need any extra javascript files, and just rely on CSS coding. JS files are entirely optional. If you do use, do remember to include them in scripts.html, delimited by spaces.

 

Root Level Files

map.jpg is compulsory.

The INC file is used for a Drupal Solution, and Box Developers are strongly encouraged to provide it. The JS file is a system automatic generated file. It uses information from the Html files to generate this file. This is the only file that a Box user needs to include in his web page to construct your Box. The file naming convention here follows theboxesparadise_id, where id represents your Box ID.

 

File sizes

The maximum disk space your Box can use is 5MB, which in most cases, is more than enough. If you feel that your Box needs more than 5MB in exceptional cases, email your case to our Review Team here, and TBP will get back to you asap.

  • Printer-friendly version
  • Login or register to post comments
  • 607 reads

Developer Handbook

  • Starter's Kit
  • How to find out your Box ID?
  • Box's File Structure
  • Before submitting your Box
  • If you need help
  • FAQ

Box Usage Statistics

Box Countersort icon
TBP 16 150514
TBP 50 120877
TBP 66 99802
TBP 36 93570
TBP 83 55350

Popular Boxes

  • TBP 72 (5,128)
  • TBP 66 (4,818)
  • TBP 3 (3,716)
  • TBP 71 (3,558)
  • TBP 30 (3,542)

Recent Box Requests

  • Blue response box
  • slightly embossed box that can be color filled to reqs
  • Panels 3 - Nice normal box
  • 3D Box, Bevel, Aqua-like

Recent Developer Help Posts

  • I have been unsuccessfully trying to create my client's design of a highly stylized box in Drupal 6 using Panels 3.

Recent User Help Posts

  • TBP for nice-menus?
  • Page load time
  • Where to put table when creating 3 boxes
  • print box for each content posted
  • $idstr empty?
  • Box Sizes
  • Can't find Javascript code on download
  • Panels 3
  • Can I customize the font or color, of the title and the contents inside the Box?
  • How can I embed a TBP Box on my web page?

User login

  • Create new account
  • Request new password
Copyright © 2009 Sym Paradise. All rights reserved. Terms of Use | Copyright Information