drupal-6

Handling images in Drupal

I have a Drupal website. I want users to create pages that sometime has images in it. Is there a module that: can integrate with the ck editor lets the user upload images lets the user browse uploaded images and select and include them in the page they create? Thanks -Vivek ...

Drupal - open node body in new window

Hi, So i got a problem and really haven't found any solution to this so i hope someone here can help me. I got site with book navigation module. My front page has multiple blocks in it with each block containing book navigation and listing contents of different book. The problem is that I need to open book pages from one block in a new...

Month navigation sidebar in blog section?

I have a blog section in a drupal website, built with Views. I want to add a sidebar with month navigation (as in each mont is listed with the number of posts, etc). How can I do this, preferably with Views? ...

Drupal path alias not found

Got a Drupal6 install, and I'm using a webform to collect some data. The webform has a path alias set on the edit page as 'contact_us'. The issue that I can't figure out (and hard to reproduce) is from time to time, some users end up on the page 'node/'. Seems like that is a possible failure trying to find the alias or system path. ...

Changing the Admin Theme in Drupal 6 Directly in Database

I'd like to restore the default admin theme in Drupal 6 via the database. Anyone know where this is stored? Btw, there is a great answer describing how to change your site's public theme in the database here ...I just could not get it to update my admin theme. ...

Customize header of "Create <content type>"

When you create content on Drupal, the header at the top says "Create ". On certain content-types I don't want it to say that. Is there a way to customize that header on certain content-types and keep it as-is on others? thanks. ...

Drupal 6.x CTools

We make use of views and panels quite often in Drupal and a lot of people are utilizing CTools in development. I can't find a lot of documentation on what it is and why you'd use it and the drupal.org forum isn't providing much either. What is CTools, and is it worth using? What is the best use-case for utilizing it? ...

Drupal 6, how to identify active menu item by url parameters (full link), ?q=page1&filter=10

I have a submenu that has all items linked to the same node, but with different additional parameters, for ex: ... <li...><a href = "/?q=page1&filter=10" class = "... active">Item1</a></li> <li...><a href = "/?q=page1&filter=11" class = "... active">Item2</a></li> ... in this case all items have class 'active' and none of them has cla...

Drupal Custom Module - Menu Hook using Query String

Currently I have a custom module with hook_menu for path 'search'. It's working just fine. However, it couldn't process the request when I access /search?q=something. How do I do this? I'm using Drupal 6 btw. Thanks ...

Drupal: Display success/error message

Hi Guys, how can I show users success/error messages without creating a node for it? Thanks in advance! ...

Drupal - Grabbing and Looping NID of CCK Nodereference field

Hello, cant seem to work out how i grab multiple nids of a node reference field. $node->field_name[0]['nid'] picks up the node id of the cck node reference field. however when that cck node reference field has more than one value i get stuck! my php is abit sketchy atm so working with arrays and loops is being quite difficult! here ...

Show Content from other websites using RSS in my Drupal Site

Hi, I would like to show content from other websites using RSS Feeds into my drupal site and show it inside a page. I searched for RSS. There are so many. Can you suggest a good one? I'm trying to show the content from here http://feeds.feedburner.com/brazen_careerist Update: i tried installing the feeds module and i gave this url ...

Update {node_counter} table programatically in drupal

I currently use the statistics module (core) on my Drupal 6 install. This increments a count in the {node_counter} table every time the node is viewed, and this works. My question is - can I programmatically increment this counter as well? I am looking to achieve this when users interact with content created from views (say click a ligh...

How to minor updates to Drupal-6 with shared hosting

I've got Drupal working on a shared host, and I uploaded some modules from my home system successfully, but I've got the message that there is a security update for my version, and I should update immediately. I'm not sure how I'm supposed to do that. It seems like the update is an entire new installation. I originally installed it us...

Require anonymous user to register to add content-type

How can I create a form that requires anonymous viewers to register in order to view it? Right now, I've created a content-type (Submit Plan) which is a primary link available to everyone (anonymous + authenticated). I've restricted 'view' user permissions to anonymous users but they can still see the 'Title' input (I don't want that). ...

How do I move the tag section below the content in Drupal 6?

I have enabled taxonomies in the form of Tag, and I would like the tag field to show up below the content when users are editing the page. Where would I make that setting change? ...

Drupal - Private Content Type without URL access

Hi Guys, i created an additional content type called "clients" where I can create new client records. I mostly reference to this type to retrieve data. Now I'd like to make this content type inaccessible from the outside world. Any idea how that works? Thanks in advance! ...

Drupal Views Duplicate values being returned when using a relationship

I am having a problem with views. I have a view and am passing it a taxonomy term by name to it. I then have a relationship to a related node. For my output fields I am returning the related Title and related Body. I however have duplicates in my results. I have turned distinct to yes but believe this is working on the nodes being return...

Drupal db_query_range SQL query

I'm trying to get this working and the query executes but nothing comes back. I've tried everything I can think of, can you spot what I'm doing wrong? $nido = $node->nid; $result = db_query_range(' SELECT i.nid, i.iid, a.fid, p.filename, p.filepath FROM {drup_image_attach} i LEFT JOIN {drup_image} a ON i.iid = ...

How can I open a Drupal 6 submenu programmatically?

I have a menu with two levels, the second level shown in the secondary menu. How can I open the second menu level programmatically from pages other than those linked in the menu? I've looked at theme_preprocess_page and others but can't figure out how the change the menu item state from collapsed to active. ...