drupal-6

What is the proper location to place jQuery and or jQuery plugin in a Drupal installation?

I just want it to be at a standard place. Thank You ...

Why is WYSIWYG editor removing PHP code?

I use input format as "PHP Code"...enter PHP code and it looks fine. Next time I go edit it, it removes it all. This is very frustrating. ...

How to customize User points section in user profiles

hi, I'm using User Points module which adds an User Points tab to the users profiles. I want to remove the link "View" from the user Points tab in User profiles, and leave only the score number. I'm looking for the template using theme developer module: http://dl.dropbox.com/u/72686/userpoints.png However, the template user-profile-...

Search module: re-indexing

hi, I've noticed the search engine is drupal sometimes requires to be re-indexed in order to update its index with latest posts. I was wondering how often the re-indexing is performed, and if it is automatically performed by default. Is it triggered by cron process ? Thanks ...

Restrict content types to certain taxonomy terms

I have a taxonomy set up similar to: Parent Term 1 Child 1.1 Child 1.2 Parent Term 2 Child 2.1 Child 2.2 How can I restrict a certain content type to a certain term? For example, I want to force "News Item" to only be in "Parent Term 2", so that on the content creation page only that taxonomy term would appear in the taxonomy...

How to remove Anonymous user from the users view

hi, I've a View displaying users of my website. how can i remove the user Anonymous from my View ? i.e. 35 author 16 voter 0 Anonymous 0 user34 I've tried with a filter "User:Name != Anonymous" but it doesn't work. This is how the added filter looks like: "User: Name not in Unknown" thanks ...

Views relationship with multiple files

I have a content types with 3 file fields, all of them can have an unlimited number of images. I need to make a view that returns the title of the content and the images name inside an array (I'm using amfphp with services). The problem is that when I add the relationship to the content field_pics fid I get as many duplicate nodes as th...

get values from form API checkboxes

This is a module that I'm working on to create a custom filtered search. But i have no idea on getting the values of form type checkboxes... I searched but nothing yet! <?php function my_module_menu() { $items = array(); $items['my_module/form'] = array( 'title' => t('My form'), 'page callback' => 'my_module_form', 'acc...

Change the product image when visitor makes an attribute selection in Ubercart

Current Setup Each product on the store has multiple images. When the visitor visits a product page they see a main image and a series of thumbnails (view). When they click on a thumbnail that image is instantly displayed in the main image area. Each product also has an attribute selection dropdown for example "Colour". Drupal / Uber...

Changing base domain / allowing multi base domains

I have a new client that I am converting over to Drupal from Wordpress. We have two domains with the same name but different TLDs i.e. .com & .org. We have decided to start by setting up the site first under the .com so we have a live site to play with during the development. So we currently have a wordpress site running on the .org an...

Changing node ids from mysql.. is it possible ?

Can I change node ids (nid) in mysql tables in order to update the IDs of the nodes in Drupal ? In other terms, if I change the nid (paying attention to keep they unique for each node) in the 'node' table, directly from phpmyadmin, am I going to introduce bugs ? thanks ...

Listing first name, last name at Users listing page

I have installed and configured User Profile module, which allows me to add fields like First Name, Last Name for users. As of now, when I go to users list at /admin/user/user I see username column. How can I can add these extra fields in the column? ...

Protecting the login page

I'm trying to add extra security to my drupal site. I removed the login block, but it can also be accessed through http://mydrupalsite.com/user It's still needed to allow the admin account in, but is there a way to protect this single page with htaccess or something more robust than what drupal allows out of the box? ...

Forward user back to the previous page after login

Can I send my user back to the previous page when he logins in Drupal ? He can login from different pages in my website. There is not only one login node. I would like to send him back to the page where he was. Thanks ...

I've added a comment in mysql tables, but still not added to my Drupal forum

hi, I'm using a forum with several topics and node comments module to add comment nodes to the topics. I'm importing an external database and adding the relationships directly in mysql to the node_comments table. However before to see the comments of a quesition I need to add a random comment in drupal to this question. Which is proba...

Why is ColorBox not loading properly?

The error I get is: $ is undefined Line 8 which is: $.colorbox({html:'<p>TEST TEST</p>'}); This is how the page renders: <script type="text/javascript" src="/sites/all/modules/jquery_update/replace/jquery.min.js?Y"></script> <script type="text/javascript" src="/misc/drupal.js?Y"></script> <script type="text/javascript" src="/sites...

Views page and AJAX

Hi, I created a page view where it lists all nodes grouped by content types. My problem is how to create a page which will only output the view, I mean without the headers, sidebars etc.. just the view content? My reason for doing this is I would later call the view / view page in an AJAX request and display to the user. My view name i...

how to add customfield in filter

i have created one custom field on view i want add filter on it how can i add it to filter here is problem of adding filter on custom field of view Thanks in advace ...

Need help to make and query cost matrix table?

I had built a website for my client with Drupal 6 . Now he wants to query cost of his service from one town to another town. I know basics of CCK and Views. I will need two select box for towns and show cost of between two towns and a way to let customer enter cost between towns. What is the easiest way of doing it in Drupal ? I am a ja...

Should I use Module Uninstall menu?

After months using Drupal for my websites I noticed module uninstall tab in the modules list. I've always uninstalled my modules by deleting their folders from filesystem (after disabling them). I was wondering if this is the wrong way to remove them. Thanks ...