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

Image.Module (Drupal 4.6RC1)

I know Drupal 4.6 is unreleased as is the latest CVS version of Image.Module, but I was wondering if someone could shed some light on the following problem.

I have installed the Image.Module and Image.css into a folder called image under my Modules folder. Drupal detects the module fine and allows me to turn it on. When I go to Admin->Settings->Image I get the following errors displayed on screen.

aggregator.module SQL GROUP BY bug in pgsql

warning: pg_query() [function.pg-query]: Query failed: ERROR: column "f.description" must appear in the GROUP BY clause or be used in an aggregate function in /export/mdd0/wwwpub/Prod/site/resources/internal/news/includes/database.pgsql.inc on line 104.

Isaac Vetter
ivetter@math.purdue.edu

failed to open stream

I'm writing my own custom gallery module for a project I'm working on and it was working fine until yesterday. My most recent updates have caused an error that says:

warning: module_load(modules/imgallery.module): failed to open stream: Permission denied in /home/poster00/public_html/drupal/includes/module.inc on line 131.
warning: module_load(): Failed opening 'modules/imgallery.module' for inclusion include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/poster00/public_html/drupal/includes/module.inc on line 131.

upcoming.module syndicates events from Upcoming.org

I've begun a project for syndicating events from Upcoming.org here.

I am interested in requirements from the Drupal user community:

- How would you like syndicated events to appear in your Drupal site?
- summary block
- events node

Currently the scope is for one way syndication, but when the Upcoming.org API is fleshed out, it will be possible
to push events from Drupal to Upcoming.

Comments welcome.

Return help needed, php help

Hi,
This more has to do with a php question.
I edited a function, the profile_view function to be exact, but I want to let two variables get output.
They are:

return array(t('Images') => $images);

return $fields;

Ofcourse this doesn't work, since only the first return gets printed and then the fuction would stop. Combining the two has failed for me so far. Any suggestions?

Using POSTDATA with pager query (how do I do this?)

I'm currently working on a custom search function for a module I'm building. The problem I'm having is that I need to pass the $_POST[edit] information to the command line and I can't figure out how. The reason I need to do this is as follows:

Here is my logic.

Search form takes text field and checkmarks (author, title, contents). When submit is called it goes to the URL "/mymodule/search." When that URL is accessed it grabs the $_POST[edit] array and passes it to a search function which then queries the database and spits out results.... until I want to go to page 2.

Since my search functions are entirely internal when I click on page 2 of the pager I am told that there are no results. This is happening because the search function is being run, but no POSTDATA exists anymore.

So what I need is to figure out a way to get the post data into the URL right away.

here is the search form I have right now:

function mymodule_search_form {
  $form = form_textfield(t('Search String'), 'search_string', NULL, 70, 255);
  $form .= form_checkboxes(t('Search Options'), 'search_options', NULL, array(t('Author'), t('Title'), t('Contents'))). form_submit(t('Submit'));;  
  $output = form($form, 'post', url('mymodule/search/'));

return $output;

Is there a way for me to get the results from the text field and checkboxes into the $output? I'd prefer for the url in the output to be like this: url('mymodule/search/012/search_string'). (FYI, "012" is just a representation of the checkbox array. I can take care of converting it to a text string myself, so don't worry about explaining that one).

Pages

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