skip to main content

kiesler.at

Consistent Control Panel Icons for phpWebSite
updated by rck, 2006-03-29

One of the key features in phpWebSite is the modularity. It's very easy to enhance a installation of phpWebSite with any given phpWebSite module. On the other hand, the modules' look & feel varies quite a bit. Wouldn't it be nice to have at least a slightly more consistent look? I've compiled some more subtle icons for my favourite CMS.

Let's fix that

Connect to your server. You do have a secure-shell access, do you? Launch mysql with "mysql -u user -p database". user and database name can be found in ~public_html/conf/config.php as well as the password you'll be promted for.

The table-contents of phpWebSite are quite... interesting. Consider looking at the image field of, for example, module article by issuing SELECT image FROM mod_controlpanel_link WHERE module="article". See what I mean? Everything is crammed into one attribute called image, instead of eg an attribute for width, an attribute for height, etc.

Updating the database

Too bad, but no big problem. Let's issue the following commands to correct all the image sizes to the values 48 x 48 pixels:

update mod_controlpanel_link set image="a:4:{s:4:\"name\";s:10:\"quotes.jpg\";s:3:\"alt\";s:26:\"Module Author: Tony Miller\";s:5:\"width\";i:48;s:6:\"height\";i:48;}" where module="quotes";
update mod_controlpanel_link set image="a:4:{s:4:\"name\";s:18:\"articlemanager.gif\";s:3:\"alt\";s:19:\"Author: Eloi George\";s:5:\"width\";i:48;s:6:\"height\";i:48;}" where module="articlemanager";
update mod_controlpanel_link set image="a:4:{s:4:\"name\";s:12:\"photobox.gif\";s:3:\"alt\";s:26:\"Module Author: Andy Felong\";s:5:\"width\";i:48;s:6:\"height\";i:48;}" where module="photobox";
update mod_controlpanel_link set image="a:4:{s:4:\"name\";s:7:\"rss.png\";s:3:\"alt\";s:30:\"RSS News Feeds by Wendall Cada\";s:5:\"width\";i:48;s:6:\"height\";i:48;}" where module="phpwsrssfeeds";
update mod_controlpanel_link set image="a:4:{s:4:\"name\";s:11:\"phpwsbb.png\";s:3:\"alt\";s:18:\"Author: Don Seiler\";s:5:\"width\";i:48;s:6:\"height\";i:48;}" where module="phpwsbb";

that's it.




RSSComments - Make a comment
The comments are owned by the poster. We are not responsible for its content.
RSSAll Articles
2008, 2007, 2006, 2005, 2004