drupal-6

Removing the text from drupal custom menu

Hiya, I'm trying to style a custom menu within drupal. I've sucessfully styled to display a background image, but the problem is that the menu item title still displays. So I get a nice image, with blazoned all over it. Is there a template function I could use to format the custom menu and remove the text portion from the hyperlink...

Drupal search - alternative ways of doing it?

3rd Drupal question in a day.. guess what I'm doing! OK, I've got the default Drupal search block, but I really need to find a way of restricting it to just searching one particular content type which is called "recipes" (guess what that one contains!) Does anyone have any ideas on how I can restrict the search and then go about contro...

Confused about user profiles in drupal

Hi all, I'm very confused about the whole user profile thing in drupal, hope someone can help me out here since I haven't found a clear answer anywhere else. For starters, where do you set up custom fields for users, is it under 'admin/user/profile' or under 'admin/content/node-type/profile' (with the content_profile Module installed)?...

Drupal6 Deployment: Developed on XAMPP, when online localhost is still the base path

I developed a Drupal site on XAMPP. I deployed it to an Apache webserver by uploading a zip file and .sql file of the database. However, the links on pages generated by Views 2 are still as they were on XAMPP - http://localhost, etc. (So instead of www.example.com, it's http://localhost). Where do I change this setting? I looked in sett...

Increase PHP Memory limit (Apache, Drupal6)

I'm trying to run a Drupal installation on a shared hosting server. (I'm just subscribing to a provider - I don't own the box.) I need to increase the PHP memory limit for my Apache server. I have tried ini_set('memory_limit', '64M'); in settings.php (a file that is included in every request), but this causes Internal Server Error 50...

Exposed Filter for an Image Cache preset?

Is it somehow possible to expose an Image Cache preset using an exposed Views filter so that the user can have the option of selecting a preset? Exact requirement as under: With Image Cache module in conjunction with Image Cache Actions its possible to specify the background of Images, change their color etc . I wish to create a form ...

Changing the Node Creation Title in Drupal?

Let's say I have a node called "product". When I create such a node, it will always display: "Create product" as the title of the node. How do I change this title WHEN CREATING THE NODE? ...

Drupal administration theme doesn't apply to Blocks pages (admin/build/block)

A site I'm creating for a customer in D6 has various images overlaying parts of the main content area. It looks very pretty and they have to be there for the general effect. The problem is, if you use this theme in the administration pages, the images get in the way of everything. My solution was to create a custom admin theme, based ...

How can I set the user selected value of an exposed location Views filter for the entire Drupal 6 website?

Hi, I am currently working on a website which lists the businesses as per either their location or the category to which it belongs. Check: http://frugalmillionaire.net/ Existing Functionality implemented (Views, CCK and Taxonomy): On clicking the Primary Menu Links the Business Category are passed as an argument to the View. Hence th...

Can't access index.php in Drupal even after .htaccess modification.

I can't access my index.php file within a subdirectory of my Drupal installation. I can access other subdirectories index files and I can also access the subdirectory and see its contents when I remove the index.php file. I've made changes to my .htaccess file a while back which should allow any index.html, index.php, or index.htm file t...

Drupal6: In theme_preprocess_page(&$vars), where do $vars come from? (How to manipulate breadcrumb)

I want to remove the breadcrumb when it's just one entry ("Home"). I'm in my theme's theme_preprocess_page(&$vars) function. $vars['breadcrumb'] is available, but it's just HTML. This is a bit to clumsy to work with. I'd rather get it as an array of items in the breadcrumb list, and do something like this: if (count($breadcrumb) == 1) {...

preg_replace() str_replace() apostrophe nightmare! - Drupal menu image replace

Can anyone help me decode why this doesnt work? $cssid = preg_replace("/'/", "", $cssid); Trying to strip the single quote marks from some html... Thanks! H EDIT This is the full function - it's designed to rebuild the Drupal menu using images, and it applies CSS classes to each item, allowing you to select the image you want. Str...

Drupal - How can I change the default image node settings?

Hiya, I'm using Drupal 6, Image and NodeAsBlock, and I'm trying to link my nodes into pages. That all works, but each time I link an image I get by default: Title Thumbnail image size No hooks to help me style it in css Is there a way I can get around this? I really want to just upload an image, click the "create block" textbox and...

drupal_add_css not working

I need to use drupal_add_css to call stylesheets onto single Drupal 6 pages. I don't want to edit the main theme stylesheet as there will be a set of individual pages which all need completely new styles - the main sheet would be massive if i put it all in there. My solution was to edit the page in PHP editor mode and do this: <?php d...

Drupal 6 / Views2 - Attaching Feed Path only to certain Node Types

I have a feed being built in Drupal 6 using the Views2 platform in the form of /node/%/feed, which correctly generates the feed when /node/% is of a particular node type using arguments. However, Other node types also use their feeds in the format /node/%/feed, but use a different view all together. Some points to consider, which is mak...

Drupal Registration: Avoiding A Password

I'm not new to Drupal module development, but am new to the security system. Our users authenticate via a system-wide NetID, so we don't need or want a password. We do, however, still need a local user account so users can post, change their profile, etc. Because we needed this change fairly quickly, I've modified the /modules/user/user...

Drupal - Breadcrumb and 'In this section'

Hello, I have looked all over the Drupal site to find out how to view the breadcrumbs that the menu breadcrumb module installs, but no one else seems to be having the same problem as me, has any one come across the menu breadcrumb module in Drupal and knows how to use it? Also is there a solution in Drupal again couldn't find an answ...

SSL: Why does Chrome report mixed content? (Drupal 6)

I've just got a site running nicely with the whole site running through SSL, but Google Chrome is throwing a "This page contains some insecure elements" message, which isn't good in terms of end user trust-ability. All other browsers work fine, and give the golden padlock. The site is a Drupal 6 e-commerce site, running on apache2, and ...

Drupal 6 devel module dd() function not writing to drupal_debug.txt file

I am running a local development Drupal site on a Windows machine. I am trying to use the dd($data, $label = NULL) function from the devel module to help debug. Using this function, should write debug info to a drupal_debug.txt file in the /tmp folder on the machine where the Drupal site is hosted. On my Windows machine, although I a...

Drupal 6 parse incoming POST data

I have an Excel file that I need to send data from to my Drupal MySql database. To do that, I am using an HTTP POST from within the VBA of my Excel sheet as follows: Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP") URL = "http://localhost:8082/acquia-drupal/node/2" objHTTP.Open "POST", URL, False objHTTP.setRe...