drupal-6

Drupal 6: How do I create a Product Item Gallery

I am creating a site that includes many products, of each of those products I could have up to 10 images. What I need to do is this: 1: Image #1 - loaded (large) 2: Create thumbnails of each of the uploaded images 3: Place thumbnails under large image 4: When user clicks on a thumbnail it will replace the large image with the one select...

Drupal path problem - views vs node

I've got a problem with my site search not linking properly to my views pages. I've got a views page set up to display recipe data. It has the URL properties of: index.php?q=recipe/%1/%2 where %1 is the recipe category, for example, breakfast, and %2 is the recipe name, for example, Muffin. The view goes through the recipe node conten...

Drupal 6: How do I only call up "events" by upcoming date?

I am a newbie to Drupal so this may be a simple answer... I am building a site that on the homepage I want to be able to call up events that will happen in the next 6 months and then disappear after the event has past. I have made a field called event_start_date that you can enter the "From" and "To" dates. I already used Views to call ...

Drupal Node Hierarchy

Hiya, I'm having a problem working out how drupal structures content. I have a content type called "Artists" and then i have "Songs" i want my URL's to be: www.foo.com/{artist generated url}/{song generated url} i.e. www.foo.com/led-zeppelin/stairway-to-heaven/ {artist generated url} -> is created automatically by pathauto from ...

automated scrolling video playback

I would like to add an automatically scrolling sidebar to go through my videos and play them back (like this: http://video.on.nytimes.com/). I'm guessing I will need to create some highly customized javascript. Do you guys have any suggestions on how to accomplish this. I'm using drupal 6 and building a custom block module to do this. Th...

Is there a drupal 6 hook to process login authentication without posting from the login form?

I'm working on a Drupal based system that will not be directly handling login processing. Rather, another system will be handling the user authentication and transmitting the data directly into Drupal via a GET parameter. Can I hook into a function that will process that GET parameter and verify the User? I'm coming into the develop...

Drupal - use l or url function for mailto links

Does anyone know how to use the l() or url() function to create mailto links? I am running drupal 6. ...

Resizable and dragable iframe in thickbox (drupal)

hi, I have made a block in its body I have added php code that is : $var = md5(time()); echo "http://maps.google.com/maps?q=http%3A//mysitename/sites/default/files/content.kml?q=" . $var . "&keepThis=true&TB_iframe=true&height=560&width=1024' class = 'thickbox'>View Works On a Map"; ?> the above code causes an iframe to open with thic...

how to display hidden text on a click of a button

Hi, I am quiet new to Web technology and need help with my latest assignment. What I want basically is>>A text box which displays 500 characters only no matter how long the content is and when clicked on a button it displays rest of the characters/text typed. So to give an basic idea. Lets take example of the text area/box in which we g...

Drupal: Hierarchical taxonomical breadcrumb trail

Hey all, I'm looking to generate a hierarchical breadcrumb from a taxonomy term (e.g. grandparent/parent/child) when all I have is the TID of "child". I've been toying around with taxonomy_get_tree(), but it seems quite difficult to do without very heavy iteration. There has to be an easier way. Thoughts? Thanks! ...

how to index cck field of type text area in solr: drupal6

I've created a cck filed of type textarea with name filed_desc, how do i get this field to index in solr. i found this article http://acquia.com/blog/understanding-apachesolr-cck-api, i have tried this but it is not indexing the filed, can somebody help. <?php // $Id$ /** * Implementation of hook_apachesolr_cck_fields_alter */ fun...

how can I best display a list of affiliate links in Drupal?

I have a Drupal 5 website on which I want to display a list (or grid) of affiliate links to different products, sales and offers. Each 'affiliate product' node will have a title, description, an image and a URL. When either the image or URL link is clicked, the user should be redirected to the URL. I've gotten close to this, using a v...

Drupal » Print taxonomy terms

Hi all, I'm theming a node-MyContentType.tpl and I would like the ability to 'print' only a specific Vocabulary. In other words, I would like something like that: <Title> <Vocabulary [1]> <Body> <Vocabulary [2]> I think it should be fairly easy, but I'm struggling.... Ideally, I would love to pass arguments to: print the "label" ...

Drupal6: Every node view of a certain type leads to 404 error

For some reason, trying to view any node of a certain content type leads to a 404 error. When viewed in a View table, they display just fine. What could be happening? Viewing the database with phpMyAdmin shows the data just fine. The problematic node type was created with CCK. ...

drupal > views > exposed filter > submit on change

I've got a view with a single exposed filter (a select). It's using ajax to re-populate when the user clicks "Apply". I'd like them not to have to click that and just re-populate when the select is changed. I'm assuming I'm going to need some JS more or less like this (though this doesn't quite seem to be working): $('#edit-tid').change...

Preventing form_token from rendering in Drupal "GET" forms

Drupal inserts a form_token as a hidden field when it renders forms. The form_token is then checked on form submission to prevent cross-site request forgery attacks. The form data that is submitted is guaranteed to have come from the original form rendered by Drupal. However, forms using the "GET" method shouldn't need this token. All i...

Please Check For Idiocy: Customizing Taxonomy Term Page in Drupal

I've been trying to have my Drupal 6 module customize the way taxonomy term pages are displayed given certain conditions. This is easy to accomplish via themes, but there doesn't seem to be a straightforward way of accomplishing this via a module. After a good deal of trial, error and Googling, I've come up with the following way of acc...

How can I categorize the content types on the Drupal "Create content" page (/node/add)

How can I categorize/organize the content types on my "Create content" page? I'm running Drupal 6.x with CCK. I have a lot of custom content types, and my "Create content" page has become a bit unwieldy, as it lists them all alphabetically. I'd like to organize them by category, so users would see something like: Create Content Repo...

Intelligent Keyword Searching

Hi, I have a taxonomy vocab assigned to a content type in Drupal 6. I've then exposed (using "is one of") it as a field in views which allows a user to search via keywords. The problem is when it runs the query it is first referencing the term so instead of using a like statement it looks the term up in the taxonomy table and brings ba...

Drupal 6 passing variables from Forms to Content, how to?

I created a BLOCK (left) with this simple form. Now I want to PROCESS and DISPLAY results on PAGE (center) How can I do it ? inputs: name = James surname = Bond output I want : <div style="color:red">Welcome, James Bond</div> here is a BLOCK which i wrote and works. <?php echo drupal_get_form('myForm'); function myForm($form_st...