Archive | May 2011

Make Flash works with Chrome on Ubuntu 64 bit

  1. Download Chrome for Linux (64 bit .deb package)
  2. Install the package
  3. On shell type:
    $ sudo bash
    If you don’t have wget installed:
    # apt-get install wget
    # cd /opt/google/chrome/
    # mkdir plugins
  4. Get the latest experimental Flash Player “Square” on
    http://labs.adobe.com/technologies/flashplayer10/square/
    and then put it on Chrome plugins folder e.g.
    wget http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p3_64bit_linux_111710.tar.gz
  5. Close and restart Chrome: now Flash 10 is working.

See also:

Joomla Webform alternative: JForms

I don’t use Joomla, but sometimes a friend or a colleague of mine ask me some tips. My answer could be: in Drupal it will take 5 minutes.

Since I’m very open-minded, today instead of replying in that awkward way I try to found an alternative to a very useful module for Drupal called Webform. I’ve found a limited but working equivalent for Joomla called JForms.

Tested on:

Installation:

  1. Install the extension using URL installation and paste the extension link (zip file from link above).
  2. Create a new form (see the visual howto below) with at least one field, one button, a form title, and a Thank you page (eg. index.php)
  3. Save the form.
  4. Create a new menu item from Menu > Main Menu > JForms > Standard forms  and fill the Select Form field.

Now that you’ve a form, you can use it from your site (click on menu item written created on (4) ).

If you have to link two forms together (eg. Customers -> Company), you have to use the DBList field.

  1. Create the Firm form
  2. Create the Customers form
  3. On Customers form add a DBList field

DB List field must have these values:

Table name #__jforms_9c7aa
Field key id
Field value hcf94
Field sort hcf94
  • Table name is the table name (mydbprefix_jforms_9c7aa) with the placeholder #__ instead of mydbprefix_.
  • Field key is id. The form select value will be set to an univocal id instead of the raw value.
  • Field value: value as displayed by the user.
  • Field sort: sort the list by this field.

HTML result:

<select style="width: 70px;" id="h4443_14" name="h4443[]">
<option selected="selected" value="1">Barilla</option>
<option value="2">Parmalat</option>
</select>

When creating a new customer, you’ll see a dropdown with a list of companies from the Company table and the two forms are connected.

See also:

Follow

Get every new post delivered to your Inbox.