Rayed's Real Life

FreeBSD, Linux, Apache, PHP, MySQL, and very little of my life ;)

Archive for the ‘Blog’ Category

Upgraded to WordPress 2.5

leave a comment

I’ve just upgraded my Blogging software to WordPress latest version 2.5

Since I skipped a version I noticed huge improvements, tags, widgets, new dashboard, new interfaces, more info in this post WordPress 2.5

Written by Rayed

March 31st, 2008 at 10:22 am

Posted in Blog

Tagged with , ,

Learning Drupal

one comment

Drupal Logo

Every Eid vacation I end up with an extra free time, I usually use it to learn new stuff, the latest vacation I decided to learn Drupal. Drupal is a Content management system (CMS), it is basically a software to help you manage your content.

Drupal is a modular and customizable CMS, you can use it to build different types of web sites, a Blog, company or organization web site, community website, you name it.

Since last year Abdullah Aldosari start working with Drupal, and as always he started marketing it as the best invention ever, and as always I argued with him that building your own CMS is better, and as always I was wrong :) Drupal is the best invention ever!! okay I am bit exaggerating but please don’t do my mistake, if you are building a new website find your self a CMS and customize it.

Customizing a CMS isn’t that hard, it would be much easier than building everything from scratch, and it will give you many features that you didn’t even think of. Drupal Features

Of course you don’t have to use CMS for every website you build, in many situations it is better to build your own stuff or use a framework instead of CMS. Check Is Drupal right for you to help you decide :)

Written by Rayed

December 30th, 2007 at 9:30 am

Posted in Blog,MySQL,PHP,UNIX,css

Moved to a new server

5 comments

rayed.com to new server with upgraded softwares:
FreeBSD 6.2
Apache 2
PHP 5
MySQL 5

Written by Rayed

June 25th, 2007 at 12:56 pm

Muntaqa the best of Arabic email groups

11 comments


Today me and Abdullah launched Muntaqa.

Muntaqa is a website that collect large number of email groups, e.g. AbuNawaf, and displays them in a single page, people can vote, bookmark, and comment on all emails.

In the front page you will get the most popular emails, so you want miss any interesting emails in the Arabic web sphere :)

Muntaqa works like Digg, but instead of submitting websites, we automatically submit emails from email groups. A big population of computer users in Arab world (at least in Saudi Arabia) still consider the emails as the only form of publishing in the Internet.

Emails are viewed in their original form with all the ads in the original email, we don’t want to hurt group owners business.

Written by Rayed

May 4th, 2007 at 10:04 pm

Posted in Blog,Life,PHP

WordPress 2.1 as CMS

leave a comment

On of the cool new features of WordPress 2.1 is “Front Page” options it allows you to make WordPress front page a static page instead of showing latest post.
This make WordPress suitable as CMS for small websites, without any heavy customizations.

Written by Rayed

April 6th, 2007 at 12:14 pm

Posted in Blog

Supporting right to left writing (for Arabic) in WordPress

30 comments

In my blog I write in both languages English and Arabic, but I have to switch text direction from the template default English direction “Left to Right” to Arabic “Right to Left”.
One way do to it is to add HTML tags in each Arabic entry.
Another way to do it is to utilize WordPress “Custom Fields” feature, WordPress allows you to add custom fields to any entry, so I add a new custom field to my Arabic entries, the key will be “wp_direction” and the value will be “rtl”.
Then from my template I modify “index.php” and add the following code inside the posts loop:

< ?php
$direction = get_post_custom_values('wp_direction');
$style_dir = $direction[0]=='rtl'? ' style="direction:rtl;" ' : '';
?>

Then use “$style_dir” value to switch the text direction on all relevant tags.

UPDATE: As Steve stated in his comment, you might want to change “single.php” template also. Thanks Steve.

Written by Rayed

April 6th, 2007 at 12:08 pm

Posted in Blog,PHP

Fahad weblog

leave a comment

My dear Friend Fahad AlShenaifi finally found a time to launch his blog, http://fahadblog.com/wordpress/

The blog in English, and talk about Ubuntu, computer security, and him self.

Don’t miss his photo gallery.

Written by Rayed

March 3rd, 2007 at 11:29 am

Posted in Blog,Life