The Linux Page

page

Actions in Drupal, or should I say Rules?

I spent hours today to find this one module: Rules.

In most cases, you can set up a rule in Drupal with their Actions and Triggers and it will work just fine. The fact is that these options are extremely limited if you want any kind of condition on the Rule before triggering the action.

The idea is very simple:

1. Something happens

2. Check whether it is of interest1

3. Trigger the action

I needed that functionality for a couple of websites because I wanted to get an event whenever someone created a new page, but not for any type of ...

  • 1. This part is what is missing in Drupal Core v6.x

MO Paragraph trimmer filter test page

This page has empty paragraphs at the top (before this line), at the bottom and in between each paragraphs. In a way, this is a weird module!

It use the MO Paragraph trimmer filter1, written in PHP for Drupal 6.x, to remove all of those empty paragraphs. Sadly, there isn't a good way for you to check the page source, but you can test by posting a comment (I think...)

The idea ...

  • 1. Available on the Made to Order Software website.

Taking a Screenshot on Mac OS/X

In order to take a screenshot on your Mac OS/X system, simply type "Apple-Shift-3". Then you will see an image on your Desktop. As far as I know you cannot control where the image will go.

There are many other combinaisons that let you select the part of the screen you want a screenshot of.

The name of the file on your dekstop is "Picture #.png" where # increases as required. Although since 10.4 you can change the file format with a Unix command.

LEFT JOIN not supported

Often, when you use LEFT JOIN, you will have one table and one comparison.

Whenever you need more than one comparison, they must be put between parenthesis, otherwise you get that silly error saying: LEFT JOIN are not supported.

So you need to write something like this:

SELECT *

FROM table

LEFT JOIN other

ON (table.f1 = other.f1 AND table.f2 = other.f2)

WHERE table.f3 = 'something'

Black Hole

You just got sucked in a black hole! Aaaaaaaaaaaaaaaaaaaah!

Alright, really, this page is a test to make sure that only Anonymous users (and the Admin) can see this page. Cool hey!?

 

Advanced Topics about Drupal Development

Managing your own Drupal Download Site

The other day, I was thinking, it would be nice if I could find the way to manage my own download site so people who use my modules that I do not provide directly on https://www.drupal.org would still show as expected (i.e. Green in the update window).

I found this page about it: https://www.drupal.org/node/210984

This is done by creating a service in your Drupal environment. You should use the ready made script named:

project-release-serve-history.php

which you can find in the D6 version of the Drupal project named Project. Being very ...

Ubuntu Versions and Names

The following is a list of the Ubuntu versions with their name.

I find it really annoying when someone says "I have such" and he/she has no clue what version (i.e. 7.10) it is. Then I have to look it up because I don't memorize the numbers to the names, but I know what the numbers entitles.

So... I need a table and I had one on Wikipedia, but that was wiped out. So now, I'll keep my own here and I'll try to keep it up to date. I start with the version Mar 16, 2009 from the Ubuntu Release page. We can hope that they will maintain that page as they move forward though. It ...

InsertNode module for Drupal

This page is an extension to the InsertNode module available on Drupal.

I include here a set of files that one may be interested in to enhance the experience with that module.

If you have another file, let me know, and I might very well include it here (After reviewing the code!)

Thank you.


fckeditor-6.x-2.x-plugin.tar.gz

This file adds two prompts to help enter your [node: ... ] tag. This is based on Zewa's work.


fckeditor-6.x-1.x-plugin.zip

Per Row Highlighting in MS-Access Forms

Today, I found out that the current row in a MS-Access form is not so current.

Somehow, it can extract the data from the current row, but trying to change some parameters on the current box actually affects the entire column. This is because a ContinuousForm includes only one box per column and that box is repeated for each row.

Changing the Width or Height affects the other

Problem

I had a problem with my CuteMenu1 module and tried many times to fix it but just could not find the problem with Internet Explorer.

The fact is that I created dropdowns that are supposed to be full width, but that did not work, somehow.

I wanted each item to have a pre-defined height. So in the style for my DIV I wrote this:

[toc hidden:1]
  • 1. This is a Drupal module. You happen to have Drupal? Download CuteMenu now then!
Syndicate content Syndicate content

SMS From Me Logo

SMS From Me

To automatically start one on one conversations with your online leads.

     

   

Terms of Site Index

Find the page/content you are looking for with our index.