drupal

Overwrite drupal calendar theming

Hi everyone, I am trying to theme a calendar view, is there a way to override the theming path with a module instead of overwriting the template files? I want to create a module that overrides the theming functions so I can include the template files in my module instead of the calendar module. thx in advance ...

Best method for Experienced Programmer to learn Drupal Framework

I do mostly PHP programming but also have work experience in python, C++, Java, and Objective C. Our company is merging with another company that is a Drupal house which means I need to learn it quickly. Any tips, books, sites, blogs, etc. for an experienced programmer without any real Drupal experience? ...

drupal 6: redirect admin url for custom user role

Hi friends, I need to redirect a url for a user role. URL From: http://www.example.com/admin URL TO: http://www.example.com/admin/content/filter User Role: example-admin So, when a user (example-admin role) login to admin panel with the url example.com/admin , he will not see Access Denied page, but redirected to content/filter as ...

how to add a button to drupal forms?

I want to add a custom button to drupal create form so if the user clicked on it instead of submit button, the workflow state of the created object change to another state(not the default first state) any suggestion? ...

append data in user global variable?

Is there any way that i can append my data into user global variable so i can access it on other pages? ...

Drupal, CKEditor: custom formatting options issue

For some reasons the checkboxes in "custom formatting options" are always selected. Even if I unselect them and save them, they remain selected. Screenshot: http://dl.dropbox.com/u/72686/customFormattingOptions.png Could you explain me why ? thanks ...

drupal view how to find top one in all category

i have a content type event with following fields date,type and using fivestar module for voting. The type takes 3 possible values 'art', 'entertainment', 'iq'. i try to generate a block that should display top event (by votes) in each category. any one have idea ?? ...

drupal with more than 100000 nodes, performance increase to vey high

I have a drupal site with more than 100000 nodes and counting. I want to know, how can I increase the site performance dramatically. There are certain days when traffic is high and the site becomes really slow. The site also uses views heavily and the frontpage is panels based. With the same resources I have now, what can I do to in...

get only root levels of taxonomy in view

Hi I have Hierarchical vocabulary like Audi A3 BMW BMW c4 BMW x11 In my views page I want to all parent terms in page, like Audi BMW How to do this? Thanks for your answers ...

Setting a drupal view to a random page number

Hey! I have views 2 installed and I have created a view that is displayed in the front page. The view displays some page links ( 1 | 2 | 3 | 4 | ... etc). I want to know if it's possible to make the view start at a random page instead of always starting at page 1. Note: I don't want to randomize the display I really just want to rando...

Drupal search was performed using the query 500 shtml.

Can anyone help why i'm receiving this message: "The page you requested does not exist. For your convenience, a search was performed using the query 500 shtml." This prevent me from posting some content on my live site, but in my development site, it's just work fine. ...

Drupal CCK date field with just hours and minutes

hi @all how cann i create a date field in drupal just with houers an minutes without years and months. thx ...

drupal Webform HTML Email hooks

I'm trying to send a thank you email to the user submitting the form in HTML. I found out by using a hook in my template.php file like this works to set the header correctly: function mythemename_webform_mail_headers($form_values, $node, $sid) { $headers = array( 'Content-Type' => 'text/html; charset=UTF-8; format=flowed; delsp=y...

drupal Webform select list empty first value

I need for my select lists to have a default option of an empty value, or "Select" with no value. I don't see any mention of how to do this in the documentation. // $Id: webform.module,v 1.196.2.47 2010/08/16 17:54:19 quicksketch Exp $ Thanks ...

How to add a disclaimer above the comments form?

I'm looking for a good, standards friendly way to alter the default comments form, such that there is a disclaimer immediately below the "Reply" header. I only want this disclaimer to appear above the comments form itself, not meerly when viewing comments. This thread ( http://stackoverflow.com/questions/2644483/drupal-adding-disclaimer...

PDF upload by user in Drupal

Hello all, I am developing a site for an International Conference. I want the registered users to upload their research papers in pdf format using a form. I have no previous experiences working with a CMS. ...

Drupal hook_user switch for registration and submit

I need to send registration details somewhere else when Drupal completes a registration. I can't find the correct variables for the switch. I tried this but it's not working. This function is in my module "externalnewsletter". function externalnewsletter_user($op, &$edit, &$account, $category = NULL) { if ($op == 'register' && $cate...

Drupal contrib module for attaching an Image to a Vocabulary

Does anyone know of a drupal (6) module for associating an image with a vocabulary? (similar to the way Taxonomy image does for terms) I've seen this post on d.o http://drupal.org/node/533282 (but there is no answer - and it's not what I want anyway) Thanks, Dan ...

How do I get wkhtmltopdf running for a Drupal site on cPanel shared hosting?

First off, I will acknowledge that I am aware of another similar thread on the topic of wkhtmltopdf, but it was not similar enough to resolve my issue. Here's the other thread: wkhtmltopdf Second, I will say that I have successfully used wkhtmltopdf with a Drupal site on a dedicated server that I run, where I installed the libX11 and us...

Drupal: Add id to error list

Is there a solution to add an id to the default drupal error list items? Currently i got this: <div class="messages error" id="inline-messages"> <ul> <li>Name is required.</li> <li>Email is required.</li> <li>Message is required.</li> </ul> </div> But i would like to have the fieldname as id: <div cla...