Nisi’s work blog

Nisi’s work blog – programing tips

Make your own website toolbar

Have you seen that almost every website have a toolbar? Why? Because with a toolbar designed for a specific website you can get your visitors to return every time you update your toolbar and your site.

Now you can start looking on toolbar tutorials start design one, working hours an hours on debugging and programing and debugging and …

Or … you can get an already available toolbar put your website or application logo put an rss or other already available gadgets and start promoting it. And if you cant find what you need use the toolbar API, html and flash to build what you have in mind.

And yes it is free and more you can make money with it when people download your toolbar.

Lets see some images:

And the money :

Where you can get this toolbar? At Conduit: http://www.conduit.com

Wordpress: get the role of the current user

  1. /* get the role of the current user */
  2. global $current_user, $wpdb;
  3. $var = $wpdb->prefix . ‘capabilities’;
  4. $caps = $current_user->$var;

Restore MySql database using command line

mysql -u USER -p DBNAME < dump.sql

Where:

  • USER is your username
  • DBNAME is Databas witch will be restored
  • dump.sql (any .sql file can be used) is your database dump