drupal

Drupal 6 devel module dd() function not writing to drupal_debug.txt file

I am running a local development Drupal site on a Windows machine. I am trying to use the dd($data, $label = NULL) function from the devel module to help debug. Using this function, should write debug info to a drupal_debug.txt file in the /tmp folder on the machine where the Drupal site is hosted. On my Windows machine, although I a...

Drupal 6 parse incoming POST data

I have an Excel file that I need to send data from to my Drupal MySql database. To do that, I am using an HTTP POST from within the VBA of my Excel sheet as follows: Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP") URL = "http://localhost:8082/acquia-drupal/node/2" objHTTP.Open "POST", URL, False objHTTP.setRe...

Drupal: best practice to arrange various Drupal entities into one site /subsection

It's perhaps a common task to create a subsection on site, which will reside under sitename.com/subpath. The subsection will contain own menu with a few links (Calendar view, Add MyEvent content type form, Table View). But clicking these links will lead out of this /subpath. Is there a know solution for this (to stay in subsection)? ...

Drupal path problem - views vs node

I've got a problem with my site search not linking properly to my views pages. I've got a views page set up to display recipe data. It has the URL properties of: index.php?q=recipe/%1/%2 where %1 is the recipe category, for example, breakfast, and %2 is the recipe name, for example, Muffin. The view goes through the recipe node conten...

Drupal 6: How do I only call up "events" by upcoming date?

I am a newbie to Drupal so this may be a simple answer... I am building a site that on the homepage I want to be able to call up events that will happen in the next 6 months and then disappear after the event has past. I have made a field called event_start_date that you can enter the "From" and "To" dates. I already used Views to call ...

Drupal 5: Posting query string variables to a module page - Page not found

I've build a page using a custom module, and given it a nice url such as /sage/notify, and using the hook_menu set it to run my function to handle that page. All was working great until I tried to pass a querystring variable into the page /sage/notify?test=true At this point I was told that the page can't be found. Does anyone know aw...

Dynamic menu item in Drupal?

I was wondering if there is a built in method in Drupal, to link to nodes created by a user. In my case, each and every user can create a node called "profile". I want to add a link in the menu, that links directly to that profile node. I can do it by making a module that just checks for a link, e.g. mysite.com/?goTo=profile and then ju...

setting page access permissions in drupal

I'm new to drupal. Its a very dumb question I guess. I have enabled PHP filter module so that I can create a new page with my own PHP code in it. This particular page I want to be accessible to only authenticated users, not visible to anonymous users. How can I achieve this? Can I set permissions for individual pages in drupal? Or is it...

Solving drupal database entry dependancy problem?

In Drupal, if you want to insert something into the node table, 'nid' can be null, but 'vid' can't. The inverse is true for the node_revision table. So my question is, in what order are inserts done to the Drupal db when a node is created? i.e. I can't insert into the node table, because I don't have the VID, and I can't insert into th...

Limiting FCKEditor to only one input format in Drupal?

I have two input formats on my Drupal installation, namely: 'html' and 'plain text'. I want to have the FCKEditor ONLY appear if html is selected, but not if plain text is chosen. Is this possible? I know this was possibl with TinyMCE, but I can't figure out how to do it with FCK? ...

Inserting a form into a block in Drupal?

Is there any command or method that I can use to insert the contents of a form (e.g. the user registration form) into a block? ...

What is free tagging?

Can someone please give me a proper definition for the term? What I know so far is that it is an input box that allows the user to enter any data to categorize something. Is that it? ...

drupal w CCK - how do I rename node submission buttons

Hi there, I have made a custom node type for event registration. I have used themes (template.php to all a custom tpl.php for the form) to customise the look of the form. Using workflow and actions / triggers, people can register for my event, and the event manager gets a notification email and can log in and see a view of who has reg...

Drupal State Machines, usage and alternatives

Do "State Machines" used in Workflow-NG module (D5) have any visual interface (in node form or whatever)? Or they are totally internal entities that I can only set and evaluate? The initial objective behind question was to send emails based on changed node status (taxonomy based). If these State Machines are cumbersome, I can probably ...

Is there a drupal 6 hook to process login authentication without posting from the login form?

I'm working on a Drupal based system that will not be directly handling login processing. Rather, another system will be handling the user authentication and transmitting the data directly into Drupal via a GET parameter. Can I hook into a function that will process that GET parameter and verify the User? I'm coming into the develop...

Grouping non-cck fields in Drupal?

Currently you can only assign field groups to cck fields created on a content type. I want to be able to assign a field group to all the standard items (title, description and taxonomy) so as to group them together. Is there a way to do this without doing a form_alter? ...

Drupal module development question relating to cookies and redirects

Hello, help please? I wish to develop a module to do something very simple with PHP. I am challenged by the Drupal API. I am using version 6. Goal: 1) Determine if user is viewing a particular node (role is irrelevant) 2) If yes, check to see if cookie is set a) If cookie is set, do nothing b) If cookie is not set, then set cookie...

Drupal: How to return only content and not the whole layout?

Hi, I am using the thickbox module in drupal. The type I am using is the AJAX request via thickbox and I am passing the URL to get only the 'content'. How can I show only the returned content without the primary links and other stuff like sidebar in drupal? Right now, the thickbox also returns the primary links. This is the URL that ...

password recovery for drupal

i forgot my drupal user id and password. Is there any way to recover it ...

Turning threaded, reverse chrono Drupal story comments into Reddit-style comments

I have a Drupal site that currently displays comments in threaded, reverse chronological order. I am trying to change it to work like Reddit/Hacker News, where the threads and comments within each thread are instead ordered by their current score, based on a voting system I've added. I've found the query used to render the comments rig...