I'm quite new to drupal and am trying to continue my module developement for drupal 5.
Today I commited myself to changing my hook_form_alter function adding formelements either to a node or node setting.
http://drupal.org/node/64279#node-type-settings shows that now when checking for the node-type in the node settings you need to use $form['old_type']['#value'] instead of $form['type']['#value']
I'm not much of a coder (yet! ;) ), but I thought that we (as in: who ever might be interested) could make a little module that allows to convert the users eMail into an image and display it on the (overridden) user page. As you might have guessed it's to prevent spam... I looked around a bit, and found this script that does exactly that. Unfortunately I'm useless at coding, so I have no idea what to do with it. I'd be gratefull if anyone would like to help me with this, I'm sure it'll be usefull to many who want to protect their users.
If there's something like this out there, I'm sorry for posting this, but since I couldn't find it...
here's the code (special thanks to http://chxo.com/labelgen/ ):
I was trying to setup an image gallery using the image_import module. On clicking "create content->import images" I got the error: "Upload module has not yet been configured".
I think the version of image_import I was using was meant for drupal 4.6 instead of 4.7. Looking through the code (in file image_import.module) I found that the "_image_import_check_settings" function was calling:
I would like to make my gmaps center on the user's location if it is available or use the default center if it is not. For example, clicking on the user locations menu item will show the user map centered and zoomed on the user's location so he could see who is in the immediate area. Has anyone tried this before or have any tips on where to start? Thanks for any help.
I want to write a module that allows downloading of a file by referencing the node the file is attached to. For example, if I have a file word.doc attached to node 242 I want to be able to access it via someting like node/242/file/word.doc or if there is an alias for node 242 such as documents then, documents/file/word.
Is this possible? I've noticed it probably isn't possible with the alias in the way I've specified as the alias system needs an exact match. Could it be done with documents?file=word.doc?
I'm currently trying to migrate an old PHP site to Drupal. The problem is that the old passwords are encrypted using crypt() and as far as I can tell Drupal is using MD5.
I want to create a module that does the following:
- User tries to authenticate
- If Drupal authentication fails the password entered is also checked against the "backup table" which holds the passwords in crypt.
- If the password entered matches the crypt one the new Drupal password is set to the one entered and the crypt password deleted from the table.