drupal-6

Drupal Theming Taxonomy Vocab similar to a Node Type

Is it possible to theme a Drupal 6 vocab the same way you would a node type. Having it effect every term within the vocab? I find drupal 6's taxonomy core is lacking when it comes to theming. I want to build custom charts and user statistics based on my taxonomy terms but I can't get anywhere near it without doing some ugly dance with v...

Drupal won't allow me or other users to remove images

Uploading images etc are fine. But when it comes to removing an image the following ajax error comes up: An HTTP error 500 occurred. /filefield/ahah/news/field_images/0 This results in users now not being able to modify images on news articles. Help! ...

Viewing articles that are associated with taxonomy term A (AND) term B in Drupal 6

Summary: I'm currently working on customizing Drupal-6 as a news portal. In summary, I'm trying to view posts that belong to term 5 AND term 1. The drupal documentation mentions that this can be achieved through the below taxonomy URL by separating the term ids with a comma (,): http://drupal-server/taxonomy/term/5,1 (See. Using Vo...

Drupal 6: how to display node with its local tasks tabs in menu item

In my case each user has a gallery. Gallery is a node. I'd like to hide default "Create content" menu and add custom menu link that links to user gallery. function custom_menu() { $items = array(); $items['galleries/editgallery'] = array( 'title' => 'Edit gallery', 'description' => 'edit gallery', 'page callback' => 'custo...

Drupal Organic Groups: Automatically make all members group admins

I'm using Drupal 6 to build a web application which will be centered around small groups (using Organic Groups). All the groups are invite only, and once a user is a member of the group I trust him to have full groups admin rights (e.g. invite other users). Any ideas on how I can set all group members to be group admins by default. Che...

Drupal: how to set active menu item dynamically

For example, I have "node/31". And I want drupal to set menu active item to "galleries/lastgallery" if node/31 is viewed. How to do it? <?php function custom_nodeapi (&$node, $op, $a3 = NULL, $a4 = NULL){ if ($op == 'view' && $node->nid == 31) { ??? } } ?> Updated: I know I can use menu_set_active_item. But in ...

Transparent user registration after external authentication in Drupal

I'm working on a Drupal 6 module to provide OAuth-based user authentication and registration. I'm already using the OAuth module to authenticate as described on http://oauth.net/core/1.0a/#anchor9. The next step is to create the user account using information provided after authentication using an custom API of the Service Provider. Acc...

Drupal 6: Date module and displaying only DATE value, without TIME

Hi friends, I'm a newbie drupal guy, I use http://drupal.org/project/date module for my events date, but this module displays TIME as well as default, and I can't turn that off from configuration pages unless I'm a blind :/ is there any way to display only DATE value? Appreciate helps!! thanks a lot! ...

3 images for drupal

as a small assignment, i am trying to build something like hotornot.com, but instead of 1 image with a rating function, i am trying to place 3 images in line, and underneath each image is a ratings (5 star module), and a voting option.. the goal is sort of choosing between the 3 images, and many users can vote on it.. any ideas? thanks...

Drupal search on content from username

I have a drupal site (d6) where the client would like to be able to search for content from a given user - at the moment a search for "Fred" will turn up any nodes that mention Fred, but none that are by him. There don't seem to be a lot of options on the search config screen, and while I am fairly experienced with writing drupal modu...

moving database schema over to drupal

I'm creating a web application and I just want to know how to think about Drupal's db coming from an MVC background. I have tables to represent people's data such as SSN, First Name, Last Name, Zip Code, Address, Language, Location. Now on the front end I want to create a form to populate this information for a bunch of subjects (people)...

Drupal: Ubecart.. starting to use it

What kind of things do I need to know before to start to use Drupal Ubecart ? I'm already experienced with Drupal. I was wondering if I need to setup secure https connection, or doing additional work for my webshop. Or can I just install ubecart and configure it ? thanks ...

Maintaing the member's hours spent in the organization : Drupal Website

I am running a Drupal powered website of my college. Each student has a certain (fixed) number of hours to complete in any kind of sport. Now, I am maintaining various sports on my website using CCK and Views. Now, if a student plays some sport say A, he will go to the website and check out A's details. Also, after specified period of t...

Drupal: remote development with Eclipse

hi, what's the best solution to develop Drupal remotely on a development server, using Eclipse ? I found this: http://www.eclipse.org/dsdp/tm/ Is this the best way to do it ? And above all, am I going to have some limitations ? thanks ...

Drupal: specify the serch engine description summary from back-end?

Hi, Is there any way to write in the Drupal back-end the text to display in the search engine summaries? Currently, the beginning of my home page (usually menus...) is displayed. I would like to add a description instead. Thanks ...

Combining Page Manager and Mini Panels

I understand how I can use the Ctools Page Manager to override the system edit form for a specific content type. And I understand how I can use the Panels Dashboard to create a Mini Panel which can be embedded into a Panel Page. But I am not clear on how I can create a Mini Panel which includes an edit form (customized ala Page Manager) ...

Drupal Login page

Hello Friends, I am new to drupal.and I get stuck in some of the tasks. Currently i want to edit/create my landing page in drupal which should be different than the themes i am using now. if anyone knows how to integrate new page in drupal please let me know Thanks Shrik ...

Drupal: Fatal error: Cannot redeclare > node_form_submit() (previously > declared in...

Hi, I want to redirect my form after submissions, I'm trying to use a hook, but this is what I get: function node_form_submit(&$form, $form_state) { $form_state['redirect'] = 'contentManager/'; } Fatal error: Cannot redeclare node_form_submit() (previously declared in drupal/modules/node/node.pages.inc:451) in drup...

Drupal Private file sytem to Public

Is it possible to switch from a private filesystem to a public one in Drupal. If so how would you do this? /admin/settings/file-system says Changing the download method will modify all download paths and may cause unexpected problems on an existing site.. ...

Drupal: cannot replace js file

hi, I want to remove a js file from my drupal website and add a custom one. This is the code I'm using in my template.php file, but it doesn't work (the old js file is still loaded). (I've cleared the cache) function zen_preprocess_page(&$vars, $hook) { /*update js file*/ $scripts = drupal_add_js(); unset($scripts['module']['sites/all...