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

A routine to browse a directory on the server and return a file name

I would like to write a routine to browse a directory on the server and return the name of a selected file.

Here is my attempt so far:

Extending flexinode

Is there some documentation somewhere explaining how to create a new flexinode field type? It's clear that there is a naming convention, e.g., "field_typename.inc", but I haven't been able to find any documentation explaining what all the functions are supposed to do inside the .inc file.

multi-dimensional arrays in 'variable' table?

I'm trying to create a settings variable for a module I'm working on... It needs to have specific settings for each day of the week, so I need a serialized multi-dimensional array inserted into the 'variable' table... Here is what I have so far (this excerpt is from inside a 'foreach' loop, where '$value' represents each day of the week):

Chitika module? Or Chitika in flexiblock?

Is somebody out there developing a Chitika module for Drupal? I can use the Chitika script for regular blocks, but have trouble using it in a flexiblock. Has anyone found a way to make the script work in flexiblock?

It would be nice to facilitate the use of Chitika in Drupal since Chitika generates better revenues than Google Adsense from my experience.

Thanks in advance! :)

Upload Images CHMOD Problems...

Hey all,

Here is my problem, this maybe good for some of you also, I am having some problems with a couple of modules that use the upload function for new images. Presently the new MySpace module and the Taxonomy_Image Module.

The reason why is because, Drupal is the one creating the folder on my server under files/ and it CHMOD's it 740, and then when we want to see the image we can't because the permissions to view the file aren't there. But the file is in the folder alright. I changed the CHMOD of the folders to 755 and the images work great.

Pages

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