Project:Classified Ads
Version:6.x-2.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:milesgillham
Status:closed (fixed)
Issue tags:email, fields, ui, user

Issue Summary

My issue is two fold,
First I need to be able to add some fields to the 'post a new ad' interface. Eg, name, location, price, etc
I'm sure this can be done, I'm just not sure how?

Second, I want to be able to create new ads as an admin, and a new user at the same time. This way, when someone calls me and says "I want to place an ad for a 1986 Chevy Camaro for $400" then I create the listing and create a new user for the email address "user@email.com" and sends them a login. The user then clicks the login so they can edit the listing. If they don't have email, then the listing goes up with no edits.

Can this be done? It would be huge if I could do that.

Thanks so much for this module, it rocks! Seriously.
JR

Comments

#1

Category:feature request» support request

Ok, I've figured out the 'add new fields' bit, I used CCK. So, no problem there.
But can anyone tell me how I can create an ad and a user at the same time?

Also I didn't realize but I had this in the 'feature request' category I'm going to move it to 'support request'

Thanks
JR

#2

Bump!
Please help, this is a feature that I think is vital to my installation!
Thanks,
JR

#3

Status:active» fixed

Hello Jack,

Not sure if this is too late - the module fell into a maintenance hiatus, I'm the new maintainer as of a few days ago and working through the issue queue.

CCK was indeed the obvious answer for the extra fields. The ability to add a site user simultaneously with creating an advertisement crosses a few Drupal areas. I don't know enough about the Trigger module or others but would think there would be a way of scripting a workflow that sees the advertisement and perhaps pulls out a CCK user email field to be able to generate an account creation. You'll see what I mean at http://drupal.org/handbook/modules/trigger

Due to the age of the request I'm going to tag as "fixed", but feel free to reopen.

Cheers,

Miles

#4

Miles!
First, let me say "thank you" for taking over this wonderful module.

I ended up going with a custom solution, having a friend who does php code up some new stuff in the module. I'd be happy to share that with the community, provided it's ok with him to do so.
Basically there is now a hook in the module that calls the user creation module. Or something like that :)

Let me know if you'd like to see the code.

Later
JR

#5

Would love to!

Regards,

Miles

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#7

Sorry Miles, I got a little busy over the past couple of weeks.
attached is my updated version of the module. I'm pretty sure the .module file is all that's been updated.

The png file shows the important part: the "enter users email" block which allows content and user to be created at the same time.

AttachmentSizeStatusTest resultOperations
ed_classified.module.gz10.01 KBIgnored: Check issue status.NoneNone
create_classified_ad__bb_swap_shop.png74.05 KBIgnored: Check issue status.NoneNone

#8

Assigned to:Anonymous» milesgillham
Status:closed (fixed)» needs work

Thanks, Jack. I'll reopen this issue while I'm reviewing your modifications for inclusion. Really looking forward to seeing what you've done with it.

Regards,

Miles

#9

I think the issue I'm having is related to this, so hope you don't mind if I tag along here.

My client wants only the admin to be able to post/edit (infinite-term, free) ads, but wants to send an expiry notice annually to the advertiser (to ask them to review and send my client an email with updates to the ad). I can put the advertiser's email address in a CCK email field, but how do I then get it to send to that email address and not to the user/admin?

I've figured out it's in ed_classified_notifications.inc that I need to replace uid with a call to that CCK field, but I don't know how to do that. (I am a themer, not a developer, although I do understand PHP in theory, and enough to make theme templates.) I'd really prefer to avoid workflows/triggers/views/etc. as it seems a bit inelegant and involves even more code that I don't understand (lol).

Any help is much appreciated!

#10

I've got round to looking at this and my intent is to do as follows.

A user with administrator privileges gets an extra form field called "User's Email Address" with the help text "If this ad is on behalf of a user then enter their e-mail address. If that user doesn't already exist an account will be created for them and they will receive a new user notification. The ad will be assigned to that user."

Now if the user has no edit or reset privileges then they'll own the ad but be unable to change (or you allow the appropriate privs).

I think that fundamentally brings into the module core jack_ruby's work flow.

@maritrench: that will solve the first part of your workflow - the ability to create an ad on behalf of a user/advertiser and have it assigned to them (assuming the user/advertiser has an email address, of course). No need for an extra CCK field to manage then. The second part is separate - setting durations of an ad. At present that is done by creating ad taxonomy terms and assigning say 365 days to the run.

Does that work for everyone if I proceed as described above?

Cheers,

Miles

#11

Hi Miles,

I actually ended up implementing the code jack_ruby's friend created and it's working now. Meeting the client on Monday and hoping he'll be happy with it. Very glad to know it'll be added officially, I'll definitely upgrade when that comes around.

Thanks!

#12

Now targetting this for alpha7 release by 4 Sep 2009. Apologies for the delay.

#13

Status:needs work» fixed

As others have detailed, CCK is the answer for the first question.

For the second, this is a feature that should really be written as an action and trigger by Trigger (in 2009), or more likely these days (2011) by Rules: since it applies to a user entity, it is outside the scope of a node module.

#14

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.