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

httpclient for uploading images to galleries

Hi friends of the image module

Since there is no way to upload whole directories or archives into image galleries of drupal, I wrote a small command line tool in php5 to upload files from a local directory into a specified drupal gallery.

You can find the tool here on my homepage. The drupal relevant part has its own subdirectory. You have to edit drupal_upload.php and specify your user data, gallery-id (taxonomy-id), and the local directory containing the pics:

proper "drupal" way to send http response directly to the client

i want to create links in pages that when clicked on will result in a complete response (http header and body) sent to the client.

specifically, i want to send an extended m3u format playlist that will be generated dynamically (not stored on disc).

rather than hack it and create an external script that does it, i'd like to learn how this would be done drupal style.

i'm assumming i'd be writing a hook_* callback that would perform the task, but not sure which/how etc...

Blog module update

Hi all :)
Sorry if i make some mystake but i'm french so my english is not ( really not ) perfect ^^.
I'm looking for someone who can help me in develloping a module ( or something else ) who can allow someone who have a blog ( someone other than the admin ) to set his own logo ... Of course, all people are accepted, english or french :)
Thx,

Mat_

menu question

Hi,

I'm having trouble trying to figure out how to set up the menu for my custom module. What I'm doing is basically a contact directory with the info coming from our department ldap server. What I want it to do, menu wise, is have two distinct types of pages. First is a listing page, for the paths:

/people - lists a welcome page
/people/all - lists everyone
/people/faculty - lists only faculty
/people/staff - lists staff
/people/ta - lists grads/ta

No problems here, this all works fine, the above are all local tasks to appear as tabs. The problem is that I also want to do the following paths:

/people/uid/view - views information for the user with given uid
/people/uid/edit - edit information for the user with given uid

I want these to be tabs as well. The problem I'm running into here is that when I do this, the view & edit tabs show up on the other list pages, and it seems the actions for view/edit don't actually get called because the menu system doesn't seem to match the action anyway.

Here is my trial menu code...

<?php
$items[] = array(
'path' => 'people',
'callback' => 'contact_list',
'title' => 'People',
'access' => user_access('view people'),
);
$items[] = array(
'path' => 'people/' . arg(1) . '/view',
'callback' => 'person_display',
'access' => user_access('view people'),

Mail problems with activeMailLib

I tried the two modules

- mail
- simplenews (latest 4.6-Branch)

which both use activeMailLib for delivering mails. Unfortunately both dont work for me, whereas the standard drupal mail delivery works flawlessly. Does anybody made the same experience? Until now I couldnt find the reason in my log files ... :/

Btw. Im wondering why both modules dont use the drupal API for delivering mails ... Does anybody know why? Doesnt it make things more complicated?

Statistics not logging

Not sure if this is an installation problem, an upgrade problem or a module problem . . .

Pages

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