drupal

Defining Array in template.php Drupal

I have a drupal function that contains an array. I want to redefine one of the variables in that array. Do I just copy paste that entire function into template.php and change the variable to what I want it to be? Thanks. ...

Drupal: xmlsitemap file is not generated

I have chosen XMLSiteMap module from the most popular usage statistics on Drupal site, so I assume the module is not too buggy. But the map file is absent. I've installed this module on my Windows machine into drupal/sites/default/modules. I've activated all the submodules of XMLSiteMap in admin menu. Per docs, I've also run cron.php ma...

errors on front page of Drupal6 site

I'm getting multiple error on some random pages (mostly on front page) of site. I'm getting this error only on production server, on local server site is running fine, remote server is IIS 6 and local server is xampp. I have updated drupal core and few modules ( each separately) and run update.php. Update run fine. I'm searching for solu...

Is the Zen theme for Drupal enterprise ready?

I'm starting a build of a Drupal based online store, using Ubercart etc. It is likely my client will turn over a lot of sales on the site, so it must be secure. Of course I will want to create a unique theme for this, so is Zen a good place to start or should I avoid it and start from scratch? Quote: Zen is the ultimate starting th...

How do I validate a nodereference field in a custom node form in Drupal 6?

I have an autocomplete nodereference field (field_hostnamelastref) in a custom pass-node-form.tpl.php. The field references four items (last name, first name, an id #, and status) generated from tokens in an autotitle from another content type. When entering a last name in the nodereference field, if the corresponding status for that l...

How to show user e-mail in Drupal 5.x profile (nodeprofile)?

The email field in user profiles in Drupal is as far as i understand not ment to be shown (for good and obvoius reasons). But I still need to know how to show user e-mail in Drupal 5.x profile (nodeprofile)? ...

Making Drupal 6 reverse node order via code in the front page.

I'm trying to get Drupal 6 to reverse the order in which the nodes appear in the frontpage. I'm pretty much using "Story"s as a blog engine and so far it has done it's job pretty well. I'm a bit annoyed though at the fact that nodes are listed in reverse chronological order. I mean, granted, if you want to display multiple node previews ...

Drupal: how to move node comments under Read More link?

My Drupal is displaying a simple custom view, with a nodelist. The trick is that my view displays comments under nodes in the list. That is too much for one page and I need to get a list of pure nodes and hide comments under ReadMore link. I've tried to play with comments settings for my the custom node type I am displaying, but even if...

How to make two web sites appear as one - What features are important?

I am about to write a tender. The solution might be a PHP based CMS. Later I might want to integrate an ASP.NET framework and make it look like one site. What features would make this relatively easy. Would OpenId and similar make a difference? In the PHP world Joomla is supposed to be more integrative than Druapal. What are the imp...

Drupal Front-page with views

Hello everyone) Is there a way of making front-page containing 2 views, without using panels module in Drupal 6.x? thanks ...

Drupal vote_up_down module reporting incorrect points

I am working on a project using Drupal 6 (6.11 at the moment, haven't yet upgraded to 6.12) and part of the core functionality is the ability to vote on nodes. I'm having some rather weird behaviour that has taken me an age to track down and now I have, I still can't fix it. This is what I've managed to figure out so far: The template...

Drupal site - Memcache Connection errors

We are tying to perf tune our drupal site. We are using Siege to measure performance (as drupal visitor). Env: Nginx + FastCGI+ Memcache Siege runs fine for a few seconds, and then we run into connection errors: Example: HTTP/1.1 200 29.18 secs: 5877 bytes ==> / HTTP/1.1 200 29.39 secs: 5877 bytes ==> / warning: socket: -16562...

Switching themes in Drupal without the web interface

I'm in the process of learning php and creating themes. Unfortunately, while I was editing a theme that i was currently using in drupal, I made a mistake in the theme such that nothing shows up anymore, even if i were to hit drupal/index.php. I want to change my broken drupal theme to a working one but i'm unable to do so because I can'...

Where do i 'setcookie' to record http_referer in Drupal 6?

I've got my php working to set a cookie storing the http_referer the visitor came from, but how(or where) do i put this code in my Drupal theme/installation, to make it set cookie when a visitor first lands on my Drupal site? ...

php cpanel

I have a php account with my provider, and I also have cpanel installed for me. I currently have two drupal sites there, let's called the main myMainSite and another one under construction called myNewSite. So when I go to www.myMainSite.com, I go to the main site. When I go to myNewSite.myMainSite.com, i go to the drupal site that is ...

Drupal Search Module Linking to Comments Directly

On my drupal search results page link directly to the comments of the post, in addition to just the post itself. Looking at the search.module file the relevant code seems to be. $output = ' <dt class="title"><a href="'. check_url($item['link']) .'">'. check_plain($item['title']) .'</a></dt>'; The issue is I can't figure out where on ...

No Search Results

I installed apache solr on drupal 5, now when I perform a search using Admin I get results but I do not get any from Drupal. ...

Where is a good guide for Drupal themeing?

I'm new to Drupal, and frankly after reading through the Drupal documentation, their guide to themeing isn't all that helpful. Maybe I'm just misunderstanding, but it seems like there are certain variables you always have access to and different functions you can define to override or implement behavior. Long story short, I'd like to b...

Framework or CMS?

I am learning web development and I'm very serious about trying to find a career in it. That being said, I have consistently been told that "doing" is the best way to learn and now I have a vision for a site that I would like to create. I have spent some time with learning frameworks to find a preference, such as Rails, Django, and .NE...

Drupal: customizing the look of WorkFlow module

Workflow module adds a workflow box to Edit node screen. This box contains a list of available States for this node and also such extra-options as: " Schedule: Immediately Schedule for state change at: " I don't want to confuse users with abundance of options and want to remove the last two (date related). Where should I customi...