@@ -9,9 +9,9 @@ |
*[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]
|
+*((DataDict)) |
*[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://www.smarty.net/manual/en/language.escaping.php|Using Javascript with Smarty]. |
*[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
|
|
|
@@ -21,7 +21,7 @@ |
*[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]
|
*[http://edevil.wordpress.com/2005/11/14/javascript-libraries-roundup/|A good list of Javascript Libraries]
|
-
|
+*[http://smarty.php.net/manual/en/api.register.function.php|Smarty Register Function Documentation] - easy steps for making custom functions that you can then call from your smarty templates. |
|
|
!How to set up your own custom package
|
|
|
@@ -41,11 +41,11 @@ |
!!Setting up Smarty templates
|
----
|
!!!Including tpl files in the html HEAD
|
-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.
|
+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}{ include file="bitpackage:yourpackagename/subheader.tpl"} |
{CODE}
|
|
|
|
|
@@ -93,9 +93,9 @@ |
|
!!!Browser Detection
|
Bitweaver includes built in browser detection. Browser information is available in smarty templates via:
|
-{code}{$browserInfo}{/code}
|
+{code source="bash"}{$browserInfo}{/code} |
Browser type is reported in:
|
-{code}{$browserInfo.browser}{/code}
|
+{code source="bash"}{$browserInfo.browser}{/code} |
Other properties that are avialable are:
|
*.ua
|
*.version
|
|
|
@@ -114,11 +114,16 @@ |
|
!General Bitweaver Information
|
----
|
+!!Some things about security |
+!!!Use of "tk" value |
+* tk in forms is generated in kernel/BitSmarty.php add_link_ticket(); |
+* the current tk value should be in $gBitUser->mTicket |
+ |
!!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.
|
+{code source="sql"}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}
|
+{code source="sql"}UPDATE users_users SET hash = md5( 'foobar' ) WHERE login = 'admin';{/code} |
|
|
|