drupal-6

Drupal - Search box not working - custom theme template

Hello, I am using a customised version of search-theme-form.tpl When I use the search box, I do get transferred to the search page. But the search does not actually take place. The search box on the search results page does work though. This is my search-them-form.tpl.php file (demo : <input type="text" name="search_theme_form_keys" i...

Drupal wysiwyg question

Hi all i have a question. I have the wysiwyg module installed and i think configured the correct way but there is one problem. After writing my content in the editor the content doesnt show up in my blog posts. Any one having the same problem ?. ...

Drupal - special css file if JS is turned off?

I'm building a Drupal theme up and want to know if there is a Drupalish way to add a css file only if the user has js turned off. This would ideally go in the theme.info file to keep it neat! Something like this would be ideal: conditional-stylesheets[if no javascript][all][] = nojs.css If this isn't possible then I'm going to keep ...

messages stuck permanently in session

I am getting Drupal messages stuck permanently in session, so that after being displayed they are not cleared. The unsetting code in function drupal_get_messages in bootstrap.inc is firing - It's as if the session is sleeping (i.e. serializing to disk) before the messages array is cleared. Have you witnessed such a thing? ...

How to embed a node on homepage in Drupal 6?

How can I embed a node on the front page in Drupal 6. The node basically has the image upload field along with title and description. I want it to some how appear on the homepage alongwith a "views" which shows the uploaded images at the bottom. What I want is to give the users an ability to create content which is right now available a...

Drupal 6 - Including a module form in a view

I'm making use of the Favorites module, in order to allow my users to favorite nodes they like. Currently, I know that there is a block available for listing out the favorites, along with the 'Add to favorites' button at the top of this list. What I'd like to do is generate the form which includes the button, and include it within ea...

Editing content-types in Drupal at development mode takes for ever

While the site is in development mode, it takes for ever to edit content types and do various similar administrative tasks. Is there a way to speed this up? What kind of hardware would I need? Any specific MySQL optimization maybe? ...

Why would a Drupal form not be cached in cache_form?

My form, lets call it organize_issue, is a form in a custom module being called from the menu using the page callback drupal_get_form function. The form works perfectly well. I'm trying to implement some AHAH type functionality now, and need to get the page from cache using form_get_cache($form_build_id, $form_state) but, oddly enough, ...

Drupal 6 CCK - Having a textbox appear when 'Other' is selected

I have a special content-type that I have created, and one of the fields is a radio button list. The last element is named 'Other' and I would like to have a textbox appear and allow the user to enter in a non-defined value. Is this sort of capability provided by any sort of module, or is this something that needs to be coded by hand? ...

Drupal: How to differentiate between new user registration and user password update in hook_user validate operation?

I am using hook_user validate operation to validate user registration info against my business logic. I want separate logics to run on registration and change password. But I am unable to differentiate between the two - both pass through validation and same code is run for both. How can I differentiate between the two inside the valid...

Drupal: how to add menu link to password change?

Hi. Do You have any idea how to easily add a menu link "Change Your password" that would lead to Edit Profile page? I can programmatically add it, but I hoped that in the Admin Panel I could add a link, like [drupal]/user/edit that would redirect me to [drupal]/user/[id]/edit. The best solution that comes to my mind is to create a s...

Fundamental understanding of how Views and Pathauto work together

Hello all! I am having fundamental problems understanding when to use a pathauto rule, and when to use a views page path. I have several custom content types, and I am using blocks to display certain parts of nodes on certain paths. Then I use a views page to display the main node on a path. When I do this, I can't use pathauto, as it ...

conflict between views and pathauto

if i create a path alias to a node, say 'press' and i have a view page display on path 'press/archives', why does 'press/archive' leads my users to 'press'? see related http://stackoverflow.com/questions/2913736/fundamental-understanding-of-how-views-and-pathauto-work-together ...

Drupal 6: moving localhost to server | clear cached data

Hi friends, I worked on localhost to build my drupal site. then, I moved to server. Steps: Clear cache tables (Site Configuration > Performance > Clear Cached Data button) on localhost Export db and then import on live server Move files/folders to live server Edit settings.php to reflect live server config everything is working gr...

Drupal view filter to show only one of a certain item

I'm fairly new to Drupal, and am using Node Import to take a TSV file and turn it into nodes. I'm hitting a problem, though, with automating updates to the nodes. Again, I'd like to take a Tab Separated Values text file, and load it into my site via Node Import (or whatever else anyone might suggest) and then only show updated Nodes. ...

How to attach a site with its thumbnail to a Drupal node?

Do you have any Drupal module (or other solution) to implement a feature similiar to Facebook's Share a Link? To be precise: you paste a link site's preview is generated title short excerpt and a thumbnail of one of the site's images ...

How do I make the Drupal-Core Forum display only to members, and ask for login details otherwise

I'm trying to create a website, that has a menu based on Primary Links on the top of the site. The one menu item is for a 'Members Forum'. I want this menu item visible to all users (Anonymous/Authorized), but if an Anonymous user clicks on the item, instead of displaying "Access Denied", I'd prefer to show a custom message "such as pl...

Drupal 6: Blank pages at Ads Module Settings.

Hi friends, I uploaded and activated Ads Module with no error. I can see Ads-List pages. List | Remote ads | Reports | Settings | Ad groups | Channels but all other pages are blank :( as below What can be the problem? Appreciate helps!!! Thanks a lot! ...

Drupal cck and views

I have added a new content type event. Now, i have to make a view in which it shows a set of fields if the dateOfEvent (one of the fields) is less than the present date and some other set of fields of the 'event' content if the dateOfEvent is more than the present date. how can I do that in the views.. thanks in advance for helping... ...

A question about Drupal Node and Views

I have created an "Add Question" content-type node which lets users ask questions. The questions have a title, image attachment option, and the content. I am showing the questions which have image as a block by filtering it as "Content: Photofield - list True" in Views. This way, only the questions which have images attached to the ques...