Syndicate content

Page list for Drupal

  • I suppose we could talk about security all day and only barely touch the tip of the iceberg, if even more than a spec of it.

    Yet, I wanted to mention that in many instances, there are such limits to the characters you can use in a password that already the provider prevents you from creating a string password in the first place!

    So... what is it I'm talking about?

    I have one company I work with that does not support anything more than letters and digits. Not only that, they limit your password between 6 and 10 characters. Everyone knows that 6 characters is cracked very very quickly and

  • With Drupal, it is possible to have many sites defined in many different ways.

    These are the things you can have in your URL that Drupal will understand and use to configure your site. The configuration file is called settings.php and will reside in a folder of which the name is determined using the URL used to access the site.

    1. Fully qualified domain name

    2. Port

    3. Path withing the website

    Sites are expected to be found under the 'sites' folder found in the same directory as the index.php file.

  • See attachment at the bottom for sample code that fails in different versions of PHP 5.2.x

    Today a customer told me that his pages disappeared on his Drupal site.

    I looked into it and after a few hours determined that a module was the cause. Then I looked in the module and the only part I could see that could possibly be wrong was the preg_replace_callback() call.

    So I got the input data from one of my customer pages and run the PCRE against it in an interactive version of PHP. That gave me the same result: nothing.

    The expression started with (?:<p.*?>)?\[ and it used the /s ...

  • Somehow, whenever I tried PHP CLI, it would crash because of PostgreSQL. (i.e. if I use the database in PHP through Apache, no problem, but the same script run via the command line, and it crashes on exit, no matter what I do with the resource handle.)

    I was puzzled and did not really know what to do, but some people have found the solution. Now, what is really surprising is the fact that it has been around for ages and not yet fixed in the system.

    The fact is, it does not matter too much as long as there is a work around, but you need to apply it yourself...

  • Today I learned that not defining a variable in PHP would generate a notice error.

    I had been wondering, why it is that so many people in Drupal define their variable or check them with isset()? That's why. In a way it is terrible that you can use a variable that does not exist and just get NULL, on the other hand, quite often that's because you intended to use another variable... (i.e. $create instead of $created, you declare $bool in one function and use it again in another, etc.)

    This applies to objects, array indexes, and just plain variables. If you write:

  • If you don't work on creating web pages, you are probably not much aware of the creativeness necessary to make them work in Internet Explorer 6.0 and older.

    Today, I had to make PNG images work in IE 6.0 since one of my customers still has that version of the browser and his website has several PNG images that require to have a working alpha channel.

    [toc hidden:1]
  • As I was moving my Drupal 6.x websites from an old server to a new one, I decided to make use of the newest PostgreSQL database system because over time I've notice quite a few things that got fixed and thus it is a lot better! (It is not as exciting as moving from 7.4 to 8.0 way back then, but still!)

    Doing so, my Drupal site started showing WSOD (White Screens Of Death). Looking at the errors in my apache2 logs, I noticed that the error was in link with the cache. Looking closer, I could see that the cache (one of the only table doing so) makes use of the %b flag which means blob. It ...

  • It took me a little time, but I finally search and found the reCAPTCHA.

    The default CAPTCHA for Drupal looks awful. It is called Image and creates very ugly extremly hard to read images. So I always wanted to switch to reCAPTCHA that is not perfect but looks a lot better and has audio availbale.

    So today I found it, it is here: http://drupal.org/project/recaptcha

    Note that you still need the CAPTCHA system, it just adds one more option which is reCAPTCHA instead of Image. (at leat, that the way I use it.)

  • System tables and how to edit them is just not defined in the SQL language, unfortunately. So different database systems have different solutions to handle their table declarations. PostgreSQL is no different.

    In most cases, MySQL uses some special instruction to update system information. In PostgreSQL, you have internal tables that the administrator can access and tweak as required.

    [toc hidden:1]
  • Today I ran in an error that looked like this:

    Invalid argument supplied for foreach() in <path>/modules/taxonomy/taxonomy.module on line 1214.

    The line number may vary depending on the version you are using. At the time, I had Drupal 6.14 and the line number was 1214.

    The problem is with a node that has an invalid definition of its taxonomy field. In other words, the $node->taxonomy is not defined. If it were an empty array, the function would not fail.

    [toc hidden:1]
Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

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

  • Gibbon
  • WYSIWYG

    What You See Is What You Get--editors that are used to create content and are capable of showing you how it will look like in the final document are called WYSIWYG editors.

  • WebDAV
  • browser
  • email