drupal-5

How to change the HTML of the drupal 5's views module

I'm using Drupal 5 and have a multitude of views that I want to alter the output of. Using the views wizard, I can create a different template for each instance, but I'm wanting to do the same changes across all my views and having 30 files in the themes directory seams like a hell of a lot of maintenance and code. Does anyone know if ...

Can you call one Drupal views template for multiple views?

I've used the Views Theming Wizard to output a template and it gave me the following chunk of code to go in template.php. I'd prefer to just maintain the one template, so all my functions will be calling the same one, and rather than writing numerous versions of the same function, I'm wondering if there's a way to string function names ...

is there an argument to know you're on a views list page?

I've had to move my page title into my node to accommodate a client need, but I'm unable to now get a title to display on a page view of my views list. The argument I have to display title on edit, admin and track pages is: <?php if ($title && ((arg(2) == 'track') || (arg(2) == 'edit') || (arg(0) == 'admin'))): ?> <h1 class="titl...

How can I create a search block with Taxonomy terms and Keyword search in drupal 5?

I'm trying to create a search block like the one on Top Notch Themes where the users can choose one or more taxonomy terms and then do a keyword search within content that matches those terms. I was trying to figure out how to do this with Views but that didn't work right. It wanted to suggest the terms and then filter the view. So I fo...

Can I use one single exposed filter to filter multiple block views on a different page?

I have four block views on a page (call it "info" page) that are filtered by proximity to give me four pieces of information relating to one particular filtered location. I would like to be able to create an intro page with an exposed proximity filter that when executed would take me to the (info) page and simultaneously filter the four...

Drupal Notifications - Users receiving duplicate emails

We are using Drupal (5.x) Notifications module. Our users are receiving duplicate emails (related to forum posts) First email has this subject line: "Your Daily xyz Discussion Digest" Second email has this subject line: "xyz subscription update for UserABC" Content is somewhat similar. (formatting is different). Tried to google for...

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

Can I load a view into a form?

I'm looking to provide my client with a view with exposed filters and a 'submit' button that would process every record in that view. I've seen comparable modules/things being done on d6, but on d5 I'm pretty stumped. ...

How do I theme an aggregator category in Drupal 5.x?

Yes, I am still on Drupal 5. Don't make fun. I created a category with the Aggregator module, and the URL for the category is www.example.com/aggregator/categories/2. How do I theme this? Is it a node that can be themed with a template, or is there some other process I must use? edit: To clarify, I want to add some text right below th...

Expand Drupal menu by default

For the menu system, is there a way to set one of the menu items to be expanded by default? I can't get my home menu item to be expanded on the homepage (at the least), and I'd like it to be expanded whenever one of the other ones isn't. I'm using Drupal 5, and the Taxonomy Menu module. Taxonomy Menu is pretty good with 95% of my pages,...

How do I add two submit buttons to a Drupal 5 form?

I have two submit buttons on my form. One is the normal submit button that calls `my_form_submit` like-ah-so: $form['fieldset']['submit'] = array( '#type' => 'submit', '#value' => 'Show Applications', ); I want to add another button that will submit the form, but call a different submit handler. Is there any way to do this? I have...

Drupal: How to change "Title" Label when creating a new node?

Hi Guys, How can I change the 'Title' Label in creating a specific event using Drupal 5. I am using the event module . Do I need to hack the core codes of Drupal? My current URL add event node is: http://cec5/bhutan/?q=en/node/add/event Screenshot: Thanks in advance Cheers, Mark ...

Turning threaded, reverse chrono Drupal story comments into Reddit-style comments

I have a Drupal site that currently displays comments in threaded, reverse chronological order. I am trying to change it to work like Reddit/Hacker News, where the threads and comments within each thread are instead ordered by their current score, based on a voting system I've added. I've found the query used to render the comments rig...

how can I best display a list of affiliate links in Drupal?

I have a Drupal 5 website on which I want to display a list (or grid) of affiliate links to different products, sales and offers. Each 'affiliate product' node will have a title, description, an image and a URL. When either the image or URL link is clicked, the user should be redirected to the URL. I've gotten close to this, using a v...

$content variable in node.tpl.php (Drupal 5)

The print $content statement in node.tpl.php is causing my whole layout to break probably due to incorrect nesting of DIVs. I want to check and fix that but I can't figure out what/where is the source of the $content variable in node.tpl.php file. I'd appreciate any help. Thanks. ...

Drupal mimemail problem

My drupal mimemail always adds a x- to our http:// on our images, thus killing them. I cannot figure out why this happens. Any suggestions? ...

Drupal $tabs not including edit / revisions / workflow

I inherited a Drupal5 site and have been tasked with making some changes, but I'm unable to figure out where to start looking. On many pages there is a menu available to administrators that allows you do do certain actions: Overview Specialists Resources and Tools In the Field News Events Courses Multimedia Edit Track Workflow Setting...

Querying Drupal Organic Groups user list by role

I'm trying to develop a quick Drupal Organic Groups script. I'm having trouble navigating the database of my Drupal 5 install What would the basic MySQL look like for querying a list of users in an organic group by the role assigned to them? ie, pull a list of all users in the OG named X with the role Y ...

Un-Published items showing in Drupal search results (google search appliacne)

I inherited a Drupal 5 site recently and have a series of enhancements to make. Several of then revolve around search results. Unpublished pages showing up in search engine results. Some of these are old pages, others are recently unpublished. All are correctly marked as unpublished in the CMS and are still showing up. Outdated pages...

Drupal is allowing viewing of unpublished content

I inherited a Druapl5 site and it's showing content when published is not checked in the Publishing Options section of the Edit Content Form. I confirmed that the status is 0 in the DB for the node. So it should be not visible. My first guess was that I was logged in and that's why I could see it, but I logged out and I could still see...