drupal-module

drupal input filter example

I'm trying to write an input filter that turns everything that starts with http and ends in .mp3 into an audio element, so: http://google.com/file.mp3 -> <audio src='http://google.com/file.mp3' /> The regexp is no problem for me, just not sure how to construct the module. A simple example that would allow me to add many additional rul...

How do i use Jquery menu in drupal

I have the jquery menu module installed, enabled and set to work on the primary links in the configuration. I put <?php echo $primary_links; ?> into my page.tpl.php file but it does not show the jquery menu functionality. I have also tried putting the primary links into a region using the blocks but that does not work either.. i have...

Override Privatemsg Module Message View Layout

The Privatemsg module is great, and the default list of messages and message-creation form are fine, but the form for viewing a message (in my opinion) is horribly unattractive and confusing for most site users - to the point of being unusable. Is there any way of using Panels or Display Suite to design an override, or is the only way to...

dragging the content instead of the image in "drag to share"

I have enabled the drag to share module and it is successfully working the way it is designed to be. But, instead of image, I plan to drag the content and share it. Is their any way to do that? I have one way: Drag to share uses the html tags (like img) to get the input of the object to be drag(ed). Can we use put tags by default in all...

Drupal 6: how to assign more than 1 imagecache to 1 cck field

Hi friends, I create few imagecache for featured slide img standard listing img details page thumb and original img I need to assign all these imagecaches to 1 image that member upload. so It will create all these images from 1 image upload, and I will use them wherever I need. At cck editing part, I can assign only 1 imagecache :/...

including javascript function in .module file in drupal

on click of button i want hi message to be displayed using javascript in drupal.I have made a .js file and know that to incude that i must use drupal_add_js(drupal_get_path('module', 'document') .'/click.js'); but the problem is to create button i used $form['click'] = array( '#type' => 'button', '#attributes' => array('onclick' =>dr...

Drupal 6: View module generates div mess :/

Hi friends, I created some blocks with View Module. View Module really makes things easy! but it puts so many divs, class-names, etc... to output. and it mess up for some cases. example below: How can I get a CLEAN output from view? without any div, span... Appreciate helps! thanks a lot! ...

Changing order of fields in Drupal's content type

I am using Drigg on Drupal 6.17. Drigg has a content type called as "Scoop". I try to change the labels and order of fields. Normally, this is done in Content Management > Content Types > Manage Fields . But some fields that are shown in Create Content screen are not shown in Manage Fields screen. The screenshot of Manage Fields is her...

GoogleGroups-like Drupal Forum

I am looking for a tighter integration between forums and email. i wanted to setup my drupal instalation to: send an email to users when a new answer is posted to the topic create a new node when users answer by email (optionally, to a mailgroup) what are the best modules to do this? how would i accomplish this? ...

Drupal add multiple text fields to a webform component

Using drupal webforms, is it possible to add multiple fields within a single webform component? I'd like the end-user to be able to an an address component instead of adding each address line individually for each webform. ...

Using Email Addresses (Not User Name) When Adding New Organic Group Members

I do not want Organic Group Administrators to have access to user names, only email addresses. But the Add New Members form only accepts user names. I've tried unsuccessfully to use two modules which allow invitees to enter OG keys/codes, but could not get them to work properly. Any suggestions for allowing me to use email addresses woul...

Auto Assign a Taxonomy Based on a ZipCode in Drupal

Hi ! I need to automatically assing a taxonomy term to a node based on its zipcode (field). What would be the best solution to accomplish it ? Thanks ! ...

Manually re-creating an install profile

I've been reading about drupal install profiles, and I'm wondering if there's much of a difference between using a packaged install profile vs. installing core + manually installing the modules listed in the install profiles? I'd like to do the latter (manually installing each) to control the versions of each module installed, which I ...

Drupal 6: Advertisement module for particular page with channel.

Hi friends, I use http://drupal.org/project/ad module. I have taxonomy pages for locations and I need to display location specific ads. so I have created a Channel for a location, and set the url (see below) and added my print ad() code to page. then, created some ads for the channel, but it doesnt display any ads under the provided url...

Have trouble creating an hello-world module in drupal 5

Here're the steps I did to create an mudule: create a directory groups under sites/all/modules in the above directory groups, create two files groups.module and groups.info The content of groups.info: ; $Id: groups.info,v 1.3 2006/11/21 20:55:36 dries Exp $ name = groups description = Test Groups Listings. package = "test groups" v...

Load particular stylesheet on Access Denied

When a user gets an Access Denied page, how can you use drupal_add_css to load a particular stylesheet? Is this possible? ...

Administration menu

Hello I'm looking for some beginners resources for drupal. I've been writing my own module as a way of teaching myself the basics of development as I like the idea of having Drupal to go to when Wordpress can't manage. (Although wordpress is fast becoming as accomplished as Drupal, but that's not what the questions about.) I have the m...

How to insert GMap macro to a page in Drupal with Gmap module?

I created a GMap macro but I do not know how to insert it on the page. When I try to put it in the body field of a page, it does not work. Any ideas? ...

Drupal: Create Content Link Missing in Admin Menu

Hi ! The Create content link in my admin menu is missing. Any ideas ? Update: I am using Drupal 6.17 and the admin account. Previously I was using the 6.x-1.5 version of the admin menu. I updated to the 6.x-3.0-alpha4 to see if the problem was solved but nothing changed. ...

How do I set up my first view with Draggable Views module?

I'm learning how to use Draggable Views for Drupal 6 for the first time, following this tutorial: http://thedesignspace.net/MT2archives/000666.html . I'm encountering a problem though: in part 4, once I set up the draggable table ( http://thedesignspace.net/MT2archives/000708.html ) the entire preview disappears, showing no table. Switch...