This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Search Forms: no keywords

Hi people,

With Flexinode the search form includes a number of fields to assist in narrowing down your search, i.e. you can multi-select categories that the results could be associated with.

My question is, is it possible to have a search form, with only these fields alone available - without the need for a keyword search?

I've tried a few quick hacks, with commenting out the error checking statements in search.module,

in the function, search_form_submit, removed: if ($keys == '')...
in the function, do_search, removed: if ($query[2] == '') and if ($query === NULL || $query[0] == '' || $query[2] == '').

This doesn't yield any results though... The drupal log shows there is a mysql error too:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND i.type = 'node' GROUP BY i.type, i.sid HAVING COUNT(*) >= 0' at line 1 query: CREATE TEMPORARY TABLE temp_search_sids SELECT i.type, i.sid, SUM(i.score * t.count) AS relevance, COUNT(*) AS matches FROM search_index i INNER JOIN search_total t ON i.word = t.word INNER JOIN node n ON n.nid = i.sid INNER JOIN term_node tn ON n.nid = tn.nid INNER JOIN users u ON n.uid = u.uid WHERE n.status = 1 AND (tn.tid = 1) AND () AND i.type = 'node' GROUP BY i.type, i.sid HAVING COUNT(*) >= 0 in /home/#####/public_html/####/includes/database.mysql.inc on line 120.

Two user pictures: large version and thumbnail

Hello,

For a website on which I am working I require that there be two sizes for the user picture: a relatively large (200x200) image, and a smaller, 'thumbnail' version. What is the cleanest way to implement this? The image resizing occurs in user.module:user_validate_picture, so unfortunately if I make my own validation hook I no longer have access to the original image. Or do I? Resizing twice is not an option, i.e., please don't suggest that I produce the thumbnail from the larger version -- I need to produce both images from the original.

Any thoughts?

Guestbook Query

Hi All,

I have installed the Guestbook module. I know there is a lot floating about the forums about adding captcha to it, which I would love. Anyway, I have searched and searched for this next item. I want to seperate my guestbook so that I can have two links, one that just displays the guestbook (i.e. dosn't show the submit/sign portion) and another that just displays the sign/submit part.

I expect there is a simple solution, I just can't see it!!!

Thanks in advance,
Nick

URLs, menu callbacks: please help.

I have read the documentation of the menu system on the Drupal API website, but I can't quite figure out how to use it for my module. I think I am missing something basic, and I hope someone out there can help.

What I want to do:
My module ('foo') sets a session variable but does not create any content to output. When a user visits foo/node/1 the foo module should be called. It will set a session variable, and then the content of node/1 will be displayed as normal.

RSVP Module: Set User RSVP?

I built a site that uses the RSVP module. The person I built it for first emails everyone about a meeting and they usually get back to her about whether they will attend the meeting or not. Unfortunately, these people don't login to the wonderful drupal site I made ( ;) ) and RSVP for the meeting. What I want to be able to do is make it so the admin can manually set the RSVP for the members.

Is this possible?

TV programs module

I am greeting
I am searching for the module which helped in order for me to add the TV programme a site.
Whether there is such module if he doesn't have it which is it possible in order to apply?

Thanks too answer
I am greeting

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions