drupal

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 ! ...

How to send email using rules with pdf attachment

Hi, I am using drupal6 and i installed the rules module configured it. I need to send email to user with an attachment.. Thanks ...

How to use wildcards in drupal

I have a website where drupal manage the contents, but another application handle the e-commerce (my customer doesnt like to change his own e-commerce) I dont like to have the e-commerce to looks differently from the rest of the websites, so i've made a drupal Page node with php code in the body, that simply include the external app and...

Notifying users with email wen an event is created on the website

I have created a Drupal CCK content Event. Wen someone creates an event. I want an email to be sent to the users with one specific role. Also, this should happen if the creator of the event gives his consent to the website for this. How is this possible in Drupal website. ...

Drupal 6: how to display cck node fields' values at search result page

Hi friends, I need to display some specific cck fields such as Telephone Number, Address, etc. at search result page. As I see the search-result.tpl.php, there is no $node->... So how can I get the node fields into search result page? Thanks a lot! Appreciate! [SORTED] wow, that simple :) search-result.tpl.php <?php if ($result['...

Drupal - display blocks according to node's taxonomy term ID

Hi, I'm just trying to restrict block visibility to nodes that have a certain taxonomy ID. I'm using this snippet...: <?php $term_id_to_trigger_show_block = 109; if ((arg(0) == 'node') && is_numeric(arg(1))) { $terms = taxonomy_node_get_terms(arg(1)); foreach($terms as $term) { if ($term->tid == $term_id_to_trigger_s...

Collecting votes across multiple sites

I am looking for a solution that allows people to submit their vote to the main site via a voting system or banner. At the moment, I am aware of one solution that works with drigg and drupal, but it requires url redirect or mod_rewite that is not currently available on the clients server. Is anyone aware of a solution that would allow...

Drupal Webform module: e-mail only

I am using Drupal Webform 6.x-2.9 - is there a way (some code snippet or module) to make the form e-mail only and NOT store the submissions in the database? I googled for a solution and there was an idea to automatically clear the results from the database upon submission, but I'm not sure how to write such code. I'd prefer not to hack t...

Problem saving imagefield using hooks in Drupal 6

Here's my custom module; it basically fetches a file from a particular URL, saves it on temporary folder and then i want it to modify a cck field of type 'file' (field name being : field_video_thumb) : function mymodule_nodeapi(&$node, $op) { switch ($op) { case "update": $node->field_video_thumb[0] = f...

Drupal Ubercart: multi-currency ?

hi, what's the safest way to integrate multi-currency support to Ubercart ? I found this module: http://drupal.org/project/multicurrency but it is still under development and it says it requires custom installation procedure to be installed. Is this the main way to do it ? Or am I missing something ? thanks ...

Which version of drupal should I study, 6 or 7?

I have been planning to try to build a shopping store with Drupal 7 just for fun and have been studying it for a few days now. But with its current status(alpha5), I doubt if my time and effort would be worthwhile. If I use 6, I am afraid I can't apply my experience with it to 7 because, you know, the latter is way way better and differe...

CNN Style 'Alert' in Drupal?

I'm sure most of you have seen the CNN type alerts, the ones that flash at the top of the screen when the administrators want to. Is this already done in Drupal? I am thinking you would need some kind of jQuery for the animation, simple enough, but what mechanism would you need to allow the user to X the alert away, and not show it agai...

Drupal 6: print images in body field content to node template file

In my node-page.tpl.php I print: <?php print $node->content['body']['#value']; ?> However, it doesn't display all body content, it does display all text entered, I use TinyMCE WYSIWYG editor to insert inline images. Visually, editing the node, the images appear in the editor, so I wrote text before and after the image disabling the ri...

Filtering out node by title

Hi - I have a site running in Drupal 6 and I'm using Views to display content from several feeds I am importing. There is a node being created in one of the feeds that I do not want to have shown (or even created at all, if I can help it) & there doesn't appear to be a way to negatively filter out nodes from being displayed by title. ...

Ldap Integration module

HI, I have given the server name, base dn, and the other reguired fields in /admin/settings/ldap/ldapauth/add and in advance configuration i have tested and it shows ldap authentication sucessfull. After this when i logout and enter the ldap username and password i am not able to login to the admin section. I am not knowing whether i am...

Drupal - change destination for anonymous users using custom_url_rewrite_inbound?

Hi, Is it possible to have anonymous users (or more specifically, users without a 'member' role) be redirected from a specific menu item to an alternative node of my choosing, maybe using custom_url_rewrite_inbound? This would then enable me to have two versions of certain pages for members and non-members (it's a site specific thing!)...

drupal administration access

How to give an admin access to the users who have logged in using ldap username and password after authentication. And should we store this $_POST values in drupal database. ...

How to get User Details using facebook connect in drupal?

I hv login to the druapl site by using facebook connect but the username is 11111111@facebook i want to fetch the information of facebook user to drupal site? ...

Drupal 6: Theme Developer gives too common candidate name, nothing specific.

Hi friends, I'm working on a restaurant directory site. I have restaurant details page that I need to implement gmap, slideshow, etc. So I need a specific page.tpl and Theme Developer gives the info as below but site's about us, contact us, faq, etc pages has same candidate name as page-node.tpl.php . So I can't use that :/ Why isn...

Which CCK field properties are shared when using field in different node-types?

Which CCK field properties are shared when using a CCK field-type between node-types? I Ask this question because I wanted to re-use a created field 'date' with another node type. When I altered the date notation to input only the year, suddenly I noticed that only the year was showing with the first node-type I set the Date-field to als...