drupal-6

Translate a Field's Label in a Drupal Content Type

I'm trying out i18n with my Drupal 6 content types and the field values get translated ok, but not the field labels. Is there a way to translate this? ...

How to manage a drupal website in git

Hello all, I'm a bit lost, one of my developer co-worker is doing a drupal website, that is doing special pages, custom logos, custom hierarchy etc. His work is scattered in database tables (it looks like CCK create tables), database rows (texts, image links etc.), static files (pictures, PDFs ...) and maybe some PHP (custom module). M...

Views doesn't show checkbox fields where answer > 1

I am using Drupal with Views and the extended profiles module activated. To enable users to check multiple areas of interest I also added a module called Profile Checkboxes. It adds the ability to use a free-form list but turns it into either check boxes or radio buttons. This module works very cleanly and did not present errors. But if...

Formatting views template output

I am using this code in a views template to print user name in a field. The output is fine except it doesn't shows as a link, as its supposed to. <?php print $row->users_name; ?> How can i modify the code to show the output as a link? btw this was the comment in the template file which i cant decode. Variables available: $view: T...

drupal_render: how to make well-formed div structure of the form?

I noticed, forms "story_node_form" or "node_form" are formed like this: form->div->div->div-standard+div-admin+submin-button My custom content type is not formed this way: I have 49 checkboxes. I placed them with drupal_render() into table like here: http://eugen.gotdns.com/test/zeitplaner.png After that i've done drupal_render($form)...

How to get rid of Drupal CSS stylesheets?

I am trying to accomplish the following. I need to use Drupal 6 as a project requirement, but I want to use it with my own HTML and CSS stylesheets for each node/view/panel etc. The problem is, whatever the theme, I always found that Drupal applies to my HTML content both my CSS stylesheets and the CSS related to the theme chosen. I hav...

Re-notify user of account in Drupal

When a user signs up at a Drupal site, there is a configurable message that Drupal will send the user letting them know their username and password. I have about 1,000 users that I imported, but at the time, I didn't want to notify them - but now I do. Is there a way notify the users without reimporting them? I looked through some of t...

Drupal Form API and $form_state['storage'] is destroyed on a page refresh

I have a form that displays two submit buttons. The first submit button sets $form_state['storage'] to a value. The second submit button then reads this $form_state['storage'] value. If the value is set, then a success message is displayed. If the value is not set, then a fail message is displayed. Here is the code that will reproduce m...

Search block does not work in Drupal.

Hey, I just uploaded a test site on the following location : www.betterclassofleaders.co.cc/whackk I am using a customised search block (customised through search-theme-form.tpl.php) but it does not work. If you type in a search term and hit Enter it will go to the search result page but without actually performing the search. Searchin...

Pointers for monitoring drupal 6 site needed, difference in server aw stats and the core "statistics" data

The IP addresses logged in by the Drupal 6 core "Statistics" module are not being displayed by the AW statistics displayed by my hosting server (hostgator). I am not able to comprehend why and which statistics are more reliable ? Also I would request some light to be shed on the best practices to monitor a Drupal 6 website. Thanks for yo...

Best Drupal installation profiles for various needs.

I have been using Drupal for while, and i was wondering a few things about installation profiles. I usually just have a file full of the .tar.gz extension module files and just put then into the file or web server, and unzip. Is it more time efficient to use an installation profile or just unzip module folders? First, Can these be int...

Drupal 7 programming advancements, differences from Drupal 6 upgrade or wait

I was just wondering if there were any changes in the Drupal 7 code that effect server load and speed for large sites. Also, with 7 nearing beta release, should I wait to build the sites with Drupal 7? I'm a future kinda guy. I would like to be able to develop Drupal sites for a freelance business I am owner of, and would like to start ...

Drupal forms with WYSIWYG and AHAH

I'm trying to have an AHAH-enabled form with WYSIWYG fields in Drupal 6. Problem On this custom form, the user can click a button to add new fieldsets and add fieldsets within those fieldsets (so there is a parent-child nesting situation within the form). The addition and removal of fieldsets is handled via AHAH (and the ahah_helper m...

FLIR is cutitng font for nuptiliar script

Hey Folks, I am using flir module of drupal to generate png images from text. I am able to generate images of that font (it's true type font). But images are not creating properly so please if any one has knowledge of it. it will be greatly help. http://iskcon.cignex.com/excerpts text is e.g "this fever will surely kill me i thought"...

Loading users from an SQL query - the correct way

I have an SQL query that lists the uid of all users who have a certain role: SELECT u.uid FROM {users} as u, {users_roles} as ur WHERE u.uid = ur.uid AND ur.rid = 10 ORDER BY u.uid DESC I need to load them all in an array as objects for listing. I asked a question previously that left me only with the answer that what I wanted to d...

Drupal select list only submitting first character

I have a select list I've created in a form alter, however, when I select an option and submit the value, only the first digit gets stored in the database. I know this has something to do with how the array is formatted, but I can't seem to get it to submit properly. function addSR_form_service_request_node_form_alter(&$form, $form_stat...

Hide "Authoring information", "Menu Options" and "Publishing Options" in node creation form

I want to hide these fieldsets in a Drupal 6 site for some content types (not for all of them), because these options are unnecessary and confusing to the end user. How can I do this? Thank you! ...

drupal : how to restrict users to only be able to see one contentType

i have created a contentType called "Price". I wish to set permissions so that users of the role "PriceUsers" can only see content of contentType "Price" I am using drupal 6 ...

How to only show one content type with Content access

I'm using the "Content Access" Module. I have created a user call "PriceUser" which I want to only be able to see the content of the content type "Price". ie "PriceUser" goes to "/admin/content" and can only view price content. so in order for "PriceUsers" to just view contentType "FundPrice" i need to uncheck "administer nodes" i t...

Capture value of Select list when form is submitted - Drupal

I need to use the selected value of a select list when the form is submitted (in submit handler). I am familiar with using the Form API, but can't find the solution on drupal.org. For example, I am loading a select list with 3 options. When the user selects a value and submits. I want to grab that value and use it in an SQL query that I...