drupal

How do I get Drupal's book module to jump to the first chapter when clicking the book?

I have a page listing all of the books, e.g. book 1 [description] book 2 [description] book 3 [description] If you click on book 1, you're taken to a page with the exact same description you just saw, with a table of contents. I would rather the clicking on book 1 took you to the first page. I'm playing around in the book modul...

How to reload the custom javascript file after Drupal makes ajax call?

Hi, How one can reload the custom javascipt file after ajax call is completed. In my case I have a custom javacript file to manipulate the views data and filters. It works perfectly first time. But once the user sets filter and hit Apply i:e after ajax call the javascript loose its importance. Its their but not registering any event. ...

In Drupal, how do you create more events in the events dropdown of the Triggered Rules?

In Drupal, how do you create more events in the events dropdown of the Triggered Rules? I'm not sure if I'm supposed to create a new trigger, a new action, or something else. ...

Drupal - using boostrap to check logged in user outside of Drupal not working

I'm pulling my hair out trying to figure this one out. I can't get the Bootstrap to work properly when outside of the Drupal dir. It works fine if I run this code in the Drupal dir, but up one level doesn't work. My Drupal path is /public_html/drupal/. The script I'm running is in /public_html. $user is not returning the logged in use...

UTF8 characters not printed as such in Drupals HTML.

I am trying to debug a nasty utf-8 problem, and do not know where to start. A page contains the word 'categorieën', wich should be categorieën. Clearly something is wrong with the UTF-8. This happens with all these multibite characters. I have scanned the gazillion topics here on UTF8, but they mostly cover the basics, not this situat...

How to hide Date of birth field in overriden form?

In my hook form alter, this is the date of birth array: [Birthdate] => Array( [#type] => fieldset [#title] => Birthdate [#weight] => 1 [profile_birthdate] => Array( [#type] => date [#title] => Birthdate [#default_value] => [#description] => The content of this field is kept private and will not be shown publicly....

Views user content value using php argument

Just trying to use php argument in drupal views. I need PHP that will check on a users cck content profile field value. True if it is 'on' false if it not 'on' Sorry designer not coder. ...

How to have a customized user profile for certain users?

We need a customized user profile page for users that signed up this month (some marketing promo). What would be the simplest way of doing this? Again its only for users that signed up this month. Please provide detailed instructions if possible. Thank you ...

Convert Windows-1252 csv to UTF-8 using PHP

I'm using fopen to read in a csv and fgetcsv to read the csv lines. The csv is encoded as Windows-1252, how do I convert this to UTF-8 so it doesn't cut lines with none standard characters? So far I've tried the following: setlocale(LC_ALL, 'en_GB.UTF-8'); and drupal_convert_to_utf8($csv_line[3], 'Windows-1251'); // (I'm using Drupa...

Removing "Choose forum field" from forum nodes content type

hi, can I remove the "Choose forum dropdown field" from my forum nodes content types ? I have only 1 forum and there is only 1 choice I would like my users not have to select it as additional step. If there is not any option to remove it I would like to know how I can submit the form with that value. I've tried to hide it: $form['tax...

drupal rss feed not displaying in IE7

Hi there, I'm generating some RSS feeds from my Drupal site. They work fine in Firefox and IE8, but in IE6 and 7 it is displaying the XML. The feed location is at http://www.leanarts.org.uk/general/feed. Can anyone help? ...

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

Who is the acting user for cron updates drupal when creating a triggered rule?

Who is the acting user for cron updates drupal when creating a triggered rule? What I'm referring to is the php variable available to the developer when using the custom php code option in the "add a condition" widget. Is the acting user supposed to be anyone who is logged in at the time the cron runs? Or does this have to be someone who...

Drupal site not behaving - process of elimination

I have two versions of a Drupal site running on my local dev environment. Site X boots perfectly; site Y doesn't - rather than running index.php, install.php is called. So far, I've: Stepped through site Y with a PHP debugger; index.php does not seem to be called at all. Pointed site Y at the database for site X to see whether there w...

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

Drupal's Aggresive or External-mode Caching and the i18n Module

If you're not a native English speaker doing Drupal, then the i18n module is probably the only way. This is why it seems very strange to me that the performance admin page says that i18n might not work with aggressive caching or (in the case of PressFlow) external-mode caching. I find it hard to believe that multilingual drupal sites sc...

In Drupal 7, how do I show a new form that can edit data selected from a different form?

I have a tableselect form that lists several items. When a user selects one or more items, and clicks the edit button, I want a new form to show up that lets them edit the items. I have the new form structure being generated, but I can't get it to show up after the edit button is clicked. Currently, nothing seems to happen. I know that...

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

Is a drupal View useful for this use case

I have a list of nodes that I want to present to the user. The user then picks 3 and I need to remember that decision so I can present them in a smaller list later (your choices list). To present the full list of nodes, I will just use views to get all published nodes. The question is how do I store those 3 choices so I can pull them...

What steps should you take to speed up SimpleTest?

I'm writing some testing code on a Drupal 6 project, and I can't believe how slow these tests seem to be running, after working with other languages and frameworks like Ruby on Rails or Django. Drupal.org thinks this question is spam, and won't give me a way to prove I'm human, so I figured SO is the next base place to ask a question li...