History of bitweaverFAQ

Version 24

bitweaverFAQ

a list of frequently answered questions

Created by: Anonymous, Last modification: 30 Aug 2006 (12:57 UTC) by laetzer

if you see any errors on this page or if you would like to add some wisdom, please register and edit the page by clicking on the edit icon.

Answers


Releases

How do I get the latest stable version of bitweaver? (official release)

Go to this page: GetCode and follow possibility 2 or 3.

How do i get the latest and greatest of bitweaver? (beta release)

you need access to CVS. to set up cvs and how to use it, please view:
bitweaverCVS

How can i get hold of packages that haven't been released yet?

try accessing /builds/packages and see if the package is available for testing. if it's not available there, you can get it using cvs. for a list of available packages, you can check out CVSROOT and look in the modules file. with most packages, the cvs module name is _bit_<package> (e.g.: use _bit_wiki for the wiki)

What is happening in CVS? How stable is CVS?

CSV branch R1 is considered stable and only bugfixes are going into R1. we have got a database schema as well as an api lockdown. This means that you can update using the cvs R1 branch without much concern. obviously, we're not miracle workers and we suggest you backup your file / database before upgrading (expecially after a prolonged period). for upgrade instructions, please view bitweaverUpgrade



Installs, Migrations and Upgrades

How do i install bitweaver?

first download bitweaver from sourceforge and unpack it in a place of your choice. point your browser to install/install.php, and follow the on screen instructions. after installation, for security reasons we recommend that you set the permissions of your install dir to something that users cannot access it.

What files should i take care of when upgrading?

please view bitweaverUpgrade for details

How do i upgrade bitweaver to the latest version?

please view bitweaverUpgrade for details

I have just upgraded bitweaver to the latest version but i can't log in anymore

since bitweaver is in constant developement, there might be changes to the way logins are handled.
first off, try deleting the cookies in your browser.
if the problem persists after clearing out the cookies, try removing the cookie related entries in tiki_preferences:

Removing cookie related entries in the database


DELETE FROM `tiki_preferences` WHERE `name` = 'cookie_domain' LIMIT 1
DELETE FROM `tiki_preferences` WHERE `name` = 'cookie_path' LIMIT 1


How do i convert my existing TikiWiki install to bitweaver?

download and unpack bitweaver in a place of your choice. make a backup of your database!!!. Point your browser to install/install.php and follow the on screen instructions. when asked what path you want to follow, choose upgrade and point your browser to the backup database first to test if it works. if you are using MySQL, the upgrade process requires at least version 4.1. bitweaver will work on previous version of MySQL as well, but the upgrader requires it. if your host does not provide MySQL > 4.1, you need to upgrade on a server that does and then export / import the converted database onto your host server.

Where can i find more documentation on installing bitweaver?

  • bitweaverRequirements
  • InstallbitweaverDoc
  • bitweaverUpgrade

The installer can't detect my database

Please make sure the database is available from php. to do so, create a file with the following contents:

PHPinfo


<?php
phpinfo
();
?>

and point your browser to it. This will display all your php settings and will also show you if your database is accessible from php. if the database does not show up, you need to recompile php or add the appropriate extension.
If it still fails, please look at install/install_database.php where the database recognition code is. if you can fix the bug, please report it to the bitweaver development team.

During the installation process, I get the following error "bitweaver cannot connect to the database", even though I have checked the database name, username and password to be correct. How can I fix this error?

Errors like might indicate an issue with permissions set in the pg_hba.conf file. This file is used to configure which software is permitted to connect tot the PostgreSQL database. For a detailed overview of this configuration file, please check the PostgreSQL FAQ

I forgot / lost my admin password an cannot access my site anymore. How can i reset the admin password?

Try doing something like this in your database:

Reset admin password in the database


update users_users set hash=md5('foobar') where login='admin';

This should allow you to log in using admin / foobar.



Configuration Problems

I created a custom module and when i inserted it into the layout, the site died.

Unfortunately we don't have an easy way of fixing this yet or for checking for syntax errors when saving a custom module. The data you submitted is in the database in the tiki_user_modules table in the data column. Please edit / remove the data of the culprit module manually.



Documentation

Where can i find Documentation on package X?

in the packages administration screen ( Administration --> Kernel --> Packages ), there is a description of all packages and a link to the relevant page on bitweaver. if the page does not exist here, it is likely that there is no decent documentation for that given package. in this case, you could create such a wiki page requesting for information from the author or someone using the package.

Where can i find Documentation on feature X?

our inline help provides a brief description in virtually all forms and input areas. should something not be clear, please search this site for the feature you don't understand. chances are that it's been answered somewhere. if you find an answer to your question, please add the question and answer to this page for others to use.

Where can i find Developers Documentation?




Theming

How the hell do i create a new theme?

we have an extensive ThemeTutorial, which gives you an outline how our themes work, how you create a theme. it even includes some basic css rules should you not have much experience with css.

How do i change the center width when side columns disappear?

Please note that this has probably become obsolete with R2 thanks to the StyleLayouts.

I use a simple technique where i apply a specific css class name to the center column depending on what side columns are visible. the code in the template looks like this (taken from the native theme):

Adjust css class depending on number of columns


<div id="bitmain" class="bit-cols-{
    if $gBitSystem->isFeatureActive( 'feature_left_column' ) && $l_modules && !$gHideModules and $gBitSystem->isFeatureActive( 'feature_right_column' ) && $r_modules && !$gHideModules
        }3{
    elseif $gBitSystem->isFeatureActive( 'feature_left_column' ) && $l_modules && !$gHideModules}2l{elseif $gBitSystem->isFeatureActive( 'feature_right_column' ) && $r_modules && !$gHideModules
        }2r{
    else
        }1{
    /if}">


all the above does, is apply one of the following classes:

Resultant CSS classes


.bit-cols-1    /* applied when only the center column is visible */
.bit-cols-2l    /* only the center and the left column are visible */
.bit-cols-2r    /* only the center and the right column are visible */
.bit-cols-3    /* all three columns are present */


the corresponding css looks like this:

Sample CSS


#bitmain        {margin:0 0 1em 0.5%;}
.bit-cols-1    {margin:0 1% 1em 1% !important;}
.bit-cols-2l    {float:left; width:77%;}
.bit-cols-2r    {float:left; width:79%;}
.bit-cols-3    {float:left; width:61%;}


Theming with MSIE in mind

we have some theme compilance with MSIE

How do i add google adsense to all my pages?

You can simply include the adsense script in one of your templates such as footer.tpl.
Copy kernel/templates/footer.tpl to your theme directory ( or themes/force/, also see ThemeTutorial ) and insert the javascript there.

Insert something like this into your template


<script type="text/javascript">
    /* <![CDATA[ */
    google_ad_client = "pub-xxxxxxxxxxxxxxxx";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="";
    /* ]]> */
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>




Development

How do i start my own package?

we have some useful documentation on how to start your own package and how to get started on the SamplePackage page.

How do i share a package?

you have written a package and you want to share it with others? currently we don't have a dedicated method / area for this, and we only use cvs to organise our packages. if you drop by IRC, we can have a chat about how and what you want to share.

Where do i put functions?

  • CodingGuidelines
  • if it has SQL, it should go in Class.php or _lib.php file.
  • other functions can be sprinkled in the logic php
  • if two different logic php files need the same function, put it in a Class or _lib

Where and how do i get hold of PHP reserved variables and constants in smarty templates?

PHP reserved variables in Smarty templates


<?php
$_REQUEST
['foo']        => {$smarty.request.foo}
$_SERVER['foo']        => {$smarty.server.foo}
PHP_CONSTANT        => {$smarty.const.PHP_CONSTANT}
?>


What files get included on a typical page load?

PHP file inclusion on a typical page load


<?php
/bit_setup_inc.php
/kernel/setup_inc.php
/kernel/config_defaults_inc.php
/kernel/preflight_inc.php
/kernel/Bit*.php
/liberty/Liberty*.php
/<pkg>/bit_setup_inc.php
/<active pkg>/...
?>
</package>
Page History
Date/CommentUserIPVersion
29 Mar 2009 (23:10 UTC)
try to make column control faq question a little more general sounding
Will69.203.72.16155
Current • Source
Will69.203.72.16154
View • Compare • Difference • Source
xing62.47.253.18953
View • Compare • Difference • Source
xing62.47.240.2552
View • Compare • Difference • Source
xing62.47.240.2551
View • Compare • Difference • Source
laetzer85.178.55.15850
View • Compare • Difference • Source
laetzer85.178.28.6249
View • Compare • Difference • Source
laetzer85.177.83.3648
View • Compare • Difference • Source
laetzer85.179.32.2747
View • Compare • Difference • Source
laetzer85.179.32.2746
View • Compare • Difference • Source
laetzer85.178.47.1444
View • Compare • Difference • Source
laetzer85.178.47.1443
View • Compare • Difference • Source
laetzer85.178.10.6241
View • Compare • Difference • Source
laetzer85.178.62.11740
View • Compare • Difference • Source
xing194.152.164.4537
View • Compare • Difference • Source
Marco Lussetti87.8.239.12536
View • Compare • Difference • Source
xing194.152.164.4535
View • Compare • Difference • Source
xing194.152.164.4534
View • Compare • Difference • Source
xing194.152.164.4533
View • Compare • Difference • Source
laetzer85.178.9.21432
View • Compare • Difference • Source
Dan Nehring68.74.5.15131
View • Compare • Difference • Source
laetzer85.178.61.22930
View • Compare • Difference • Source
xing194.152.164.4529
View • Compare • Difference • Source
Mike Williamson203.173.156.7828
View • Compare • Difference • Source
laetzer85.178.57.10327
View • Compare • Difference • Source
laetzer85.178.57.10324
View • Compare • Difference • Source