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

Multisite file system - Really need help

I have a multisite setup and have run into a little trouble using:

1) CCK
2) Image Field
3) Imagecache

Because of the multisite setup I have the following as my file system path: /var/www/html/www/example.com/files

When image field inserts an image it gives that full path and that doesn't work at all with imagecache.

Has anyone else had a similar problem? Is there something with the rewrite that I need to adjust?

Best way to capture user visit dates?

I'm planning to write a module that captures the dates that each authenticated user has visited. I'd like to end up with a small two-column table that stores uid and visit date.

Since I don't need data for anonymous users, I'm thinking of gathering data using hook_menu() with some code in an if (!$may_cache) block. Since I'm new, I'm a little worried that I might be missing a more obvious approach.

Is hook_menu the best place to capture the dates a user has visited?

Thanks in advance for sharing your experience.

Custom views - Expose Sorting

I will try to explain clearly my situation with a simple example :

Step 1 : I create a new node called "mobilephone" (no flexinode nor CCK, just inspired from story node).

Step 2 : I create a Table mobilephone [id_mobilephone, nid, runtime, phone_name, phone_brand, rating] (this not as simple but let say that).

Step 3 : I Insert/Update/delete data on this table in the mobilephone.module

Step 4 : I render in the teaser/body , the phone name, the brand etc ... (still in mobilephone.module).

form_render ussage - how to generate form inside table?

hi,

i need to dynamically generate form that i put inside a table with some other data. so my question is how can i use form_render correctly?
i've tried to follow this example http://drupal.org/node/93218 but i get some wired warnings like this warning: implode(): Bad arguments. in /includes/form.inc on line 309. so i started digging and i've found this: http://drupal.org/node/78467 - well, great - i should not use form_render... there was something mentioned about #parents... ok i did some more digging and found this http://drupal.org/node/48643 - well, not much of a help - i have no clue how this #parents should be used, and the forms api does not say much about it, frankly it says nothing.
finally i've found this: http://drupal.org/node/47582 and thought that my problems will end... but NO! it all comes to the fact that my form is mixed with some other data inside a table. so theming my form won't do anything, cause to print the table i need that additional data. so again i ended up with nothing :(

basically i've started to experiment with #parents so i can kinda manually render my form inside a table using form_render. as soon as i got rid of the mentioned above warning, i've found out that:

  1. yes my form is rendered inside a table as i wish BUT...
  2. despite specifying the '#default_value' property value of my textfield remains empty
  3. name and id field of my [input ... ] tags are empty so i can't reference them after they are submitted

Taxonomy Category Browser in the menu block, or views exposed filter in the menu block, or youtube style navigation in menu bloc

Hi, I am trying to put up a taxonomy menu block, but I want users to be able to choose more than one term. Some modules sort of do it like the taxonomy filter module, but it isnt flexible enough to go backwards, or taxonomy browser, which is not in a block. THe best way would be like youtubes navigation style, where I can click to different terms and unclick them by clicking all. The views module has an exposed function that allows for what I wanted but it is in pulled down mode and also does not appear on a side menu block.

How To Make A 'Back' Button For Multipage Forms In Drupal 5.0?

I got multipage forms working with Drupal 4.7 following this nice explanation.

Now I'm upgrading one of my modules to Drupal 5.0 and followed Jeff's crystal clear explanation of the new Form API 2.0 to do it.

Everything works fine but I can't get a 'back' button working.

For example, I want to go from form in step 3 to form in step 2, with all the fields I had already filled.

Pages

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