drupal-6

How to change "site_name" in Drupal 6

Hi. This is probably a really obvious question, but it's driving me nuts. We have a drupal installation and we need to change the site_name and site_slogan variables. It sounds like it should be easy, but I just can't find an option anywhere in the admin panels to do it. The only place I can find is in the initial installation script ...

User agent based output by Drupal CMS/

I need to develop an online service layer that will provide multi-role interactivity to end users on the behalf user agent/device/application (desktop or web widget) or output type (XML) they use. So... How is drupal as choice? Is it possible to develop output templates for each output type required? How to switch theme or output mode...

HTML: how to change my website background at each visit ?

hi, what's the best approach to change the background of my website at each visit ? 1) write php code, loading a random css file containing the background property 2) write php code, generating different html (and including the background property directly into html code 3) something else ? thanks ...

Drupal: Best place to put drupal_goto

I need to redirect certain content types to other nodes. As a proof of concept I've got this working with a drupal_goto at the top of node--[type].tpl.php This works great, but is probably the least optimized place to put it. Would phptemplate_preprocess_node be too early? What about hook_nodeapi, $op='view'? Where's the smartest p...

how drupal turn title of node into a url

for example , i have node with title 'services & containers' , drupal path or path_auto module will turn that title into a url string 'services-and-containers'. I have looked up node, path, path_auto module, and did not found any function turns title into url. could any one tells me which function, drupal used to to that? ...

How can I get the title of a form element in Drupal?

For example, in the registration form, there is "Username" and the text field for it which has the input type="text" name="name" .... I need to know how can I get the title from the input field's name. I'm expecting a function like: $title = get_title_for_element('name'); Result: assert($title == 'Username'); // is true Is there ...

Need a comparison between XWIKI and Drupal from a developer's perspective

Dear fellas, In the past, I've used Drupal-6 to implement a news portal. I was able to complete my news portal fully. But frankly, Drupal has also given me a hard time in its usability and cumbersome development APIs. Points of frustration were: Things weren't as straight forward as I expected. Needed a substantial amount of time ...

Dynamic products price according to ordered amounts

hi, I want to the price of my products to change according to the ordered quantity. Ideally, i would like to see the price of the product dynamically change on the product page, according to the selected quantity. Is there any module doing it in Ubercart ? thanks ...

Ignore "The" when sorting a View in Drupal

Hi ! How can I ignore "The" when the user sorts a view in a Drupal site ? ...

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

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

Two forms on the same page drupal

I have a database of clients. Before entering a new client, I want to make sure that that client is not already in the database. So I want to put a search form at the top of my page to search by client number, and client name. Further down the page, I'll have another form to enter and submit the client's information. Would this be the be...

drupal oauth module

Hi, Need help in using drupal oauth module................ Can someone please guide me............... To be clear... I have installed drupal along with the oauth and services modules...... Now I have to use Oauth with yahoo..... Where user's should be authenticated to my drupal project using his own yahoo username and password............

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

Drupal, where I can find info about current active theme?

Hello Please advice: where drupal stores info about current active themes? Which table? I upgraded Drupal, and when I enter admin area I have white screen of death. IMHO custom theme is causing that issue, could somebody help me? Regards ...