drupal

Is there option to have powerfull URL and Aliases in Drupal, not the poor one that I've found?

First of all I want to state that I've just started with Drupal so I'm a noob. I'll try to explain what I think is a powerful URL and Alias system. Lets say we have some structured content with some subcontent shared between main sections. The main sections could be Visitor, Customer and Website. Now every main section has it's own men...

Drupal: Node Submission Time

How do I print into a block the node submission time. something like... print $node->submitted_time? ...

How to use java.util.Observable from Javascript?

I'm building a Drupal module that integrates the "FileCatalyst" Java FTP applet with a standard Drupal form. I'm implementing a hook to submit the form when a file transfer completes. Currently I'm polling the applet with a setTimeout() call, but this method can miss changes of state if they happen too fast. However, the FileCatalyst ob...

Drupal - Migrating to new server

I have a fairly new drupal installation with a few hundred nodes. I moved it from the development server to the production server. However, when I opened my homepage, it says page not found. After checking all my links, it seems that I can't get to any of my content. They exist in the node database, as well as the content type tables. I...

Drupal Displaying the Vote up down widget 2.x

I'm using the drupal vote up down module and a module which overrides the node display, leading me to have to put the vote up down into a block (as opposed to having it be automatically rendered). Here is an issue with a snippit on how to do this in 1.x http://drupal.org/node/544354 Unfortunately 2.x is totally different. Does anyone ...

Drupal: Checking to see if User Has Picture

I'm displaying the userpicture on a node with this code here: <?php $user_load = user_load($node->uid); $imgtag = theme('imagecache', 'avatar_node', $user_load->picture, $user_load->name, $user_load->name); $attributes = array('attributes' => array('title' => t('View user profile.')), 'html' => TRUE); print l($imgtag, 'u...

PHP image upload grey lines

Hello! I have a custom drupal module which saves uploaded files passed from the uploadify jquery plugin. All seemed well but some images are coming up with grey blocks in them. See: http://5oup.net/sites/default/files/360/5ouppic.jpg This is a user submitted image and I'm unable to reproduce the problem myself - as I understand it it...

Include OpenId in drupal

hi! i want to create a OpenId login system like stackoverflow :) in drupal..By default, drupal doesn't offer this..is there any plugin that does this job? EDIT:the user should ALSO be able to login with their yahoo, gmail, aol or blogger account..u guys can't understand my pro.. it's simple..i've openID enabled in my drupal 6. When i t...

Drupal 6 - Permissions issue after migration

My Database was quite large with lots of test data in tables like watchdog, access log,etc.. and I was running in to some trouble uploading. Then I proceeded to dive into the database and started truncating tables willy-nilly. I am figuring out that I should have used a little more discretion because I have had issues on the new producti...

How do I authorize users on Telligent Community Server 2008.05 into another site?

Hello, I have a group of users with accounts on a Community Server 2008.5 installation, and I would like them to be able to log in on that site and automatically be logged into a Drupal installation as well (on a separate machine). I believe I'll be able to figure out the Drupal site using the many external authorization tutorials, but...

How do you create a "linked list" of Story nodes in Drupal 6?

Hey, I'm trying to link together a number of pages in a regular flow in Drupal. The way I've been doing it recently, is to create a new Menu and then seperately create a page for each menu item. For example, I have a menu block with links One through to Six. I then create six pages and link One to node/1, Two to node/2, Three to node/...

Checking for node-add mode in page.tpl.php

Hi there In my page.tpl.php I have an ‘if’ statement that checks to see what node is being used and then add a class to the ‘container’ element relative to the node i.e. <div id="container" class="clear-block <?php if ($node->type == 'card'): ?>card-node-type<?php endif ?>"> But I would also like to add a class to the ‘container’ ele...

Drupal gallery with thumbnail made of first picture

I have drupal6,cck,views,imagecache. category_type gallery contain a CCK node reference to a category_type images and In this Images there is a cck file (image) field. I know how to create a view which will display a list of galleries. BUT question is .. HOW can I display a list of galleries with a THUMBNAIL that is made of first imag...

Drupal theme() problem

I am trying to display a custom page the same as my search results page by re-using the theme functions and pre-processors built into the search module. With an empty Drupal cache this works beautifully. I simple call theme('search_results', $results, 'node' ); with a correctly popuated results array, and I get back formatted markup...

Drupal: URL to create new book

I know how to add a childpage to an existing book, with an url like this: /node/add/book?parent=9228 The last number is the book page's id. How can I set it to create a new book? Thanks. ...

display vocabularies in drupal 6

by default, when you create a content which has a taxonomy, drupal will show a select list with all term showed up. i just want to know, which built in function the drupal 6 used to build that select list. ...

I am looking for something similar to the drupal CCK, but in Java (in a Java CMS)?

I have been using drupal, but I am constantly hitting its limitations. the drupal CCK (and associated modules) is a cool module in Drupal which allow you to specify new "content types" and add fields to them such as Images, text, check-boxes. Drupal then generates pages to add/edit and display these content types on the web. Obviously th...

return latest version of a drupal node

I'm writing a drupal module, and I need to write a query that returns particular rows of one of my content_type tables. My query so far is: SELECT DISTINCT pb.*, f.filepath FROM {content_type_promo_box} pb LEFT JOIN {files} f ON pb.field_promo_image_fid = f.fid I realized as I was working that the table not only contains each cck fiel...

Remove One Time Login System in Drupal Froget Password

How to remove one time login system in Druapl ? I don't want to do this system when I click forget password. I want to generate new password and send to user. ...

Changing the threading comments markup in Drupal 6

Hi guys, im here with a nasty question. Drupal handle comments giving the user the choice to display thems just in 4 ways: Flat list - collapsed, Flat list - expanded, Threaded list - collapsed, and Threaded list - expanded. Im using the last one, whom provide a markup like: <div class="comment"> <!-- comment's content --> </div> ...