drupal-6

DRUPAL, Views, Exposed Search Filter: how to never filter a particular node ?

hi, I'm using Views on Drupal. I've added the Search exposed filter to search the nodes. I would like to avoid to filter 1 special node (which is sticky, on the top of the list). In other words, the search filter should ignore that node, and it should be always displayed. how can I do that ? thanks ...

Online Sports betting website using Drupal

I wanted to know how suitable is Drupal for making a sports betting website similar to http://www.sportsinteraction.com/ . I am aware that there are modules like Bookmaker in Drupal which could help . However, I am puzzled about how to handle the user accounts can be extended to keep a track of the money in each individual account. Also...

Drupal: update filesystem path in the database

hi, how can I change my Drupal filesystem root in the database ? I moved Drupal to another path. I'm looking for this value to update in the database. thanks ...

Drupal 6 - Create search block using Views.

Anything that's dependent on using the Drupal (core) Search requires text in the Search Field. I believe Views and a custom/advanced search is the solution, is there a tutorial anywhere? I can't find anything! ...

How do I make a view that groups nodes by taxonomy term?

Hello, I'm trying to bend views and drupal to my will. So far I've produced a view to display the titles of my nodes. Each node will be assigned exactly one taxonomy term from the set {X, Y and Z}. So for example, Node A has a title "Car drives into field, thousands don't care". Node A has a taxonomy term "Pointless". I'd like to gro...

Drupal 6: best way to upgrade jQuery?

Hi! I want to upgrade jQuery inside my drupal installation. At the moment I have jQuery 1.2.6 and I would like to upgrade it to jQuery 1.4 I guess some Drupal modules still depends on the old jQuery version. I've tried jquery_update module to upgrade jQuery, but it didn't work. It asked to replace the original Drupal files in the "misc...

Drupal 6: getting random data from database

Hi friends, I spend few hours at google, but cant find :/ is it possible to get a random data from database with Drupal 6? appreciate helps!! thanks! ...

Drupal: module handling browsers with disabled javascript

hi, is there any Drupal module to display an alternative page in case Javascript is disabled ? thanks ...

arg function not using URL alias

I am running Drupal 6, and I'm using PHP for block visibility. <?php $city = arg(0); $page = arg(1); if ($city == 'tampa' && $page != 'art'){ return 'TRUE'; } else{ return FALSE; } ?> I was having trouble with this block of code, so I decided to insert: <?php print arg(0).arg(1); ?> in my page.tpl.php. What I found was that on som...

How to exclude a folder on the site from Drupal so that drupal does not recognise it its own?

I am running a site xyz.org in Drupal. Now I want to install some other modules such as PHPBB forum and Coppermine gallery. When I install these, and try to access the link xyz.org/gallery, it gives me drupal "Page not found" error. What settings I need to change in order to let drupal know that /gallery is not a drupal node? ...

Drupal creating organic groups using drupal_execute.

Hi, I'm trying to create a node programatically and use the Filefield Module to upload a file from a remote url. The node is being created properly but I can't get the remote url upload working. Anyone have any experience with this? ...

Extending a module multiple times in Drupal

I created a nice extension for Drupal based on the webform module. Now, I need to implement different functionality that is also based on the webform module. What is the best way to do this? ...

Display different content for anonymous and logged in users

What I need to accomplish is this: If an anonymous user visits the site, show regular site content. If a user logs in to the site, then user-related content appears in place of the regular content. I would like to accomplish this using the Views module. I have looked at the Premium module, but it seems to be abandoned. I would like ...

Drupal - How to update a CCK NodeReference field programmatically?

I'm trying to create a node (B type) & assign it to a A type node's CCK nodereference field using node_save() method. $node_type_A = node_load($some_nid); $node_type_A->field_type_B_node_ref[]['nid'] = $node_type_B_nid; $node_type_A = node_submit($node_type_A); node_save($node_type_A); As the result, a new B type node will be create...

Context module for block visibility

I have a site built in Drupal 6 that requires a number of blocks that are only visible to certain roles or on specific pages. Normally, I would use the block configuration settings to control page and role visibility. However I recently ran across the context module that effectively splits the site into "sections" or "groups" of related ...

Drupal show / hide fields in view

I would like to show / hide certain fields in my Drupal view accordingly to the user role. Provided I can only have this view to work with, how can I achieve this programmatically or there's some settings that I am not aware of in Drupal. P/S: I am aware of the access settings under basic settings in View but that would restrict acce...

Drupal: can I manually place files in my "files" folder ?

hi, I'm adding some pictures to my Drupal files folder. I was wondering if Drupal remove the files not connected to any node as scheduling routine, from the files folder. In other terms, I was wondering if I can place files into the "files" folder or if these can be deleted by the system thanks ...

Drupal, Views: Search FIlter, how can I ignore some nodes ?

hi, I'm using "Search" exposed filter in Views (DRupal): It works great, however I would like to ignore a specific node, if it is possible, and always display it, regardless the filter options. how can I do that ? Is possible to specify the Search filter for only a specific content type ? thanks ...

How can give validation on custom registration form in drupal?

Hey Friends, I have created custom registration form in drupal 6. i have used changed the behavior of the drupal registration page by adding this code in themes. template file function earthen_theme($existing, $type, $theme, $path) { return array( // tell Drupal what template to use for the user register form 'user_register' =...

Getting altered form values in drupal

I created one module in drupal name as newmodule.I use form alter to alter user registration form for adding one field location.When i submit the form, how i can get the value of the new field which i created . ...