I have a node type that I built with CCK, it has a FileUpload field for uploading txt and csv files. I am writing a module (my very first) that intends (among others) to insert the contents of the uploaded text/csv file into the database, so I implemented hook_nodeapi thus :
I was trying to updated drupal6.19 to 6.20 but it won't update. I use the custom theme that I bough. I used to update drupal 6.16 to 6.19 and it was working.
I'm not sure what the exactly problem. But my website has something wired. It has a duplicated drupal folder. The path is
I've installed Lightbox2 and use image module to create image gallery. It works fine with authenticated users. But Lightbox is not shown with anonymous user and images open as usual nodes. I dont find any options in the permissions page.
I've just clued into the fact that I can include files in the page.tpl.php file. Just wondering, before my file becomes festooned with include statements, if this is generally a good idea. It certainly saves me a lot of time and effort to construct, for example, a table in Dreamweaver and style it exactly the way I want it, and then include the whole thing into the page.tpl.php file using the php include statement.
I'm experimenting in an area of theming I'm very unfamiliar with and seem to of ran into a small issue. I'm attempting to print an image field into a custom node template. The template itself is functioning perfectly. After entering print_r($node) I have access to a lot of code which I keep referring to in the hope I'll strike it lucky and be able to print the image, however I'm struggling.