drupal

With drupal boost module any way to still have randomly loaded images

I am using Drupals boost module to cache my very dyanmic website. I also am using a views block to load in banner images from a content type and the view is set to randomly load an image. However, because boost module is caching the pages as html, what ever random images is loaded when the page is cached is what I am stuck with. Is ...

Drupal form submit, form after_build

What is the difference between $form['#submit'] and $form['#after_build']? ...

Drupal Display suites

Hi All, I hope im not being daft here, but ive recently installd display suites (6.x-1.3) and ive been watching a few tutorials and on some of those tutorials they have the following, which I dont have. STyles ( I assume this is because I have not yet defined any styles in my theme ?) Region to Block ? ( is this perhaps a seperate mod...

How to render a form as a table

I've created a form that has the following structure function myfunction(){ $form['myform']['row1']['field1'] = array( //type, title, etc. ); $form['myform']['row1']['field2'] = array( //type, title, etc. ); $form['myform']['row1']['field3'] = array( //type, title, etc. ); ...

Location-based range search

I am trying to implement location-based range search using Drupal location and Gmap modules. Ideally I would like to have a form where the user can type in either zip/postal code or specific name - e.g. London + specify a range within which he would like to search. Currently I have a working searching functionality that returns map marke...

How do I remove HOME from breadcrumb

I am using Drupal 6.17 and want to get rid of "HOME" in the breadcrumb output... eg: $breadcrumb= PRODUCTS // SOFTWARE // FEATURES instead of HOME // PRODUCTS // SOFTWARE // FEATURES ...

How much of using Drupal involves programming?

Hi, I would like to ask those who are experienced with building a website with Drupal. I got a job like this, but I'm more interested in programming. I got also another job offer and cannot decide!! How often do I get to programming/changing code in Drupal, when building a site in it? Isn't it just about clicking around and downloading ...

Displaying 'select' elements in a form table

I have a table inside a form. I'm trying to display a 'select' form element in one of the table columns, but it doesn't display; it keeps getting rendered outside of the table. However, if I change the form element to 'checkboxes' or 'radios', it displays without problem. I'm rendering like this: $output .= theme('table', $header, $rows...

Drupal path to flash resources

Hi, I have the following javascript to embed a flash in my page.tpl.php <script type="text/javascript"> <!-- var flashvars = { xmlUrl: "xml/banner.xml" //Use to change XML filename or location ...

Drupal Rules: Problem with "modify taxonomy"

Hi! I'm working with Drupal 6 to create a feed collecting site. I import the original feeds via the feeds module and copy their tags. But I also want to assign a category (terms from second taxonomy) according to the author name to be able to divide the content in a unified way. I want to use the rules module (rules-6.x-1.2) to assign t...

Poll analytics in Drupal?

I'm trying to track how often a Poll content type is answered as a block in Drupal when it's embedded on a number of pages as a block. For example, if 5 users answer the poll on page A, and six users answer on page B, I need to know those breakdowns, but not their specific answers. I'd planned to simply look in Google Analytics for the ...

How to replace label on specific page?

I am trying to create a Your Story functionality where the users can submit their stories in form of a comment. I've made a standard page with comments functionality, however instead of 'add new comment' label, I would like to have 'submit your story'. How can I alter this label only on that particular site and keep it as it is on other ...

Can you have 2 views with separate exposed filters on 1 page?

I have two views loaded on the front page. Both contain exposed filters which when modified, display different content (done using the Better Exposed Filters module). When modifying one view the URL will be http:example.com/?cid[]=1 and the changes will take effect. When modifying the other view the URL will be http:example.com/?type[]...

Drupal - include taxonomy term descriptions in search

Hi all, I am working on a large site which has around 600 taxonomy terms in one of its taxonomy vocabularies, each with the description field populated. It's important that the search mechanism searches these term descriptions as well as the nodes themselves. Drupal does not appear to be doing this by default - is there any way I can ...

Drupal import users from one install to another install

I have 2 drupal databases, 1 current database and a backup. I'm now in the situation where I need to restore the backup. I'm looking for a way to import the new users in the current database into the backup. How should I go about doing this? ...

Showing form data after submit

I have a form with a submit button and a handler that stores data in the database. Problem is when the form is submitted, all data is cleared from the input fields. Is there a way to still show them after submit? What changes do I need to make to my form_submit function? function mymodule_form_submit($form, &$form_state) { //how to ret...

How to add multiple images to the node programmatically in Drupal - if possible

I am trying to attach multiple pictures to the node programmatically in drupal 7 but have no idea how. i am not even sure its possible. Here is my code for attaching one picture to the node and it works. Please if someone can help me how to attach multiple pictures more than one to the image field $node->field_image['und'][0]['fid'] = $...

Manually log in a user

Hello gents. I'm working on a drupal site where I allow users to login while at the same time posting a content. I've successfully added email & password fields to the original form, but I'm stuck as to how I should actually log in the user. (My plan is to do it in the validation step, before the content is created, to make the logged i...

How to make a block (or a region) float in Drupal?

I saw that there's a module called Floating block that should do what I'm searching for: but it duplicates the floating block, making it totally unusable. Can you please tell me some other ways to accomplish that? ...

Custom drupal ajax forms based on content type cck

Why hello there Stackoverflow, I have a nutcracker for ya, is there an "good" way to create 100% custom forms or rather just textboxes and have the values sent to an url like so: http://site/drupal/formreciever-content-type , post-sending the values of X textboxes with jQuery for example? Without having to do so much backend work, right...