The admin menu is shown via __templates/menu_sample_admin.tpl__
|
|
|
+!!Interface ( HTML ) Development |
+!!!Add Animated Warnings |
+__This explination is not perfect, and needs reworking. But it is close.__ |
+The animated warnings you sometimes see when you tell bitweaver to do something stupid can be easily added to any page. The necessary javascript is usually added to all bitweaver pages. It comes from the file: __util/javascript/libs/fat.js__ |
+ |
+To add an alert div you can call __kernel/smarty_bit/function.formfeedback.php__ or just include a div something like this: |
+ |
+{code} <div class="clear formfeedback"><ul><li id="fat4046" class="fade-000000 warning"><img src="/bw/liberty/icons/warning.png" alt="warning" title="warning" class="icon" /> This is a Warning.</li></ul></div> |
+{/code} |
+ |
+!!!Using Wiki Syntax and Parsing for HTML |
+Enabling Syntax support in your package is easy as is parsing it for HTML display. Nothing special needs to be done to use a particular syntax, you just insert it into your database table as is. When you want to display it in a HTML page, you parse the data using a built in parser. In your __load()__ function you include this line: |
+ |
+{code}$this->mInfo['parsed_data'] = $this->parseData( $this->mInfo['data'], $this->mInfo['format_guid'] ); |
+{/code} |
+ |
+the first value is the raw data, and the second value is the syntax type. The site's defualt, as set in admin->liberty is used if none is specified for the individual object. Each object can have a specific syntax specified for it. Take a look at the Sample Package, and also look at the Wiki Editing html page and note the syntax options. You can find all parsers included with Bitweaver in __liberty/plugins/__; look for files like format.*.php |
+ |
+!!!Browser Detection |
+Bitweaver includes built in browser detection. Browser information is available in smarty templates via: |
+{code source="bash"}{$browserInfo}{/code} |
+Browser type is reported in: |
+{code source="bash"}{$browserInfo.browser}{/code} |
+Other properties that are avialable are: |
+*.ua |
+*.version |
+*.maj_ver |
+*.min_ver |
+*.letter_ver |
+*.javascript |
+*.platform |
+*.os |
+*.ip |
+*.cookies |
+*.ss_cookies |
+*.st_cookies |
+*.language |
+*.long_name |
|
!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} |
|