Daglees

Syndicate content

Drupal

Drupal-based Cinema Guide!

I've been working on an online Cinema guide that has the Arab world as its primary target audience for the last few weeks. It's basically a Drupal-based multisite (using Domain Access to manage the databases). Going to release a case study on that once the project is done.

So I was reading my feeds this morning as usual and I find this, which lead me to this. This is one of the first sites providing this sort of functionality done on Drupal. And it's Brazilian. :D

Refilmagem is a Drupal-based website with movie showtimes available for several Brazilian towns, designed by Zee (would love to lay my hands on their themes ;))

The website is located at http://refilmagem.com.br (it seems to redirect you to São Paulo if you're outside Brazil).

Good job everyone involved in this.

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

in

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

in

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

in

$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

in

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

Powered by Drupal, an open source content management system