How to add new stuff to the sidebarblock ?

Fluff

Joined: 2008-01-30
Posts: 8
Posted: Wed, 2008-01-30 13:52

Hello again :)

I went through the module tutorial and I think i know how it works.
Well i found in all modules that are added to the sidebar a foldes with 2 files
blocks/block.inc and blocks/ImageBlock.tpl
[edit] and what is needed in this files ?[/edit]

I think these files are important for my problem.

then I found in /mytheme/theme.inc

$this->setStandardSettings(
array('rows' => 3, 'columns' => 3,
'showImageOwner' => 0, 'showAlbumOwner' => 1,
'albumFrame' => '', 'itemFrame' => '', 'photoFrame' => '',
'colorpack' => '', 'showMicroThumbs' => 0, 'dynamicLinks' => 'browse',
'sidebarBlocks' => serialize(array(
array('search.SearchBlock', array('showAdvancedLink' => true)),
array('core.ItemLinks', array('useDropdown' => false)),
array('core.PeerList', array()),
array('imageblock.ImageBlock', array()))),
'albumBlocks' => serialize(array(
array('comment.ViewComments', array()))),
'photoBlocks' => serialize(array(
array('exif.ExifInfo', array()),
array('comment.ViewComments', array())))));
}

And if I'm right i got to add something here.

So can anybody tell me what i have to do for adding my module to the sidebar ?

Thx