Different Background for Each User

Hello,

I would like to setup a different background image for each user. (My site only has 10 users max.)

I am not sure how to accomplish this. I could duplicate my theme 10 times and assign one theme per user, but that seems that a waste of resources when all I need is a custom background image.

Any suggestions/ideas?

Thanks!!

hook_file_insert(): Drupal is not calling this hook as to ALL inserts into "/sites/default/files/"

Hi

Question: How can I get Drupal inform me of ALL inserts it is performing into /sites/default/files/?

I have implemented within my module hook_file_insert().

When I upload an image Elephant.jpg, then Drupal calls this hook with file information of uri containing public://field/image/Elephant.jpg, and this file exists within sites/default/files/field/image.

Drush works on 1and1. How to get past "Your command line PHP installation is too old. Drush requires at least PHP 5.2.0" messag

I had a little trouble installing and using drush on 1and1, and I wanted to post back the solution that worked for me. It's taken right from drush installation notes, but like all things opensource, it's good to spread the SEO to specifically 1&1 hosting which defaults php interpreter to php4. Drush needs php5.

Per the instructions, just force php5 by creating a .profile (you probably don't have one yet) in your home directory that contains:

Discussion: Propose new file hook to handle FILE_EXISTS_RENAME policy?

Reference:
http://api.drupal.org/api/function/file_create_filename/7
http://api.drupal.org/api/function/file_destination/7

Hi

The renaming policy FILE_EXISTS_RENAME is currently enforced based upon local file naming, see: file_create_filename() function.

Discussion: hook_file_insert($file): Why does $file object not contain replace policy for existing files?

Reference:
http://api.drupal.org/api/function/hook_file_insert/7

In reviewing the attributes (filemime, filename, size, uri, timestamp, status, etc...) of $file (stdClass object) that is passed to hook_file_insert(), I am surprised that it is missing the attribute defining what is the expected Replace policy for Existing Files (providing one of these values: FILE_EXISTS_RENAME, FILE_EXISTS_REPLACE, or FILE_EXISTS_ERROR).

Is this by design?

Thanks

File API or Variable: Get current Replace Policy for Existing Files?

Hi

Is there a Variable or File API function that holds what is the currently configured flag when dealing with existing files?:

  • FILE_EXISTS_RENAME
  • FILE_EXISTS_REPLACE
  • FILE_EXISTS_ERROR

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x