drupal-6

Drupal 6: Drupal Themer gives same candidate name for different type of content types

Hi friends, I'm a drupal newbie... I have different type of contents like News, Events, etc. and their content is different. News detail page has title-content text-date. but Events detail page has title-date-content text-location-speaker-etc. So I need different layout page for these different types. So, I enabled Drupal Themer to get...

Drupal 6: getting particular fields from Node Reference types...

Hi friends, I'm a drupal newbie... <?php print $node->field_date[0]['view']; ?> I can get the custom created CCK fields' value and display in tpl.php files as above... that's fine. my question is how can I get the Node reference fields' in-fields? for example, I have an event content type, and I have defined Node Reference for Locat...

Building a service for a Drupal site to duplicate a node to another Drupal site in a multi-site setup

I'm trying to set up one of my Drupal sites to push a node to another Drupal site in a multi-site configuration. It looks like I need to do this with services somehow, but I can't find any tutorials out there and I need at least to be pointed in the right direction. What I believe I need is set up Services on the receiving site to accept...

Drupal 6: pre-defined variable for amount [count] of custom type items...

Hi friends, I'm a drupal newbie... I researched but couldnot find :/ is there any predefined variable that gives my CCK field value count? for example; I have field_logo_sponsor and I need to display all logo items. Now I have 5 item <?php print $node->field_logo_sponsor[0]['view'] ?> <?php print $node->field_logo_sponsor[1]['view']...

Drupal: reset user password from administrator

Howdy. I have a client who's webpage I'm building, wants a page where all users are listed with a function to send the users password to the users email for each user listed. I tried doing this by using a jquery post: $.post("/user/password", {name:"user.email@domain,com", form_build_id:"form-XXX", op:'', form_id:"user_pass"}, functio...

Making block visible when view-based OG homepage showing

I have a view (with only a default display) that is displayed perfectly as the home page for all organic groups. When a specific group is selected and that view is then displayed, I want a block to appear - but I can't seem to find either the URL or PHP-returning-true to use to turn its visibility on. I've even tried the Context module w...

Drupal, Lightbox: lightvideo adds "content/" at the beginning of Drupal paths..

hi, I'm using lightvideo in lightbox2 to load my own video player. I've just realized that lightbox is adding "content/" at the beginning of the video player path causing a "file not found" error. In the drupal settings the correct path is set, so I'm wondering how to fix this and how to remove the initial "content/" path. Update. In...

Drupal 6: assigning custom View to dynamically generated "category filtered" blog listing...

Hi friends, I'm a drupal newbie... love it so far :) I created a view (page) for my blog listing with View Module. I have a specific output like particular place of image, title, etc... Everything is working great with that... Then I created a Category Filtering block (with View Module) for sidebar. it works fine. I click on any cat...

Drupal how to set session or cookie?

Hi, i jus friend reference function so i pass the user id through url like below www.example.com?fid=22 i need to set this as a session or cookie which access to all modules in drupal 6. if i set session it return for tht particular module . set cookie is not workin at all. $user->new_property works only on particular page where se...

Drupal return number of results in a View

I have a view in Drupal that filters my content. It brings back 7 rows. All I want to return is the number or results returned(7). Is this possible? I tried using the View result counter but it returns a number for each results 1 2 3 4 5 6 7 I just need the 7 part. So in SQL I would do a select count(*) ...

How do I set up filters in a Drupal view that apply across two different content types?

I have two different content types being loaded into a view. News, and reviews. Each of the content types has a drop-down box to select what category they fall into. ie. a review could be for a dvd, music, etc. and news could be music, cinema, etc. I want to the view to display some categories of news, and some categories of reviews,...

Drupal: how to disable edit tabs on the front-end ?

hi, when I login as user to my drupal website I can see the tabs in the front-end to edit the content. I would like to disable these tabs (end edit the content from the back-end only). How can I do it? If I'm not wrong, I remember there was a back-end setting for it. thanks ...

How can I handle parameterized queries in Drupal?

We have a client who is currently using Lotus Notes/Domino as their content management system and web server. For many reasons, we are recommending they sunset their Notes/Domino implementation and transition onto a more modern platform--such as Drupal. The client has several web applications which would be a natural fit for Drupal. How...

Expose DB2 data as XML / Query DB2via XML

I have a client who has a sort of data warehouse stored in DB2. For a variety of reasons, the data must remain on this platform. The client is considering implementing an open-source CMS (Drupal) which runs in MySQL. The client needs to be able to execute a bunch of pre-defined queries against the DB2 database from the remote applicatio...

Drupal on IIS - Cannot connect to the database

hi, I've hard time to make Drupal work on IIS Microsoft server. I've succesfully run Joomla on the same server so I'm pretty sure the following information are correct: host: localhost user: user pass: pass databaseName = servername_databasename I've set the following line in settings.php file: $db_url = 'mysql://user:password@local...

Tips for making administration of Drupal site easier

I'm creating a Drupal site for a client, and I'd like to make administrating the site as easy as possible for them. Examples of what they'd want to do with the site is: Add/Edit/Remove content which will be displayed on various pages Manage a forum - Just the basic Drupal Forum module Add / Ban Users Respond to comments left using t...

making clean page via page.tpl.php

I have a Drupal module creating a page via hook_menu(). I am trying to make it so the page has no extraneous html output, only what I want. You can view the page here, http://www.thomashansen.me/chat/thomas. If you look at the source, you can see a strange script tag at the end. My page-chat.tpl.php looks like this, <?php // $Id$ ?> <...

Taxonomy terms are not translated in an exposed filters block

Hi, in my view's exposed filters block the taxonomy terms are showed only in the original language version (in English). Vocabulary is set to Localize terms. The terms are translated via Translation Table. All the other content (Views, nodes, translated strings etc.) is showed correctly (in German). I'd expect them to appear in cur...

Drupal 6: print all body field content to node template file.

I tried to display body content with: <?php print $node->content['body']['#value']; ?> However, it doesn't display all body content, it just display first paragraph of body content, sometimes 2 paragraph if it is short :/ I need to print all body. how can I do that? Thanks a lot! Appreciate helps! ...

How to list CCK fields by content type in Drupal

To get a list of a content type's cck fields, I was hoping to use: drupal_get_schema('content_type_mycontenttype'); but that leaves out fields with multiple values. Is there a simple call to use to get such a list? ...