drupal

OR in view's argument -- How to rewrite views query?

I need an OR clause in the arguments section of a view. So if a user passes 123, I'd like to return rows WHERE Field1 = 123 OR Field2 = 123. I'm fairly certain this can't be done in the views interface (but please correct me if I'm wrong). So I'm trying to rewrite the query. Where's the best place to do this? I'm in hook_views_pre_e...

Multiple ListBox's in Drupal CCK?

Hi, I want to create content type with multiple ListBox's which populate dynamically depending on the previous. E.x. If user selects the continent the next list box shows the list of countries present in the continent . ...

jQuery update not replacing js files in Drupal 6.16.

Hi, I am using jquery update in drupal 6.16 along with a lot of other modules. I am trying to use jquery ui 1.7.2 to render tabs. But unfortunately they don't work properly since jquery update is not replacing the jquery file (jquery 1.3.2). I checked the version using $.fn.jquery (in firebug) and got 1.2.6 (not 1.3.2 as required) as t...

Drupal 6: Block visibility settings...

Hi friends, I'm new at Drupal. my url is like www.blabla.com/drupal/blog/ I have some blocks that must be disabled for blog part. So I go to related block configuration and make it as below: but it doesnt work :( just to test, I wrote only * , and it worked well. but i doesnt work when I want to define specific page :( ...

Why is Drupal writing to root and not sites/default/files?

I'm using Drupal 6.14 on Win7. Everything seems to work except files that should be written to sites/default/files are trying to be written to /. The site was moved from a linux installation, which is writing the files correctly. I have setup a web.config w/ the rewrite rules for drupal. Not sure what or where else I should check. Thanks...

Need to submit the register info in eloqua from Drupal

Need to post the registration info to eloqua too. I am using Drupal 6.14 ...

Drupal 6: display image with View in blog posts listing page...

Hi friends, I'm new at Drupal, love it so far :) I added Photo and Logo File field to blog entry with CCK. I need to display these images at blog post listing page. So at View Module, I added fields as below; At View: Content: Logo URL to file Content: Photo Path to file and it displays only names of files, but I need to display i...

Drupal, Views: header doesn't accept PHP..

hi, I'm using Views for some nodes, and I want to display a different View title according to which taxonomy tags are selected in my filter. I already have taxonomy field for each node in my view. But this is not what I need. I basically need to display all the currently filtered tags on the top of my view. I was wondering if I can so...

Drupal 6: Extremely-Annoyingly slow although devel (&all development modules) are disabled!

Hi friends, I'm new at Drupal. I use Hostgator and working on my first Drupal project, at the begninning everything was fine. but later site has started loading extremely slow! I even needed to contact to HostGator, and they restarted the apache. than it was fine for 10 mins, and same again now! Sometimes it give mysql errors like Th...

How To Configure Fields To Display In Ubercart Product Node

Hi I have set up ubercart on a site and everything seems ok when adding products and viewing the catalog page however when I click on the product the product view does not include the product image or the price. I have have enabled all fields in admin/store/settings/products/edit/fields however this does not seem to change anything (SK...

Drupal 6: using too many Views module causing site to go down cos of too many mysql connection.

Hi friends, I have HostGator Baby Shared Plan . I develop Drupal site on. everything was fine at the beginning, then by the time i go further with development, site started ti work really slow. now it is not working at all. giving my sql errors like TOO many connections, etc... I created so many blocks, pages with View. so it makes my...

#1130 - Host 'localhost' is not allowed to connect to this MySQL server

Wamp get this message: #1130 - Host 'localhost' is not allowed to connect to this MySQL server Any help would be amazing Thanks in advance ...

Git + Drupal workflow

Hey all, I'm a Git beginner with workflow questions. I've learned lots of commands, and I know how things work, but I can't seem to figure out the right workflow. Love to have some suggestions. [Note, I'm the only developer working on my projects] A friend once told me that it was best to work on the live server rather that on loc...

Having a content type with a CCK file field, how to set up a view to only show nodes of that content type which do not have a file uploaded?

I have explained my problem here http://screenr.com/6rA I posted this earlier in text but no one could get the idea about my problem so I made the video. It's only 4 minutes long. I'd appreciate if anyone can help. It's the last hurdle for me to finish this university project. EDIT: Someone has done something similar to what I need a...

Drupal drag-able blocks issue

Druapl offers great functionality whereby blocks can be dragged up and down to reorder as shown below. However, on a couple of projects I've been working on they have disappeared during development )as shown below) but I have no idea why! It must be something that I am doing wrong but for the life of me I can't work out why. ...

Count number of results in a View

I need to count how many people belong in pre-defined groups (this is easy to do in SQL using the SELECT COUNT statement). My Views query runs fine and displays the actual data in my table, but I simply need to know how many results it found. However there doesn't seem to be a COUNT option in views. I am guessing I am going to have to u...

Django or Drupal, which one should I use that suits best my needs ?

Hello, I want to learn and use Drupal or Django for the following: dynamic web sites, medium database, multi-level users, paypal integration, content managment, speed (developing), security I like MVC, ORM and object-oriented prg. Which is better to jump into ? Which one is more mature, powerful, understandable, object-oriented an...

drupal POST Content-Length exceeds the limit

hi i got list of warning regarding file size when i try to upload an image using file upload. "POST Content-Length of 12223490 bytes exceeds the limit of 8388608 bytes in Unknown on line 0" My question is how to avoid displaying warning messages (i got 5 warnings). I dont want to increase the file size limit just handle it with showin...

How to add a conditional filter for drupal's view?

Only apply the filter when there is filter=1 in the query string, has anyone managed to do this kind of conditional filter with drupal? ...

Registration during content creation in Drupal?

Is there an easy way to allow a user to register as he creates content type. E.g. Let's say there is a content type called "listing". When the user clicks to on a link to create it, and he's not logged in, I want a "register" box to appear ABOVE THE CONTENT CREATION area, where the user can enter his normal registration details. Is this ...