User login

Complete

To be used with care. Pages are complete only when they meet the posting guidelines.

Site of the Day: browsershots.org

straight from http://browsershots.org

What is Browsershots?

Browsershots makes screenshots of your web design in different browsers. It is a free open-source online service created by Johann C. Rocholl. When you submit your web address, it will be added to the job queue. A number of distributed computers will open your website in their browser. Then they will make screenshots and upload them to the central server here.

Get the path to a Drupal module or theme

This is a very useful function in Drupal's API that is hard to find searching online for file system paths to Drupal modules or themes or anything like that.

So to get the path to a Drupal module or theme it's as simple as:

<?php
  drupal_get_path('module', $module_name);
?>

or:

<?php
  drupal_get_path('theme', $theme_name);
?>

See what Subversion repository you are drawing from with vi .svn/entries

See from what repository checked out subversion code is from by looking at the entries file in a dot SVN folder:

ben@server:/var/www/drupal-5-live/sites/democraticmedia.ca$ vi .svn/entries

Here is the key line, "https://dev.grassrootsconnection.org/svn/drupal/anderson/trunk/democraticmedia.ca," from this output:

8

Adding a new version of Drupal core to Agaric's Piston-enabled deployment system

cd /RCS/agaric/drupal-core/
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-6-3 -d drupal-6 drupal
sudo svn add drupal-6
sudo svn commit -m "Drupal 6"

drupal-6 and DRUPAL-6-3 need to be replaced with the major release and point release that you are dealing with (though with luck we'll have moved from CVS soon and this will all be moot).

Error caused by misplaced parenthesis in drupal_set_message() function with error option.

An error with installing the databases (not visible here, the problematic database failed silently. The duplicate key error below has to do with a database not being deleted on uninstall.)

Temporary Local Problem 451 and Rejected E-mail

Update: Apparently all caused by the server name listed as sending, that domain name not resolving.

That domain name is sort of represented as example.net in the dumps below.

Getting identical messages, in one e-mail, regarding two totally separate servers...

<

blockquote>
This is the mail system at host mail.democraticmedia.ca.

Fanning the fire....

Just to add fuel to that particular fire here on this site too :P

Why do people use two spaces after a period ?? WHEN THEY ARE USING A VARIABLE WIDTH FONT

and not a fixed width font !!!!!!

I cannot stress this enough! Back in the day when fonts had nothing to do with computers and mostly just type writers, every character had a fixed width of space that it would occupy, on a typewriter this was the width of that tiny stamp arm that slapped the page each time you hit a key. Thus started the practice of formatting text with two spaces after a period

Number 2 and nothing else on some pages at some links in Drupal

Page contains only a numeric representation of 'two'

Research:
Menus missing, user login page not found
http://drupal.org/node/161106

content won't display on the administer page, except for the number "2"
http://drupal.org/node/233581

Answer:
The Number 2

This is very embarrassing. I took all these notes and then never recorded the answer, which I know I found.

Why not WYSIWYG: Style and Markup for Content Management System web sites

The below is the why that goes with this how: Style content in Drupal using standard HTML tags (and have it match your custom site perfectly and meet your styling needs!)

Gus:
any ideas for adding text size and color to the BUE editor = my current mission
ask them what styles they want to add
just font size
and font color

Functions needed to define a new CCK field; Field placement module thoughts

If we were to implement Field Placement's imagecache preset option as a CCK field itself, here are (a lot of) the parts we would have to implement, drawn from imagefield itself. Many helper functions left out, but the below code is the gist of defining a CCK field type.

All in all, it seems like more work than warranted to display a setting option that does not get displayed on the node itself, but rather affects the display of another CCK field.

Syndicate content