This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Posting pictures via phone using mailhandler and image module

I have been playing around with the mailhandler module as I wanted to be able to post pictures to my site via email (my wife is expecting so it seemed like a good idea for the big day!)

I couldn't seem to find a ready made solution so I've been working on my own version by modifying mailhandler so it interacts with image. What happens now is that if I post a picture with my email / phone then the post is turned in to an image node, with thumbnails etc

You can see an example post that I've generated here.

I'm fairly new to Drupal so was wondering if I've used the "right" approach...

I have modified mailhandler itself so that during mailhandler_retrieve it looks for a jpeg, and if it finds one it extracts it.

During mailhandler_node_submit if a jpeg is there then it calls a processing routine just before doing node_validate.

The bit I'm not sure about, but is getting the job done, is that processing. The routine constructs an object, as if the file had come from an upload. It then calls image_validate but instead of passing a string it hands over the object. That seems to keep all the other modules happy, and they parse the object as a valid upload.

As a result image happily constructs thumbnails. If the processing routine was successful then the node type is left as an image. If validation failed the type is reverted to whatever was originally assumed. Control passes back to mailhandler_node_submit and the job is done.

Full featured amazon script with shopping cart, taxonomy, etc...

I'm wanting a full featured amazon script for drupal. I'm basically looking for the same features that are in MrRat's APF script: http://www.mrrat.com/aws/ (shopping cart, all of amazon not just books, reviews etc...)

Plus, I want certain taxonomy automatically filled (such as author, category etc).

MrRat's script is open source but in perl. It can be used as a base if someone converted it to a drupal module.

Is something like this in the works?

Filter rows showing within a table using MySQL

Hello

Is it possible to filter the rows which drupal colects from the database; which outputs as a table?

I have this atm.

For example, I want only nodes which has the title "bob".

Liquid Wiki Module problem

Advice please - I have PHP5 and MySQL 5. I installed Liquid Wiki, and created the MySQL tables.
When I activated the Liquid Core module and saved settings, the module page went blank.
I had to remove the Liquid folder from modules to get it working again.
Any ideas why the core module causes the modules admin function to crash?
Thanks
Michael

Events and node privacy by role are clashing!

Aaarrgh!

I have a site going live on Tuesday for a large non-profit and the events and privacy_by_role have started clashing. This has happened on another site I'm working on, but I could turn privacy off for that. However, the non-profit site needs privacy.

Someone at civicspace suggested (for the other site): 'My guess is that you recently upgraded (or your host did) to a new version of MySQL or changed into a stricter mode in MySQL.' That strikes me as pretty likely as I know they've just been upgrading (to PHP 5, etc.).

Here's the specific error message:

podcast.module

I'm trying to create a podcast server for our school.

I installed a fresh 4.7.rc2 on a test server and downloaded the audio.module, getid3 files and they are all inside modules/audio/.

I can upload mp3 files and the nodes are created but I get this error after hitting submit:

* warning: mkdir() [function.mkdir]: Permission denied in /var/www/html/drupal47/includes/file.inc on line 91.
* warning: implode() [function.implode]: Bad arguments. in /var/www/html/drupal47/modules/audio/getid3/getid3/write.php on line 473.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions