drupal

Drupal, Ubercart: automatically complete orders (skipping pending status)

hi, can I automatically approve an order in Ubercart (skipping the "Pending" status). I'm not performing payments on my website. I just want an user to submit orders, and store them as "Completed orders". thanks ...

How to embed multiple view blocks into a view block and display them conditionally?

I'm trying to embed multiple view blocks into a single view block. However, I want each of the other views displayed only if they meet certain conditions. What is the best way to do this? Im running Drupal 6 with Views 2 and CCK. ...

Drupal url which contans "http://" does not work, shows 404

I have a Drigg site. (Based on Drupal) which has been working well, but suddenly it stopped working for one case. As this is a Digg clone, the site has a SUBMIT page (which contains url/title/description forms). This submit page works like this http://example.com/submit?url=http://etc.com&title=blabla which fills url and title f...

Trouble with getting a sort to work within a view with views_bonus_pack

Hi, This is my first time using Views in Drupal and am finding that no matter what I do, I can't seem to get my output to sort on any field at all. I'm using the views_bonus_pack to create xml output, but not sure if that matters. I've tried the post date field, the node Id field, the node title field, and... the output is always the ...

Change how Uploaded Files to Drupal Are Displayed

When using the core drupal 'Upload' module, I get a user-friendly way of uploading files to my website and providing a download link on the page. But the page is formatted like this: Attachment Size Somefile.doc 13.37mb Article contents here And I would rather it was the other way around, showing the article contents b...

Drupal as the Services layer only

It's possible to the Services layer of Drupal to get nodes, etc. but is there a way to restrict Drupal to being a Services layer, where the front end would be entirely something else not Drupal/PHP. Is there a way to prevent Drupal from lading anywhere and have only the non-drupal interface load which then communicates with Drupal throug...

Theme ubercart "native" menu

This standart theme function seems not working for Ubercart menu function theme_menu_tree($tree) { return '<ul class="my classes>'. $tree .'</ul>'; } I've searched ubercart.org and did not find any answer on this. Any ideas? Thanks! ...

Disabling Krumo in Drupal Services

When I inspect a method in drupal services, I get the output formatted with something called Krumo. It wasn't like this before, it was just an array dump. I'm not sure what happened to cause this Krumo to get activated. Is there a way I can turn it off? ...

Novice to Drupal: How to add custom form fields to Profile in Drupal

Hello, Thank you in advance. I am new to Drupal, and I am presently working on Drupal Profile Module. I have couple of questions.. 1.Can I add a Custom form field to the Profile module, such that I want a check box field combined with text box. So that when the check box is clicked the text entered in the text box has to be displayed in...

Drupal 6 Module Developement - Multiple Node Types, Perms & Access

I'm wondering how to declare permissions and access for more than one defined node type in a module. I'm guessing that as hook_node_info() returns the array like it does then more than one node type can be declared as part of the array but I'm stumped with regards to hook_perm() and hook_perm(). How do I separate the permissions in the...

Disable all Edit hoverables

As admin, Drupal has a ton of little hoverable 'edit' links. Is there an easy way to turn them all off? I know I can kill the Views version in admin/build/views/tools. But there's still Block, Menu, Panels, ... ...

Drupal Login without not having login fields.

I have disabled login area from sidebar and have logged out. How can i log in now, i am doing it locally. ...

Drupal 6: Advertisement module for particular page with channel.

Hi friends, I use http://drupal.org/project/ad module. I have taxonomy pages for locations and I need to display location specific ads. so I have created a Channel for a location, and set the url (see below) and added my print ad() code to page. then, created some ads for the channel, but it doesnt display any ads under the provided url...

Drupal Image attach path in view using Customfield "PHP code"

I created a View that gets the title, body and attached image of some Story nodes. I need to use the Customfield "PHP code" to customize the output but the problem is that it's only giving me the id of the image in an array like this: [image_attach_iids] => Array ( [0] => 66 ). So, I it looks like it's giving me the id but I need the fu...

Drupal authcache - load dynamic content through ajax

I'm using Drupal 6 with authcache. I've read that you can load dynamic content by using ajax, even when the whole page is cached with authcache. In my template files, I've used this code to show Edit and Delete links: <?php if ($user->uid == $node->uid || in_array('moderator', array_values($user->roles))|| $user->uid == 1): ?> <span cla...

Storing external img in Drupal as if it was uploaded by user

I have a scenario where users can upload an image, OR a video (from youtube or vimeo) using CCK via ImageField (Images) & Embedded Media Field (Videos) My site has been using the ImageField images to create thumbnails in various views with imagecache actions. Youtube/vimeo provide an image capture of the video that I want to use as a "...

Drupal: Access Denied Error for downloading all uploaded files

I had a site working just fine with Drupal 6.16. Then I updated to 6.17 (and updated all of the modules), and all of a sudden the uploaded files were all generating Access Denied errors. If I switch the file system to Public, it all works fine (what I did as a workaround). I tried a file compare to see what changed between editions a...

How to programmatically add new nodequeue?

I'm writing an install file for a custom module, that needs to create some new nodequeues. But a drupal and google search are so far turning up empty. Anyone know how to do this? Drupal 6 ...

Using Node Reference without popup ?

I am using two content types company and Employee . I am using node reference here(Company -> Employee). Within the Company form , the Employee node comes as a popup ,Employee form need to bring the display and functionality to the company form and should keep the node reference. . ...

Can anyone suggest good websites for self learning Drupal ?

Am a beginner in Drupal.Can anyone suggest self learning websites for beginners with good examples? ...