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

E-Commerce problem

Hello to whoever's reading this. ;-)

Taxonomy on the Fly

I have been looking for a way to create new taxonomies within the node creation process. I notice there used to exist a module taxonomy_otf but that died out before Drupal 4,7...

Single Select Free Tagging describes the kind of thing I am looking for but there doesn't seem to be anything like this?

I was thinking about how this could be implemented and playing around with jQuery, and thought this would be a good solution.

Redirect After Registration

I'm using LoginToBogan module and I've immediate login turned ON. After registration, I'm taking them to an intermediate page, where I display some static content telling them they are automatically logged in. On this page, I would like to display a link linking to the page where they originally clicked Register link.

I made the register link like this -- user/register?goto=node/xxx

Interests, Location and other Profile fields as links

I'm trying to put together a networking website with whatever limited knowledge I have. People will be able to create accounts and then their profiles with various user fields. I used the preinstalled fields in the "Profiles" module - for example: University (dropdown list), Interests (for which I chose freeform list, even tough it would be great to have some kind of a multiple single-lined textfields with autocomplete feature), Location: Country (dropdown list selection), Location:Town (single-line textfield with auto-complete), and I have some other fields as well.

Now the important thing that I'm after is that when anybody (even guests) clicks on these fields they should automatically access a page which lists all the users with that Value. For instance, if for Admin the "Location: Town" is set for "London", clicking on "London" should take me to a list of all users who are in also in London. This feature is particularly crucial for me in terms of Interests, because it is around interests that the future Goups will be formed.

Comment subject AND post title in single select?

Hello,
I'm working with a modified version of tracker and I would like to be able to select out both the title of the post and the subject of the most recent comment on the post. The EASY thing to do would be to modify node_comment_statistics to include the cid of the last post (why isn't this in there already?!?), however I'm trying to do this without having to modify any tables. Here's the SQL I'm using right now. The problem is, the only way to limit the comments returned is by using MAX(c.cid), and unfortunately, while that returns the right cid, it doesn't return the right row for anything else in the comments table. In other words, c.cid may be 100 if 100 is the last comment in the thread, but if 1 was the first comment in the thread, the subject for 1 will be returned. And as far as I can tell, there's now way to tie MAX(c.cid) to the rest of the row.

Short of table modifications, anyone have a way to do this in a single SQL statement?

SELECT DISTINCT(n.nid), MAX(c.cid) AS cid, c.subject, n.title, n.type, n.changed, n.uid, u.name, cu.name as cname, l.last_comment_uid,
GREATEST(n.changed, l.last_comment_timestamp)
AS last_updated, l.comment_count
FROM node n, node_comment_statistics l
INNER JOIN users u ON n.uid = u.uid
INNER JOIN node_comment_statistics ON n.nid = l.nid
INNER JOIN users cu ON cu.uid = l.last_comment_uid

Multiple Instances of One Taxonomy in One Node

I've been trying to figure out a way to make multiple instances of the same taxonomy appear as different fields in the same node. If you look at this post you may be able to see better what I am talking about... http://www.aceize.com/node/382 ... Both the 'Development Group' and 'Funding Organizations' fields come from one taxonomy of company names. The content type is created using CCK. The taxonomy fields in the content type are created using content_taxonomy.module. I thought about making a separate taxonomy for the Development and Funding, but in certain instances companies will develop technology and fund development of technology (ie, NASA). That sort of duplication puts a bit of a monkey wrench into my plans because it would create two taxonomies of companies.

It doesn't seem possible to make both these fields come from the same taxonomy given the current taxonomy.module. It looks like there can only be one instance of $vid per node.

Pages

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