drupal

Purge open carts in Ubercart

How do you clear out open carts (non completed checkouts) in Ubercart? I don't see a function or admin setting to do this unless I looked in the wrong place. Example, I just want to clear out carts who have gone around and added things to their cart, but did not complete the order. ...

Views, Arguments and Blocks

Hi there, I currently having trouble to get my head around how Drupal's views work with arguments when displaying a view as a block. I have a few simple pages (eg studios/bremen) and a few users that match those pages (eg username: bremen). Users can post news which need to be teasered on the studios/* page. Do I have to use an Argume...

My daily Drupal question: get all nodes in a given vocabulary trough the api

While you can easily make a query result where vid=vocabularyId I'd like to know if there's a method in the api to do so so my code looks a bit less ugly. I'd like to know if theres something like vocabulary_get_nodes(vid) already implemented in Drupal's core. ...

Drupal: Ubecart.. starting to use it

What kind of things do I need to know before to start to use Drupal Ubecart ? I'm already experienced with Drupal. I was wondering if I need to setup secure https connection, or doing additional work for my webshop. Or can I just install ubecart and configure it ? thanks ...

Maintaing the member's hours spent in the organization : Drupal Website

I am running a Drupal powered website of my college. Each student has a certain (fixed) number of hours to complete in any kind of sport. Now, I am maintaining various sports on my website using CCK and Views. Now, if a student plays some sport say A, he will go to the website and check out A's details. Also, after specified period of t...

Link problem with Drupal 6.16

Hello everyone, i am currently working on a website and I need to make a chat application for it (as seen on some other questions i posted, haha) Anyway, the gist is that I now have my website (on localhost for the time being), and my chat application. Now i need to make a button which, on click, will open the chat webpage in a pop-up w...

Drupal redirect user (also uid 1) to "page not found" for unpublished nodes. Cannot view, cannot edit.

I'm having some strange behaviour on one of my Drupal sites. Usually when I'm logged in as admin (uid 1) I can always see and edit nodes even if they are unpublished (makes sense). However on one of my sites I always get redirected to the "page not found"-page (404 redirect) even when i'm logged in as uid 1. Any ideas?? This is a Drupal ...

Drupal: remote development with Eclipse

hi, what's the best solution to develop Drupal remotely on a development server, using Eclipse ? I found this: http://www.eclipse.org/dsdp/tm/ Is this the best way to do it ? And above all, am I going to have some limitations ? thanks ...

Drupal: specify the serch engine description summary from back-end?

Hi, Is there any way to write in the Drupal back-end the text to display in the search engine summaries? Currently, the beginning of my home page (usually menus...) is displayed. I would like to add a description instead. Thanks ...

Drupal - New groups/fields not showing for custom content types

I've created a couple new Content Types (City, Property) through the content types admin interface, and added some custom fields to those content types (Latitude, Longitude, Image, etc.). Now, when I go to create new content, I don't see any of the fields I've added; all I'm seeing are the default fields. Is there an additional step th...

Drupal in Eclipse Helios PHP: 2 points

hi, 1) I've just added Drupal as project in eclipse Helios (PHP development) and I get 100 warnings about the code. Is there something am I missing ? Or it is just normal ? 2) I'm actually wondering if this is a good idea to develop my drupal website, I could also use a simpletext editor together with devil module to print variables.. ...

Redirect form in validation fail

I have a situation that if my form doesn't validate I need it to remove all but the first argument from the url. The reason for this is because the results of my form are displayed below the form in the content area. If the form doesn't validate I need to remove any previous results. I am have tried the following in my form_validate fun...

Drupal, CCK -- remove draggable reorder for non-admins

Is there a clean way to remove the draggable option on multiple-value CCK fields? I assume I could style it out with CSS but that doesn't seem like the "right" way to do it. Ideally, the draggable option wouldn't be available for any users except admins. Thanks! ...

Combining Page Manager and Mini Panels

I understand how I can use the Ctools Page Manager to override the system edit form for a specific content type. And I understand how I can use the Panels Dashboard to create a Mini Panel which can be embedded into a Panel Page. But I am not clear on how I can create a Mini Panel which includes an edit form (customized ala Page Manager) ...

Drupal / Jquery horizontal scrolling div

I'm trying to create something similar to this (http://flowplayer.org/tools/demos/scrollable/index.html) in Drupal but I'm finding it difficult. An example of where I am wanting to use it is http://hotness.bangtest.co.uk/work the part beheath the slider. Any help would be massively appreciated! ...

If there isn't something like this in Drupal then it should be added: translating object properties

Digging into the api looking for methods to translate a property of a category term I could only find methods that take a string as the param, but what happens when I have the id of the object which property I want to translate? I'd like to be able to just pass this id and get the translated string (if exists). I achieved this with a rel...

Drupal: Fatal error: Cannot redeclare > node_form_submit() (previously > declared in...

Hi, I want to redirect my form after submissions, I'm trying to use a hook, but this is what I get: function node_form_submit(&$form, $form_state) { $form_state['redirect'] = 'contentManager/'; } Fatal error: Cannot redeclare node_form_submit() (previously declared in drupal/modules/node/node.pages.inc:451) in drup...

There is no any output in a running Drupal, what's the problem?

Apache, Mysql, PHP is running well. Suddenly all the page just display nothing, what's the problem? Any suggestions? ...

php garbage collection while script running

I have a PHP script that runs on cron that can take up to an 15 minutes to execute. At regular intervals I have it spitting out memory_get_usage() so I can see what is happening. The first time it tells me my usage I am at 10 megs. When the script finishes I am at 114 megs! Does PHP do it's garbage collection while the script is running...

"Drupal is not defined" Javascript error and drupal.js gives "Page not found" error

I'm installing Drupal like I've always done and I start to see this error in the console. I know Drupal object is defined in drupal.js, so I open up the source file and click on /misc/drupal.js and it says "page not found." Huh. That's weird because I can see that file is in my system, just where it should be. But somehow Drupal cannot f...