Step by Step guide to add your own sidebar widget.
First you need to create the sidebar widget file within the template you use:
In our case we created a file with Google Adsense as content. After you created the file and his content (in our case mycustomwidget.php), head to your adminstration panel and go to Hooks - New Hook.
Important here is to use the tpl_sidebar hook and in the code field insert the name of your file you just created (mycustomwidget.php).
Now go to any page, news or plugin and your just created sidebar widget is available to use.
You have just created your first sidebar widget, used the implemented hook system within CMS.