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

call to node_add from module?

I'm trying to find a way to add an image node within the creation of another type of node. I think the following code will (sort of) work, but I don't think it's the right approach. (Unfortunately, I also need the nid returned, so this won't really work.)

	$output = '';
	$type = 'image';
	if (in_array($type, node_list()) && node_access('create', $type))
	{
		$output .= node_add($type);
		print theme('page', $output);
	}

Is there a better way to do this?

Thanks,
Aaron

Mozdex.com search module

Howdy!

I'm looking for anyone interested in building a mozdex.com search module that incorporates the OpenSearch RSS feed to allow search blocks and results within drupal.

If anyone is interested in what should be a straightforward module, we will feature you on our home page for a month.

http://www.mozdex.com

You can follow our developer link to get instructions on the feed as well as lookup OpenSearch to find out more on OpenSearch 1.0 spec/rss feeds.

Creating a Prototype for a Property Listing Manager module

I am writing a module that will create a node that includes a mini-gallery of images. Its primary intended use will be for displaying "Featured Properties" for real estate sites. If there's interest, once I've gotten it working, I'll post it here for other developers.

I originally had planned to use a flexinode, but it just wasn't doing what I wanted. Most of the functionality (as it stands now) comes from the Image module, although I have some questions (later in the post) about how to integrate with that module.

An authorized user ("agent") will be able to create nodes of this type. They will add the specific details of the property (address, town, type of property -- duplex, two-story, etc. -- features -- garage, basement, etc.). After these are entered, they will be able to upload one or more images associated with the property.

Ideally, I would like to have an "upload" button on the form (which flexinode gives). However, after one image has been uploaded, I would like to allow an indeterminate number of images to be added as well. I could set an arbitrary limit, such as 4 or 8, and set up the appropriate fields, but that seems like a kludge.

In addition, I want to be able to have more control about how to display the node. For instance, to show one image at its "preview" size, with the others at "thumbnail" size.

I've been studying the Image module for inspiration, and have set up a database table that will hold an unlimited number of associated image nodes with a property. One of these can also be designated as the "primary image" (the first being the default).

URL Aliases... with file extensions

Has anyone successfully created URL aliases with file extensions? i.e. http://www.foo.com/bar.html is an alias to http://www.foo.com/node/1.
I know I can do with this with mod_rewrite in Apache (I'm assuming Drupal's aliases are leveraging this) but I'd rather not throw together some kludgey hack.

shoutbox without iframe

is there any shoutbox module that do not depend on iframe?
that can really integrated into drupal in the blocks?

tnx&rgds,
rex

job listing hack/addition

Hi all,

I've been fiddling with and poking at the e-commerce, subscriptions and job search functions hoping that there would be a way to do this but to no avail (I think).

What I'm hoping to implement is a way for people to post jobs for a fee (per listing).

Does anyone know if there would be a way of making these modules work together to achieve this end or am I looking at a custom job?

Cheers

- aloicious

Pages

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