drupal

Projects made with a CMS -> Money problems...

Hello, i want to discuss about a problem: i've lately had discussions with some customers to which i've asked money for projects written in Drupal: when they know that i use a CMS they immediately say that they want to pay less "because I use a CMS". I develope since 15 years and i've made many many projects without using a CMS and by us...

Drupal 6: how to display node with its local tasks tabs in menu item

In my case each user has a gallery. Gallery is a node. I'd like to hide default "Create content" menu and add custom menu link that links to user gallery. function custom_menu() { $items = array(); $items['galleries/editgallery'] = array( 'title' => 'Edit gallery', 'description' => 'edit gallery', 'page callback' => 'custo...

Drupal Organic Groups: Automatically make all members group admins

I'm using Drupal 6 to build a web application which will be centered around small groups (using Organic Groups). All the groups are invite only, and once a user is a member of the group I trust him to have full groups admin rights (e.g. invite other users). Any ideas on how I can set all group members to be group admins by default. Che...

Drupal 5.x site shows > 550 MB memory consumption of every page. How to speed up Drupal 5.x site.

I developed a site in Drupal 5.x and now its done and working fine, but its very slow. Working fast some time, but for imp modules it takes time. When I see the performance logs, its consuming my memory for 150 MB per page MINIMUM. This is the minimum. Most of the pages its shows 550~700 MB consumption. What I did till now. Javascr...

drupal get list of terms of a node

How to get list of terms of a node ( by node id) belongs to a particular vocabulary. Is there any drupal function ? ...

Understanding <?php print $node->content['body']['#value']; ?> in Drupal

Hi, sorry, this is a really noob question... When I want to print part of the $content array within node.tpl.php (for example), I'll use something like <?php print $node->content['body']['#value']; ?> I just want to understand what the -> is all about. Presumably this indicates that $node is something other than a normal array? ( Othe...

Drupal views: Splitting fields by content type

Hi there! I have a few views in my Drupal site that are getting extremely out of hand... The views show nodes from different content types in the same listing, and are formatted differently depending on the content type... This has so far required a lot of custom PHP-fields, rewriting output, and a bit of black magic. Totally unmaintana...

Wordpress or Drupal?

I am planning to build a training site which will accommodate multiple users. It will also have lots of custom pages with videos in them. Which CMS/CMF is better suited for this project? Please advise.. ...

How do I pass dates as arugments in views in drupal?

I have been trying for awhile now to get the my view to accept a date argument. This is my code: <?php function bookable_views_handlers(){ return array( 'info' => array( 'path' => drupal_get_path('module', 'bookable') . '/includes', ), 'handlers' => array( 'views_handler_field_date' ...

Passing parameters into a Drupal module

How can I pass in a parameter (eg: SKU12345) into a Drupal module. Here is what I have so far... URL: /my_module/sku/SKU12345 $items['my_module/sku/%mySKU'] = array( 'title' => 'Information for SKU %', // include SKU in title 'page callback' => 'my_module_with_parm', //'page arguments' => array('my_function...

Drupal: how to set active menu item dynamically

For example, I have "node/31". And I want drupal to set menu active item to "galleries/lastgallery" if node/31 is viewed. How to do it? <?php function custom_nodeapi (&$node, $op, $a3 = NULL, $a4 = NULL){ if ($op == 'view' && $node->nid == 31) { ??? } } ?> Updated: I know I can use menu_set_active_item. But in ...

Transparent user registration after external authentication in Drupal

I'm working on a Drupal 6 module to provide OAuth-based user authentication and registration. I'm already using the OAuth module to authenticate as described on http://oauth.net/core/1.0a/#anchor9. The next step is to create the user account using information provided after authentication using an custom API of the Service Provider. Acc...

Programatically getting the order the user just completed in Ubercart

When the user is sent to the "thank you page" (cart/checkout/complete) I need to get some info about the order to send it to a 3rd party tracking API. Problem is that in this point there is no info about the order, either in session nor in any other place that I know of. As a workaround I tried querying the last order for the currently c...

Drupal plugin for multiple ratings

Is there a Drupal plugin that will allow for multiple ratings for a single item? For example, I'd want to do the equivalent of the example below. Movie -Rating for Plot (1-5 star rating) -Rating for Action -Rating for Romance -Etc. ...

Drupal 6: Date module and displaying only DATE value, without TIME

Hi friends, I'm a newbie drupal guy, I use http://drupal.org/project/date module for my events date, but this module displays TIME as well as default, and I can't turn that off from configuration pages unless I'm a blind :/ is there any way to display only DATE value? Appreciate helps!! thanks a lot! ...

3 images for drupal

as a small assignment, i am trying to build something like hotornot.com, but instead of 1 image with a rating function, i am trying to place 3 images in line, and underneath each image is a ratings (5 star module), and a voting option.. the goal is sort of choosing between the 3 images, and many users can vote on it.. any ideas? thanks...

Drupal search on content from username

I have a drupal site (d6) where the client would like to be able to search for content from a given user - at the moment a search for "Fred" will turn up any nodes that mention Fred, but none that are by him. There don't seem to be a lot of options on the search config screen, and while I am fairly experienced with writing drupal modu...

moving database schema over to drupal

I'm creating a web application and I just want to know how to think about Drupal's db coming from an MVC background. I have tables to represent people's data such as SSN, First Name, Last Name, Zip Code, Address, Language, Location. Now on the front end I want to create a form to populate this information for a bunch of subjects (people)...

Opening ChatApplication in a Pop Up Window using JavaScript

Hello everyone, I'm working on this project website wherein i will be adding a chat application where users can communicate with each other. I already have developed a chat room webpage which is now functioning well. However, what I want is to create a "Chat Room" link on my website which will just pop out the chat room as a pop-up wind...

Get all logged in user in Drupal

Hi, I have this Drupal website and I want to have my own chat (can't use chat module because I have to personalize it). I have to retrieve all the online users but I can't see any variable for that. I am only able to get the name of the currently logged in user but not the rest of the users logged in. ...