How do I allow custom Yahoo or Google search box as part of "your search returned no results" page?

Hi folks,

We have recently launched a medical sharing website at http://www.dnobo.com that is built on the drupal 4.7 system.

I would like to be able to send people to other sites if they search for something on our site (using the drupal search module) and nothing comes up. Basically I'd love to say: "Your search returned no results." Search here (here being a custom google or yahoo search box) to look for content elsewhere.

"This post has "n" comments."

Is it possible to display the total number of comments for a blog post?

Embedding drupal forms into pages

Hi there,

I googled for 4 solid hours but did not find a solution. I want to embed a form in a drupal page node with the input format 'php code'. The form renders correctly but I am not able to provide a submit function nor am I able to get the form data in any other way.

$comment_count doesn’t Work!

Please help.

I can’t get comment counts to display. Only “ Comments” is returned withoout any number. Here is my node-blog.tpl.php

Edit locks.

Hello all,

I noticed that drupal (at least our installation) allows to logged in persons to edit the same node at the same time. This is a bit unfortunate, as it can lead to edit conflicts.

Is there something we can do so that the second person trying to edit a page gets a message that user "X" is allready editing that page?

Thanks in advance,

Krist

Module to replace comment module in 4.7x

I am creating a module for a company I work for for drupal 4.7x. I am trying to create a module I call the reviews module that mimics the capabilities of the built-in comment module, except I want to add the ability to provide a 5 star rating system. I have it working now so that when creating a new node it displays a review settings section, just like the comment settings collapsible fieldset, for setting disabled, read/write and read only. Once new content is created with the read/write permission of my reviews module, when navigating to that node I have successfully gotten my "post a review" link to show up right next to the add new comment link provided by the comment module. When I click my "post a review" link, my module successfully takes the user to a page to create their review and post it. Posting the review saves it in the database correctly. This is where the problems start. Similar to the comments module, I want my reviews module to display the user submitted reviews in a fashion similar to the built-in comment module except I don't need threading or anything like that. I noticed that in the node module it specifically calls comment_render to display all the comments. I would rather not have to edit any core module so that I can maintain portability of my new module.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x