drupal-6

Drupal-- How to place an image in Panels 3 panels and mini-panels, w/o views or nodes?

Is it possible, through any modular functionality, to insert an image into a (mini-)panel, either through token replacement, or through an upload dialog, or through a file selection menu? Do I have to use views? Do I have to create nodes? Would the best way be to make a panel node, and then embed it in a mini-node, if I want a block...

drupal how to refresh the page when the content is created in the popups

i have designed a panel where i have to used to popup links and automodal class for creation of content.... <a href ="/testviewprintpdf/<?php echo $object; ?> " class ="popups-form-noreload">view objects</a> now after saving the content , and closing the popup the panel page is to be refreshed how it is done..... it sounds simple ...

Drupal - Counting data in nodes, creating custom statistics

Hiya, I'm building some custom content types to capture customer data on a website. Admins will enter the data, users will be able to view it, but I also need to be able to bolt on some statistics and infographics to the data. The problem I have is that I can't see any simple way of doing this within Drupal. Are there modules which ca...

Drupal 6 node_view empty

I'm trying to produce a page with a list of specific nodes but the node_view returns an empty string. This is my query: function events_upcoming() { $output = ''; $has_events = false; $res = pager_query(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'events' AND n.status = 1 ORDER BY n.sticky DESC, n.create...

How can I control the placement of the comments region in Drupal 6?

I'm developing a theme for a Drupal blog; the mock-up I created requires the post content, trackbacks block and comments block to appear in a central column, with borders running either side. I've got the CSS and HTML working correctly, so that's not the issue here. My problem is that the comments block as generated by Drupal is plac...

How to apply the drupal template to php pages?

please if any knows tell me. ...

Accessing current value of a form element in Drupal

I have a field in a CCK node form that is hidden, and has a default value. What I'm trying to do is, when the user fills out the form, and submits it - I want to take the value of the hidden field and use it for a query. My question is, how can I get this value? In PHP/HTML the $POST variable can be used. But, how can I do this in drupa...

GMAP & Location - Coordinates show but cannot show node information

I set up a view with a type of gmap. If I change it to grid, all of the field values output fine. When I switch to gmap, the coordinates show up on the map but I can't get any info on the coordinates/markers. I am very very stuck. I have gone at this several different ways. You can see the example here: http://speakitnow.com/immersi...

Drupal 6 preprocess blocks & nodes

I build a BLOCK that sits on a right side of the website and is available for whole site. Also I got a many CONTENT_TYPE NODES like (pages, news,gallery, files). How can I modify _preprocess_xxxxx and which one, so I can let my BLOCK know which CONTENT_TYPE is currently displaying. so then my BLOCK displays var $section = top 10 dow...

How to theme language translation links in Drupal?

In my Drupal 6 installation, using the standard Content Translation module, links to translated versions of a node is added below the content. How do I output those links another place in my theme? To be more precise, I would like to output the links (if there are any) in my right toolbar. Thanks, Egil. ...

Add another node display (like teaser, full node) to Drupal

I would like to have two different displays of a node teaser depending on where it is on the site. Changing the .tpl of the block alone is not good enough because I need to have a separate imagecache image displayed. Are there ways to have another display type added? Or change what fields a node display type recieves (ie: the imagecac...

drupal how to limit the display results of the calendar view

i have a calendar view its working pretty fine,,, but i need to restrict the results to one per date, if i have five events, my view looks odd so thought of adding a more link and displaying only one result per date..... is there any way to this,, i have tried limiting the view to display the results to 1 but it doesn't work ...

How to show recent topics from my phpBB forum in my drupal website?

I have setup a phpBB forum and people are using it. It has a decent level of activity. I have setup a Drupal 6.15 website and I want to show the recent topics from that phpBB forum on this website. Both are separate domain names, if it matters. I've been searching since morning in Google for a module to do that but the results beat ar...

Drupal 6: Using Organic groups for Educational page

I am working on a departmental website within a big university and want to add different types of functionality for different users depending on their roles. There are 3 main types of users: Publicly listed Alumni (listed but based on different fields and using a custom template file) Others (users on site but not listed) Right now ...

drupal search on the top taxnomy term

i have designed a view with 2 exposed filter name(textbox) and place(taxnomy term with xxxxx -yy -yy -yy these terms it works fine when i search for -yy terms, but the problem when i select on xxxxx it should perform search on all the child terms (it should search even in -yy terms) but it seem to be happen , it only searches in the ...

Drupal: how to set theme language programmatically?

How can i change drupal default language programmatically somewhere in code (like template.php)? (i need to overwrite default language set by admin in some cases.) i'm using drupal 6. PS: please read my own answer for more detail. and if you may help solve that PS: later i saw a module that was what i wanted. make sure take a look at i...

Ignoring content with the Drupal 6 search module

I have some content that I do not want the Drupal search module to index: for example, I do not want drupal search module to search my webform data. How can I do that? ...

Hook into Drupal registration and validate user info against business logic

Hi, I want to hook into the registration module. I already have a database of 50000 users who use my old website. Now I am migrating to Drupal. I still haven't migrated the entries to drupal database. I will be checking against my old database. When a user tries to register in Drupal, I need to check whether the username he gave is al...

Drupal reseting user Password

I have a client who is not liking the fact tht he can't see users passwords so he can send them it if they forget it. It's for a small church website. Like most people here I don't think he should be able to seethe password as it is not secure. What I would like to do is give him a button that he can press so that he can direcrley reset ...

Drupal Views (Page) Using Human-Friendly Path

I have CCK and Views module installed. For the sake of this question scope, I'll call the content type as Project. Projects have many Members. Project nodes are accessible through /project/project-name. I want to be able to display list of members through path /project/project-name/members. Is there any way to do this? Currently I hav...