drupal-6

Loading latest nodes in Drupal sidebar via Ajax (facebook-like)

I would like to have a facebook-like dynamic latest nodes loader in Drupal sidebar working in JQuery. Each time new node is created, the users would be able to see it in a list (similar to facebook) without refreshing the page. Any advice, tutorial links, etc. will be appreciated. ...

<br > element automatically added by input formatting

hi, when I add a tag in a input text area in drupal back-end, a element is automatically added after the tag . Could you explain me how can I disable this ? thanks ...

Drupal and the latest jQuery

hi, I need to use the latest version of jQuery in my Drupal. jQuery update module is not enough because it doesn't update jquery to its latest version. Is there anyway to use the latest version of jquery in the front-end, and the drupal included version for the back-end ? Should I work on the theme templates files ? Is this going to ...

Search hook for filtering results?

Hi all, I have been going through the docs and source code looking for something without luck. Is there a Drupal 6 hook that gets called after hook_search(), but before the $results gets handed off to the template system? I need to do a fairly custom pruning and reordering of results that get returned. I could just reimplement hook_s...

Drupal and Multi-sites?

I just want some opinions on what's the best way to go about meeting the following requirements. I have One main Drupal Installation It is a typical "listings" site where users can list items One user can have how many ever "listings" that are linked to his account I want to be able to create sub-accounts, that use the same base sit...

How to redirect user to a specific page after they login if they belong to a certain role?

We have certain users in our member list that have a role "vendor" attached to them. All such members are to be redirected to a certain page upon login. How can this be accomplished? ...

Adding fields to shopping cart items

hi, I'm using Ubercart with Drupal and I was wondering if I can add more details in order / shopping cart views In particular I need to add additional fields (beside title, price, etc) to each item in the shopping cart. These fields would be CCK fields from the products content type. Thanks ...

Shopping cart summary on all website pages

hi, I want to add a block with a shopping cart summary in my website. T So I basically need to retrieve the shopping cart informations and display a brief summary of it. See picture: http://dl.dropbox.com/u/72686/cartSummary.png How can I implement this ? Of course, I still have a complete static page with the shopping cart items and...

adding a node to a nodeQueue on creation

How can I automatically add a node to a specific nodeQueue when this is created (I'm using nodeQueue module: http://drupal.org/project/nodequeue). The reason is that I want an sortable (by dragging the nodes) list of the nodes and I want them to be automatically added to it.. thanks ...

ubercart + paypal payments... 2 questions

hi, I'm planning to use paypal payment method together with ubercart, in order to not have to take care about security issues. 1) I need to store the customers addresses in order to know where to ship the products. I was wondering if I can let customer insert the addresses in paypal, and then somehow get them, or I should ask the custo...

Removing item from Activities block

I have an OG content type called "Task", and the OG activities block correctly shows a link to "Create Task". But I want that link to not appear and cannot figure out how to do it. I've tried using the og_links_alter hook which is firing, but not removing the link. I'm thinking that it might be one of two problems. First, I may be using...

Lightbox + Views: can I create a sequence with Next and Prev buttons ?

hi, I've a view in Drupal and each item has a title and an image in its teaser. Now.. I want to add a lightbox with next / prev buttons to display all the images in big resolution. I was wondering if "Next and Prev" functionalities work for the images of each node. So far I've only used a lightbox to display galleries in multiple CCK...

Do I need SSL Layer for my website if I use Paypal Standard Payment ?

If I use the completely free service Paypal Standard Payment together with Drupal Ubercart module, do I need to enable SSL Secure Layer for my website ? I guess I don't need it because the credit cards numbers are inserted in Paypal. ps. Can I embed paypal into mywebsite instead of forwarding my customers ? Thanks ...

2 breadcrumbs for 2 menus in Drupal

hi, I'm using 2 different menus in 2 different blocks. They are enabled / disabled depending on the the pages users arevisiting. Now, I have an issue with the breadcrumbs: they only work with the main menu and not the second one. I need to automatically have the breadcrumbs the other menu as well. thanks ...

Prefill the password field

I want to pre-fill the password field from the Cookie. I am setting the '#value' but its not rendered . Also tried #default_value . Is there any way to do this ? ...

Overriding user edit profile form

Im using theme_user_profile_form($form) and putting in the line unset ($form['timezone']); But it doesnt remove that item from the page I try: theme_preprocess_user_profile_form but it doesnt appear to work. All I want to do is remove some portions of the user profile edit form, such as theme select, timezone etc ...

Locale module and language prefix in url

I had been working on module and well aware of hook_menu for passing url arguments to call back. For instance: $items['webtv/block/%/playlist/edit/%'] = array( ... 'page callback' => 'drupal_get_form', 'page arguments' => array('webtv_playlist_form', 5, 2), ... ); and callback as function webtv_playlist_form($form_sta...

How can I use cck fields on a Location type View?

Hi ! I have a view of type LOCATION. My problem is that when I try to add a cck field the type "content" is not available on the type dropdown. I also tried to add a relationship but the content is not there also. Any ideas ? ...

expanding / collapsing FAQ

I need to add FAQ list to a page, and I would like to expand / collapse the answers when a question in the list is clicked. Could you suggest any Drupal module for doing this ? If I'm not wrong, the FAQ module (http://drupal.org/project/faq) doesn't include this feature (expanding/collapsing). thanks ...

Simple Hook Menu not doing what it is supposed to do

If a user is logged in as admin, it works fine but if user is logged in, it is sending them their profile page. Why?. What files can I check? $items['go/to/school'] = array( 'title' => 'Some page Title', 'page callback' => 'my_function', 'access callback' => 'my_access', 'type' => MENU_CALLBACK ); function my_function() { ech...