drupal

Configuring APC with Drupal

I am working on a website which is hosted on a VPS with CENTOS 5.4 i686 virtuozzo installed. I have a drupal installation on the server which gets around 100s of authenticated users at the same time.But at a certain point of time the server stopped responding and the site went offline. So, I tried installing the opcode cache - Alternativ...

DRUPAL, Views module: can I dynamically change the number of columns of my grid ?

hi, I'm using drupal for a website and I've created a grid with the View module to display my nodes. Can I dynamically change the number of columns of my grid with javascript according to the browser width ? At the moment I can only specify it in the back-end. thanks ...

best way to manage team membership in drupal-based site

I'm creating a site to manage a sports league. At the beginning of each season, there's a draft during which captains choose their teams. Currently, I'm considering using Organic Groups and/or a user reference field on the Team type. (Which one? Both?) I'd like to provide a clean interface for managing the draft where an admin would hav...

Drupal: cck taxonomy field with depth filtering

In views, is it possible to configure a cck taxonomy field so that a user search for higher level taxonomy terms also matches its parents? Say that I have this taxonomy called Places: Asia China Shanghai Beijing Japan Tokyo Nagoya Indonesia Bandung Banjar Europe France ...

Eclipse + Xdebug + WAMP - Need help

I'm trying to debug Drupal on a windows machine using Eclipse (PDT), WAMP, and XDEBUG. Everything seems to be running fine, Eclipse recongnizes when I move between pages (it's shows in the "Remote Launch" section "stepping") but nothing happens, and my breakpoints are ignored. I'm ready to start pulling my last few hairs out, any help ...

CSS/Javascript: dynamic multiple columns

hi, I need to build a dynamic multiple columns view for the content of my website (I'm using drupal as CMS, if can be useful info), with the following features 1) the columns width is fixed (OK) 2) the columns number depends on the window width (OK) 3) the elements has not fixed height (important, not fixed yet) 4) the content shoul...

How to trigger TinyMCE iframe creation/init in drupal/jQuery site for moved/cloned iframe

I am working on a jQuery-based plugin as a drupal module that will tweak the comment form for a content type so that it appears inline on clicking certain content. When I try to clone() the comment form and append it to a hidden div so that I can access it later, the TinyMCE iframe does not come with the cloning, so I'm left with an empt...

drupal menu and jquery menu

i'm new to drupal , i found that 2 ways to build menu drupal menu module and other one is with drupal jquery menu. i need to know which is best ?and in what basis?. Can any one help me.. ...

Simple Drupal sub-themeing...what am I doing wrong...?

Hi! I'm trying to set up a very basic subtheme with Drupal. I've been led to believe that the subtheme will inherit the settings of the base theme and the two themes will look almost identical. Here are the steps I am taking... Creating a new folder at '/sites/all/themes/sub_theme_name'. Creating the info file 'sub_theme_name.info...

drupal: add search field to an article

hi, how can I add the search field (searching for all content and tags in my webiste) to my article ? I've already installed and activated the module, but I would like to add it to a single article instead of a block of my website thanks ...

What is the best way to create standards-based, cross-browser compatible rounded corners in Drupal?

I am currently working on a Drupal 6 theme, for which designer is explicitly requesting to use A LOT of rounded corners. I could of course create the rounded corners - traditionally - with images. But I know there must be also better and easier ways of creating rounded corners. Optimally, I would like to write my CSS as standards-compl...

Drupal Custom Menu Positioning

Hi Guys, i've created some custom menus and i'd like to place them somewhere fixed in my page.php.tpl. Any idea how that works? Thanks in advance! ...

Modificate content profile form to show checkboxes in the matrix

I need to show matrix like this http://eugen.gotdns.com/test/zeitplaner.png in content profile form. I can arrange checkboxes with CSS in this way, but i need also some labels on the top and on the left. Should i work with $form array to add some labels? Can this be done with css maybe? ...

Drupal Custom Menu Styling

Hi Guys, i created a custom menu called "top-navigation". Now I'd like to style it with css. Any idea how that works? Thanks in advance! ...

How dangerous is this sql query?

The query: UPDATE node as n right join content_type_product as c on n.nid = c.nid right join uc_products as p on p.nid = n.nid set c.field_product_price_eur_value = p.sell_price * 0.0961, c.field_product_price_zar_value = p.sell_price * 1, c.field_product_price_gbp_value = p.sell_pric...

Duplicate <meta> in Drupal variable $head

Hey Everyone, I am trying to customize the $head variable in my page.tpl.php template, because there are two instances of <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> appearing, which I believe is affecting the site from being validated u...

Drupal Forms - Setting a Default Value

I am using the webform module for Drupal 6 and would like to set a default value for the confirmation message of the webform whenever it is created. Would I have to create my own module to set this form value whenever a user creates a new webform? Or would I have to implement a special hook to look for when a webform is created? ...

Wordpress or Drupal Users Report Module

Hello Guys I have to build a site that receives some custom report from my users and store them in a database. The users are able to view their reports and the department administrator comments on it. I was creating this myself using PHP although it was good but it's full of security holes and I get lost after a while when my code grows ...

What is a user category exactly?

I wanted to add a tab to the user edit page ie user/%/edit/foo, and was using the twitter module as a model. After much spelunking and stepping through with a debugger, I realised that I needed to add a hook_user function in my module so that the %user_category part of the menu router path would work. It's now functioning as expected, b...

Drupal : Drupal6 views : Filter restriction

Hi, I am a newbie to Drupal, hope somebody can answer my query. I think I am facing a weird problem in views..I have a content type of say Company and have around 3-4 pages added to it. The sequence is as 1. Company - default page 2. View company 3. Search company 4. New page The problem is when I go and add a Filter to the Search co...