drupal

How to display multiple content types in categories with Drupal 6 and Views 2

I just started learning Drupal and I'm having a heck of a time displaying multiple content types on one page, but grouping them by content type. To be specific, I want to display "Current Programs", "Old Programs" (which are the same content type, Program, but have a Boolean "current" field thanks to the CCK plugin), and "Tools" (conten...

how can one override default registration email in a hook form alter registration?

The main site sends a registration email and I do not want that email to be sent to this new registration as it should have its own custom email. I am having a hard time with this because every time a user registers either on main registration or this custom registration, they get the same mail. How can i keep my custom registration mail...

How can I change the output of a webpage depending on wether a user can access Youtube?

Hi, I'm looking at embedding youtube videos onto a webpage (a Drupal webpage if that helps), but I need to figure out what people will see if their business/workplace/country blocks youtube access. Does it show 'video no longer available', does it not show anything?, does it add a class or ID to the embedded html to let css, or a script...

Drupal performing a query against the database

I wish to retrieve some nids from my drupal database. I have a query that I wish to run. SELECT node.nid AS projectnid FROM node node INNER JOIN content_type_project node_data_field_project_client ON node.vid = node_data_field_project_client.vid WHERE node_data_field_project_client.field_project_cli...

How to update my local version of Drupal with a patch (BZR)

I have a website running locally on Drupal 6.14 and I need to upgrade it to drupal 6.19 The website is version controlled with BZR. I know the BZR basics but I don't know how to update my repository the "correct" way. I don't want to simply overwrite all drupal files and commit the changes. I want to compare my old version with the new ...

Access to field by node creation date in Drupal with CCK

I'm looking for a particular behaviour that grant permission to see one or more cck field based on date time creation of node. In particular i need to: Grant to role A: Full access to all CCK (old and new) Grant to role B: Access to all CCK but ONLY to ones present in node OLDER than 1 Year Anonymous user: No access to CCK field How c...

(Dis)advantages between Typo3, Joomla, Drupal and Wordpress

I'm about to switch from manual programming to using a CMS like the above ones. So my concern is, which one is the "best"...I know, the question which is best ist just very subjective, but maybe you can give me objective reasons for your oppinion. Maybe I just have to tell something about the projects I'm about to realise in those CMS: ...

Issue a 403 for certain nodes

How do you issue a 403 for certain nodes? I tried using drupal_access_denied. While I got an Access Denied message, the watchdog is filled with: Cannot modify header information - headers already sent Is that normal? Am I not using drupal_access_denied right? ...

Drupal's Event module with View module - how to change color of past events?

i'm using event module, with event_views module. is it possible to change color of past events? or events in the future? i know that will be some extra programing, but i don't know what and where.. tnx in adv on suggestions! ...

Problems with drupal Database Query

Hello, i try to fetch a result with this request, which works in phpayadmin: $result_med = db_query("SELECT node.nid AS nid, node.created AS node_created FROM dr_wiwe_node node LEFT JOIN dr_wiwe_content_type_classified node_data_field_classified_valid_till ON node.vid = node_data_field_classified_valid_till.vid WHERE ((node.typ...

How can I make a user's content private?

Problem I have one role "creator" and under this role I have two users creator1 and creator 2, both have permissions to create content. So Creator 1 creates the page but this created page is visible under Administer->content for both the users and i want that to be user specific i.e the user who creates the page should only be able to e...

drupal display submenu when parent has been selected

Hi, I've have a menu structure that has a depth of 3 levels on a drupal 6 CMS. When I click on a level 1 that has children, the level 2 menu items display fine. If the level 2 has children, it is not showing the level 3. If I check the expanded box the level 3 is displayed however, it displays all the time irrespective of the level...

Drupal 6.15 clean urls donot work for all.

HI all, I had posted a query here. http://stackoverflow.com/questions/3719456/drupal-url-alias-and-views-and-clear-urls-for-taxonomy-issues But i think i need to be more specific. The issue is that after upgrading drupal from version 5.1 to version 6.15 and enabling clean urls, most of the urls work however some URLS such as admin logi...

How to do MySQL queries on text with umlauts in Drupal?

I need to differentiate between nodes starting with 'O' and nodes starting with 'Ö' (o umlaut). The problem is that since the node table and the title column have utf8_general_ci collation, MYSQL does not treat o and ö umlaut differently and this query returns nodes starting with O AND nodes starting with Ö SELECT node.nid AS nid FROM ...

In drupal, is there a field type with variable number of values?

Using cck I've created a new content type, Contact. A contact can have 1 or more phonenumbers. Is possible to create a field type (string, number or node reference) so that the user creating content can add more phonenumbers to a contact? ...

jQuery, Drupal Modal Frame API preventing recursive popups loading on .ready event

I'm creating a site using drupal where I'd like to prompt my new users to create their profiles on the first login after they register. To do this I'm using ModalFrame API. What I've done so far is create a special role for users 'first timers' which they are assigned once they register on my site. I check in my code for the 'first ti...

Drupal: How to wrap inline images into additional markup

Howdy, i need to wrap images into additional markup for further css styling. I would like to have something like that: <p><span><img src="path/to/image" alt="alt"/></span></p>. The images are added directly on the specific node using following modules: http://drupal.org/project/insert http://drupal.org/project/image http://drupal.org...

Is there a tool that can transform a static SQL string into valid Drupal db query code?

I am wondering if there is some tool available, that will take as input a SQL command, and as output will return valid Drupal code that can be used in the Drupal Api? EDIT The idea is I have large, 25 lines of SQL commands ready to be used on the database. And they are somehow complicated, so I am wondering how could I rewrite them wit...

Faceted Search...

Is "faceted search" (drupal.org/project/faceted_search) powerful enough to index and search 100.000 Drupal nodes ? ...

Drupal: forwarding specific users after login

I need to forward users with a specific role "roleA" after they login to the website. I've tried to use if ($form_id == 'user_login') { global $user; ... } However this is before the user insert nickname and pass, therefore the role is always anonymous at this point. What's the form_id of the login submission form instead ? I wo...