User login

Complete

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

Line length for comments to wrap, Drupal best practices

Agaric asked this question on IRC #drupal-dojo, eventually the answer came back: 80 characters.

Thanks add1sun!

IRC is a little like the real sea, and tossing bottles with messages into it...

Agaric asked this question on IRC #drupal-dojo, eventually the answer came back: 80 characters.

Thanks add1sun!

IRC is a little like the real sea, and tossing bottles with messages into it...

<

blockquote>
agaric: coding standards: for long comments (/** *stuff here */) that wrap, we're supposed to hard wrap, right? At how many characters?
Michelle: coding standards?
Druplicon: coding standards is http://drupal.org/coding-standards

Submit buttons can't have description attached via D5 FAPI

Drupal 5 Form API (FAPI) does not allow submit buttons to have a description.

That's all I wanted to say.

Drupal 5 Form API (FAPI) does not allow submit buttons to have a description.

That's all I wanted to say.

Drupal-standard way of including files in modules

For Drupal 7, see module_load_include() and using module_load_include() for a file nested within a module directory.

At least, if we can trust the node module:

How to add a stylesheet in Drupal for a module

Attaching a CSS file via your module is so simple it's not really documented, that Agaric could find with these searches:

drupal add style sheets to module
drupal add stylesheet modules
attach CSS

How to add CSS in Drupal 5

This example is from the book module:

    drupal_add_css(drupal_get_path('module', 'book') .'/book.css');

Attaching a CSS file via your module is so simple it's not really documented, that Agaric could find with these searches:

drupal add style sheets to module
drupal add stylesheet modules
attach CSS

How to add CSS in Drupal 5

This example is from the book module:

    drupal_add_css(drupal_get_path('module', 'book') .'/book.css');

So for your module "example_module," with "example_module_extra_style.css" in a folder css within your module directory, the code would look like this:

Ask Agaric: Multiple section setup

A visitor wrote:

A visitor wrote:

SCP file up to server

Upload a file from home computer to remote server using SCP (through bash shell)

Ebony-697:~/Desktop/BrowserTemp ben$ scp -r module.tar.gz ben@server.example.org:/var/www/html/drupal-4.7.2/modules

IP address can also be used.

uploading to server

Upload a file from home computer to remote server using SCP (through bash shell)

Ebony-697:~/Desktop/BrowserTemp ben$ scp -r module.tar.gz ben@server.example.org:/var/www/html/drupal-4.7.2/modules

IP address can also be used.

uploading to server

Untar a file in GNU-Linux. Or Unix. Using shell. Or other stuff.

tar -zxvf files.tar.gz

Note to self: Don't forget again.

And to tar and zip a directory file 'files' in the first place:

tar -zcvf files.tgz files

And extra bonus, to move the files directory onto a server:

scp files.tgz ben@server.agariclabs.org:~

tar -zxvf files.tar.gz

Note to self: Don't forget again.

And to tar and zip a directory file 'files' in the first place:

tar -zcvf files.tgz files

And extra bonus, to move the files directory onto a server:

scp files.tgz ben@server.agariclabs.org:~

Finding missing person Images Directory when her own CMS says she doesn't exist

(Or: Cracking the case of the recalcitrant images directory)

The client came to me, late at night, distraught, and with numerous PNGs of the crime. He filled up my inbox with desperate messages, and the files attached at the bottom of this post:

  • why???
  • seriously! what the hell is going on here?? the site doesn't seem to be in touch with the server at all!?
  • seriously why? disabled and reenabled the modules, deleted the images folder and remade it

    argh!

(Or: Cracking the case of the recalcitrant images directory)

The client came to me, late at night, distraught, and with numerous PNGs of the crime. He filled up my inbox with desperate messages, and the files attached at the bottom of this post:

  • why???
  • seriously! what the hell is going on here?? the site doesn't seem to be in touch with the server at all!?
  • seriously why? disabled and reenabled the modules, deleted the images folder and remade it

    argh!

Editing other users' custom block content in Drupal 4.7?

In Drupal 4.7, it seems the original creator of a custom block is the only one who can edit its content.

At least, the permissions options under block don't give access to the title and content– just the visibility settings.

In Drupal 4.7, it seems the original creator of a custom block is the only one who can edit its content.

At least, the permissions options under block don't give access to the title and content– just the visibility settings.

Problems with IE5 and the Zen theme

Zen-based themes break rather badly (lose the navigation menu) in Microsoft Internet Explorer 5.00 and, if you look up what's wrong, have the following inscrutable error:

"Object doesn't support this property or method"

I hope this patch fixes it and is in Drupal 5.2.
http://drupal.org/node/110758

Zen-based themes break rather badly (lose the navigation menu) in Microsoft Internet Explorer 5.00 and, if you look up what's wrong, have the following inscrutable error:

"Object doesn't support this property or method"

I hope this patch fixes it and is in Drupal 5.2.
http://drupal.org/node/110758

Syndicate content