submitting second form (form API drupal 4.7)

Hi all,
This question must have come up before but I cannot find an answer for it by searching. I'll try to make this as clear as possible...

My module page is accessed by

/?q=add

on this page the user is presented with a form (1 text field and submit), when submitting this form a second form is generated, the value they entered in the first form is to become a default value for a field in the next. This all works fine so far.
The function that generates the first form is called: mymodule_add , and the function that recieves the form back to evaluate is called: mymodule_add_submit . This function gets the form fine and I can process the data contained within it, and generate the second form.

The second form is called mymodule_save and the function to recieve the form called mymodule_save_submit. But when this form is submitted I am taken back to the first form, drupal does not send the second submitted form to it's function.
I have tested the second function by having the first form submit to it (and output some verification data) just to see it works, and it does.

Does this have something to do with the callback for this URL (/?q=add) being the function that generates the first form? - shouldn't drupal check for the _submit function and go their first anyway?

I can not see anyway there can be multiple forms to be generated and submitted via the same URL.

Where to download theme derivative styles?

I've been thinking about the difference between say Wordpress themes and Drupal themes and the way they are spread. This isn't about which is better, easier, etc.

I've noticed that Wordpress themes are hosted all over the place, compared to Drupal, where most themes are centrally located. I think the major difference here is that Wordpress themes are often meant to be final products, where Drupal themes are actually more complicated. With Drupal you have Engine>>Theme>>Style; Most times a theme's style ends with the default style.css, but Theme engines allow someone to just add a folder with a style.css to a theme and voila! New design.

But these aren't themes per se.

I do a lot of this type of design. I create a base and I use it for many designs. For one thing it's a lot easier to maintain than a bunch of templates. For another it forces me to be very engaged in what is going on in the structural part of the theme. Any CSS Zen Garden fan will realize the re-usability of a good template.

So my questions are these:

  1. What would be the best way to distribute these designs?
  2. Where should these designs be located?
  3. Is a decentralized approach better in this situation?
  4. Will there be GPL issues? (hot button question to liven this up :P )

For example, wouldn't it be really confusing if there were themes, styles, and engines in the drupal download section? It's already frustrating to get questions about why ___xyz___ theme doesn't work (A: because phptemplate isn't installed) and adding another ingredient would be confusing. But is that better than including them with the Theme itself? Does that respect what is essentially a totally different design that someone could use?

What do you think?

Getting the profile_listing.tpl.php to output horizontially

I've just about given up on trying but thought I'd post to see if anyone else has been able to solve this. Getting the profile_listing to output horizontally like this:

image with name over and online status under

X X X X X
X X X X X
X X X X X
X X X X X

All I can manager are variations on vertical outputs.

I stripped it way down to just the image output and still it wont line them up.

Thanks for any ideas.

using the event date as part of the title for the node

i have been working on a site that, among other things, will list 'shows'. shows are a flexinode type, used by event. what i want to do is use the event start date of the show as part of the title of the show node, and the other part to be the location. i have already done some work on custom titles for flexinode which allows two fields to be set as parts of the title. currently location is part of the title.

Problem with the website

I am working on a website based on Drupal for the last 3 months. Every thing went nicely until 3 days back.
I use the images module and the articles module.
Three days back all the thumbnail images were deleted automatically and frontpage had full sized images and I had to redo all the images.
Articles module shows garbled data. I uninstalled and installed articles module again and it did not help the cause. Can anyone help me what should I do and why is it happenning?

Sendmail installed and working by why emails are from www-data@localhost.localdomain

Hi

I have email working, at least for some addresses. This led me to believe something in the message
is stopping my emails from getting to certain other addresses. I have an Ubuntu box, 4.7-beta4 and Sendmail
installed.

I checked my mail.log and emails are from www-data@localhost.localdomain. I think this might be the problem? I changed
the site email address on the settings page but it doesn't affect this.

I checked my php.ini file and it has

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x