Posar firma html al Mail d’Apple

Hauria de ser senzill però no ho és… Passes a seguir:

  • Activar arxius ocults a OSX:
    • Dins un terminal feu: defaults write com.apple.Finder AppleShowAllFiles YES
    • llavors reinicieu el finder: killall -KILL Finder
  • Entreu al mail i creeu una signatura. Et crearè un fitxer elquesigui.webarchive que heu de substituir per la plana .html que haureu preparat abans.
  • Tanqueu el Mail.
  • Obriu el fitxer html amb Safari i el guardeu com un webarchive substituint el que ha creat el mail.
  • Torneu a obrir el mail i si tot ha anat bé hauria de funcionar…
  • Per tornar a ocultar els arxius de sistema dins un terminal feu: defaults write com.apple.Finder AppleShowAllFiles NO, i torneu a reiniciar el Finder.

Referències usades:

http://smokingapples.com/miscellaneous/html-signature-apple-mail/

http://www.macworld.com/article/51830/2006/07/showallfinder.html

http://www.thxbye.de/mac/mac-restarting-the-mac-os-x-dock-finder-spaces-or-menubar.html

Posted in Internet i noves tecnologies | Tagged | Leave a comment

Plugin Jquery per mostrar un mur de Facebook al nostre web

http://www.neosmart.de/social-media/facebook-wall

Interessant plugin fàcil de fer servir per insertar un mur de Facebook directament al nostre lloc web. L’he usat entre d’altres a http://www.gravat.com i http://www.restaurantlallosa.net/ amb Drupal, és simple, net i efectiu. Recordeu que ara Facebook ens obliga  a genrar un token d’accés per connectar amb les seves API.

http://developers.facebook.com/docs/guides/web/

Posted in Internet i noves tecnologies | Tagged , | Leave a comment

Cercador amb AJAX automàtic (a Drupal)

Mai heu necessitat un cercador a Drupal que mostri un llistat mentre s’escriu el text de cerca? (tipus facebook per entendre’ns)

Proveu el mòdul Finder http://drupal.org/project/finder , i podreu filtrar quin tipus de continguts vols mostrar, com s’han de veure…

Posted in Drupal | Tagged , , | Leave a comment

Avís IE6 no suportat (per Drupal o on sigui)

Fa un temps que no oferim suport per a IE6, aquesta és una política desitjada per tots els desenvolupadors web. Ens ha ajudat que grans com Google o la mateixa Microsoft hagin fet el mateix. Us deixo aquí un codi per mostrar un avís als visitants que encara usen IE6 alertant-los per que actualitzin el seu navegador, jo acostumo a posar-ho dalt de tot del Body, però feu el que s’ajusti més bé al vostre web.

Si us voleu carregar de raons davant el client:

http://www.ie6nomore.com/

http://www.ie6countdown.com/

http://www.businessinsider.com/microsoft-launches-anti-marketing-campaign-for-ie6-2011-3

http://ie6funeral.com/

http://www.eweek.com/c/a/Desktops-and-Notebooks/Microsoft-Internet-Explorer-6-Needs-to-Die-834713/

<!--[if lt IE 7]>
  <div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>
    <div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Cierra este aviso'/></a></div>
    <div style='width: 940px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
      <div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='�Aviso!'/></div>
      <div style='width: 475px; float: left; font-family: Arial, sans-serif; padding: 0 15px 15px 0;'>
		<div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>[ca] Vost&egrave; utilitza un navegador obsolet.</div>
        <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>Para navegar d'una manera m&eacute;s segura, actualitzi el seu navegador.</div>

        <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>[es] Usted est&aacute; usando un navegador obsoleto.</div>
        <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>Para navegar de una forma m&aacute;a segura, por favor, actualice su navegador.</div>            

        <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>[en] You are using an outdated browser.</div>
        <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>To navigate in a more secure, upgrade your browser.</div>            

        <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>[de] Sie verwenden einen veralteten Browser.</div>
        <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>So navigieren Sie in eine sichere, aktualisieren Sie Ihren Browser.</div>

        <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>[fr] Vous utilisez un navigateur obsol&egrave;te.</div>
        <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>Pour naviguer dans un monde plus s&ucirc;r, mettre &agrave; jour votre navigateur.</div>

        <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>[it] Si sta utilizzando un browser obsoleto.</div>
        <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>Per navigare in modo pi� sicuro, aggiornare il browser.</div>

      </div>
      <div style='width: 75px; float: left;'><a href='http://www.mozilla-europe.org/es/firefox/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div>
      <div style='width: 75px; float: left;'><a href='http://www.microsoft.com/downloads/details.aspx?FamilyID=341c2ad5-8c3d-4347-8c03-08cdecd8852b&DisplayLang=es' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'/></a></div>
      <div style='width: 73px; float: left;'><a href='http://www.apple.com/es/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div>
      <div style='float: left;'><a href='http://www.google.com/chrome?hl=es' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
    </div>
  </div>
  <![endif]-->
Posted in Drupal | Tagged , | Leave a comment

Títols de node automàtics a Drupal

Quan no necessitem que un node tingui títol, o simplement volem que aquest es generi automàticament podem usar aquest mòdul http://drupal.org/project/auto_nodetitle

Ens permet generar el títol en base a tokens (http://drupal.org/project/token) o bé de continguts cck

Posted in Drupal | Tagged , , | Leave a comment

Assignar un node a un usuari i donar-li permisos d’edició (Drupal)

A vegades ens cal assignar un node a un usuari concret per tal que aquest pugui editar-lo, amb aquest mòdul poden crear una relació d’un node a un usuari i donar-li els permisos que vulguem. http://drupal.org/project/nodeaccess_userreference

Posted in Drupal | Tagged , , | Leave a comment

Debugger de Drupal amb Eclipse

Per debbugar els nostres mòduls amb Eclipse http://drupal.org/node/157609

Posted in Drupal | Tagged , , | Leave a comment

Configurar Eclipse per treballar amb Drupal

Si treballeu amb Drupal (i toqueu una mica de codi o templates amb Eclipse) us serà molt útil configurar l’editor per tal que entengui els fitxers de Drupal. Feu-ho amb aquest plug-in http://groups.drupal.org/node/39938

(Editat 3/8/11)

He trobat també un projecte que configura els hooks a Eclipse http://drupal.org/project/eclipse

Posted in Drupal | Tagged , , | Leave a comment

Personalitzar el tamany d’un flash amb SWFTOOLS (Drupal)

Quan tenim un camp CCK que guarda un Flash i el mostrem amb SWFTOOLS podem modificar la plantilla per canviar per exemple el tamany.

<?php foreach ((array)$node->field_flash_pagina as $item) { ?>
 <?php print $item['view'] ?> Així el mostrem per defecte

 <?php print swf($item['filepath'], array('params' => array('width' => '770', 'height' => '520')));?>
Així el mostrem personalitzant el tamany
 <?php } ?>
Posted in Drupal | Tagged , , , | Leave a comment

Com fer que un link de menú s’obri en una nova plana _blank (Drupal)

El mòdul http://drupal.org/project/menu_attributes pot fer això i moltes coses més.

Et permet assignar ID, classes i posar estil directament des de l’editor de menús.

Posted in Drupal | Tagged , | Leave a comment