!Some General Useful Stuff
!!!Bitweaver Stuff
*[http://81.138.11.136:8080/bitweaverdocsPHP/|Bitweaver Class Tree]
*[http://www.bitweaver.org/wiki/TP-Structures|List of BW tables and structures]
*[http://81.138.11.136:8080/bitweaverdocs//////__filesource/fsource_kernel__kernelBitDb.php.html#a498|Built-in Database Query functions available from bw kernel]
!!!Programming Stuff
*((PrototypeDocumentation))
*[http://digir.sourceforge.net/nightly/DiGIRprov/lib/adodb/docs-datadict.htm|ADODB Data Dictionary for PHP]
*[http://www.howtocreate.co.uk/tutorials/index.php?tut=0&part=25|Javascript and Navigating the Dom Tree]
*[http://smarty.php.net/manual/en/language.escaping.php|Using Javascript with Smarty] and elegant solution.
*[http://en.wikipedia.org/wiki/Join_%28SQL%29|DB JOIN FAQ on Wikipedia]
*[http://rafb.net/paste/|Code Paste Board]
*[http://sunsite.mff.cuni.cz/MIRRORS/ftp.mysql.com/doc/en/CREATE_INDEX.html|Creating Indeces for your database tables] as declaired in schema_inc.php
*[http://www.bitweaver.org/wiki/ThemeTutorial#sourcecode|Modifying Smarty for Debugging HTML]
*[http://www.cs.tut.fi/%7Ejkorpela/forms/choices.html|Guide to HTML Forms]
*[http://my.opera.com/community/forums/topic.dml?id=108345|Opera 9 beta]
*[http://my.opera.com/community/customize/setups/|Opera Tools for Web Dev]
*[http://nontroppo.org/wiki/webdevtoolbar|Another Opera tool bar] and [http://nontroppo.org/wiki/MooseCSS|more]

----

!!How to set up your own custom package
This is stuff I have learned about creating packages for bitweaver while creating this GMap Package.

!!!Download the "Sample Package" from this site

!!!Setting up your database tables
Database (DB) Tables are defined in "schema_inc.php"
This file goes in your __admin__ folder. Each package has one of these.

Some conventions to follow when building these:
*use single quotes on DB table scheme defaults
*underscore between each word in table names

!!!Including tpl files in the page header
The bitweaver Kernel is set up to automatically include header information from all packages. Any information you want included in the HTML HEAD you put in a file named "header_inc.tpl" which goes in your package's _templates_ folder.

To create conditional header includes simply nest tpl files in the header_inc.php file. You can do this by using the this include code:

{CODE()}{ include file="bitpackage:yourpackagename/subheader.tpl"}
{CODE}

!!!Permissions
* permissions can only be 30 characters long

!!!Creating the dropdown and side panel menus
Each package has teplate file that has its menus. You need to explicitly declair what you want in a menu in your own template file. For an example see the wiki package menu_wiki.tpl which you can find at:
wiki/templates/menu_wiki.tpl

!!!Preferences
Preferences are automatically created the first time you submit a value for one. This means that a preference can be created for the first time by simply submiting one via a form on the admin_sample.tpl. For more advanced preferences examples look at admin_wiki.tpl or admin_articles.tpl.

If you want to set default 'y' values for your package preferences during install, you declare these in the __schema_inc.php__ file in __admin__. You do not need to set a preference for any that you would give a 'n' value to.

The admin preferences panel is displayed via __/admin/admin_sample_inc.php__ usng the __template /templates/admin_sample.tpl__

Any prefereces set can be checked with __isFeatureActive()__

The admin menu is shown via __templates/menu_sample_admin.tpl__


!!Troublshooting Your Bitweaver Install
!!!Admin Locked Out
Try deleting your bowser cache and cookies for the site. Also try deleting from the database using the following:
{code}DELETE FROM `tiki_preferences` WHERE name ='cookie_domain';{/code} Do the same for cookie_path.

If those don't work, then try resetting the admin password to 'foobar' using this query:
{code}UPDATE users_users SET hash = md5( 'foobar' ) WHERE login = 'admin';{/code}
Page History
Date/CommentUserIPVersion
01 May 2009 (21:15 UTC)
fix broken SMARTY link
Daniel Sutcliffe71.161.102.615
Current • Source
Marko Weltzer212.202.41.114
View • Compare • Difference • Source
hiran85.233.40.19213
View • Compare • Difference • Source
Will68.174.96.10112
View • Compare • Difference • Source
Will209.19.246.211
View • Compare • Difference • Source
Will68.174.96.10110
View • Compare • Difference • Source
Will68.174.96.1019
View • Compare • Difference • Source
Will68.174.96.1018
View • Compare • Difference • Source
Will68.174.96.1017
View • Compare • Difference • Source
Will68.174.96.1016
View • Compare • Difference • Source
Will68.174.96.1015
View • Compare • Difference • Source
Will68.174.96.1014
View • Compare • Difference • Source
Will68.174.96.1013
View • Compare • Difference • Source
Will68.174.96.1012
View • Compare • Difference • Source
Will68.174.96.1011
View • Compare • Difference • Source