Drupal

Queen Rania using Drupal

For those of you who haven't noticed, http://www.queenrania.jo/ is now powered by Drupal! :D

I'm not sure who developed the site but you have my sincere love. :)

More on this at http://buytaert.net/queen-rania-using-drupal

Firefox 5th Anniversary

Mitchell Baker was in Amman to celebrate the 5th anniversary of the best browser in the planet, the event was great and so was the cake. I hope I can get some pictures soon.

More on this at: http://jordanopensource.org/firefox-anniversary

ShooFeeTV.com a comprehensive TV Guide for the Arab World

ShooFeeTV
ShooFeeTV is a content provider and aggregator of Arab satellite channel listings. In addition to centralizing the times and channels for more than 120 channels on ArabSat and NileSat, the original content includes programming and who's who information, video clips, photographs and celebrity news.

ShooFeeTV's vision is to create an entertainment hub accessible across the Arab world and beyond. Plans are underway to include a free-to-air satellite television channel, mobile phone services, podcasts and content syndication through third-party feeds to the electronic and printed media.

The multimedia platforms suit the expansive site, one that is also supported by a database of entertainment information. With 100,000 entries already and increasing every day, users can search for their favorite films, actors and other trivia with a click of the mouse.

Users will also have the chance to express their opinions by rating and reviewing their favorite shows and movies.
The most popular will be highlighted on the home page.
In short, ShooFeeTV will revolutionize the way the Arab world sees television.

Mostre um block apenas para usuários do IE 6

O código seguinte é bem simples, vai no corpo da condição (PHP) da visibilidade do bloco. Se o usuário estiver usando IE inferior a versão 7, esse block será visível a ele(a).


The following code displays a block only to users running Internet Explorer versions less than 7. It should go in the Page specific visibility settings for the block.

<?php
    $browser = $_SERVER['HTTP_USER_AGENT'];

    //running internet explorer
    if($msie = strpos($browser, "MSIE"))
    {
        //version number
        $ver = substr($browser, $msie + 5, 3);

Resetando a senha do administrador do Drupal

Ok, para resetar a senha do administrador (UID 1), você faz o seguinte:

Acesse o seu banco de dados (pela CLI, phpMyAdmin etc) e rode o seguinte query:

update users set pass=md5('NEWPASS') where uid = 1;

Modifique a linha acima, mudando o 'NEWPASS' pela senha que você desejar. Se não ocorrer nenhum erro você já pode usar essa nova senha no seu website.

Adicionando uma View no conteúdo

$name Nome da view para ser adicionada.

$display_id O display id que você quer usar. Coisas como 'page' ou 'block' funcionam aqui.

<?php
function views_embed_view($name, $display_id = 'default') {
  $args = func_get_args();
  array_shift($args); // remove $name
  if (count($args)) {
    array_shift($args); // remove $display_id
  }

  $view = views_get_view($name);
  if (!$view) {
    return;
  }

  return $view->preview($display_id, $args);
}
?>

Então fica assim: <?php print views_embed_view(nome); ?>

Cores nos websites

Se você está procurando coordenar as cores no seu design e aqueles círculos cromáticos estão te deixando louco, eu recomendo essa ferramenta que combina cores que ficam boas juntas a partir de uma cor inicial.

Traumwind 6-Colormatch (cross-browser): http://traumwind.de/blog/trw_colormatch.html

Syndicate content