How to test a user is logged in?
In php:
if( $gBitUser->isRegistered() )
In smarty:
{if $gBitUser->isRegistered()}
if( $gBitUser->isRegistered() )
In smarty:
{if $gBitUser->isRegistered()}
A list of common questions asked on IRC (with answers) that should be documented somewhere. :)
$gBitSystem->mServerTimestamp->strtotime(...); and $gBitSystem->mServerTimestamp->strftime(...); as straight replacements.
{$timestamp|bit_short_datetime}
$gBitSystem->mServerTimestamp->strtotime(...); and $gBitSystem->mServerTimestamp->strftime(...); as straight replacements.
{$timestamp|bit_short_datetime}
{biticon ipackage='sheets' iname='icn_budgetgraph' iexplain='Graph'}
'my_faq' => " faq_id I4 AUTO PRIMARY, question C(255) NOTNULL, answer C(255) NOTNULL, ",
$my_data = array( 'question' => "What is this project?", 'answer' => "Its Bitweaver Application Framework!", );
$gBitDb->associateInsert( 'my_faq', $my_data );
The user name is {displayname user_id=$gBitUser->getUserId()}