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

New Content Type..

Hey all,

Need to create a new content type but with a catch. Node body is optional but attachments are mandatory. I'd also require an additional "status" attribute for the node which would have three possible char values.

Do you recommend:
-- New module from scratch with fresh tables, or
-- Modify/extend nodes & files tables to match my requirements
..or any third option?

File Upload problem in Linux

Hi,

I am using Drupal 5.x
When i upload a file in page, it didnt attach files.
Now i am using Fedora Linux.
I tested in Windows, its working fine...

Can anyone help to solve this issue..

Thanks

Remove i18n prefix and Browser language detection

I'm using drupal 5.2 with i18n module for my site.

I have a multilingual site, and I would like users entering the site to be redirected by their browser language, so that english users will have a different theme, and content in english. Also i want to remove the url prefix of the language so user will not notice it's multilingual.

So my questions are:
1. How can remove the url language prefix so users will not notice the multilingual system ?
2. How can I use i18n to show the page in the user browser language (Browser language detection) ?

Class schedule module

Hey,

I am trying to build a website for local taiji group. Among other things i want to put on that website, I want to allow group leaders to add class schedules to the site and also to display the list of upcoming classes in a blog on a sidebar...

As class schedules are a type of a repeating event, I downloaded and installed events module and tried to muck around with it to add new content type for classes. After I've created the basic event type, I tried to add new class content and was abhorred by the interface the events module imposed.

The event entry form is way too generic and is more confusing than helpful. For my purposes I need to be just to say:
"This class is on from date A to date B, every Tuesday and Thursday from 6pm to 7.30pm."

(currently I have to specify "from" and "until" as full timestamp of the first class and then set it to repeat every week until some set date - quite unintuitive, if you ask me)

As a Drupal rookie, I have no idea what so ever, how to improve event entry form to meet the simpler work flow, I wish to see.
I suspect writing a module would probably help, but I don't know a line of php (not that I could not learn it), nor do I know how to start writing a module for Drupal, so I would much appreciate if someone would point my nose to a right direction and set me on a track with this...

How can I submit a form with ajax?

I am creating a module with a form and I really want this form to submit with ajax since the form is just a small part of the page and a page refresh would be annoying.

Secondary questions is how can I return data, errors and other stuff... but that is secondary just being able to submit a form with ajax is a big step!

I would like to use stuff already included in drupal like jquery if possible.

submiting fields addeds with jquery

I have a form with a jquery link that add field to form, but when I do the subbmit there aren't, in the $node, the values of the fieds added with javascript function. How can I sent this fields to the hook_insert()?

Thanks,

Ismael

Pages

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