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

Insert image into form

Hi,

I use Drupal form API, I would like to put an image into a form to display a preview of a file input value.
Is there a way to insert a picture into a form?

Regards.

rights for file system

what rights do I need for files--specifically images? Flexinode stores images in the files directory. I'm told the files dir needs 777 and when it creates files owned by 'nobody' that it's the same as 777. Isn't that a major security vulnerability? What keeps people from jacking up files?

Jay

read-only form fields?

Basic Form Questions:

Is it possible to display form fields which are disable by default?

How do I re-enable them ?

How do I create a form that will allow to submit on the fly without reloading the page? Is it simple or is it better to wait for 5.0?

I tried using the forms API and change the field type from 'textarea' to 'item' but nothing is displayed.

Thanks

Amnon

multiple nodeprofile

Hi,
I'm about to create a new site with more than 1 "sub-systems" (i.e shop/blog/dating & others).
I would like to create a unique user profile for each of those "sub-systems".

It will work like this:
a user that wants to be a 'part' of the site would have a regular (basic) user.
a user that wants to be a 'shopper' would have it's basic user expanded with a shopper-nodeprofile.
a user that wants to be a 'blogger' would have it's basic user expanded with a blogger-nodeprofile.

Ecommerce interface?

Hello I have installed the Ecommerce module on a clean Drupal install and I was wondering if there was a way to make the "product listings" that Ecommerce lists to list horizontal instead of vertical? I cant find out how to do this in any of the settings. Thanks!

Accessing the $user object from within a custom module

I'd like to access the $user object from a custom module. Unfortunately it's out of scope. How can I load the $user object for the current authenticated user? Or are there access functions I can use to determine the username and the uid?

Neal

Pages

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