I would like to be able to use privatemsg to add a link to the bottom of each ad so that users interested in the item being advertised can contact the seller direct -- without the seller posting their email address and without the buyer having to navigate to the seller's profile. I would like to be able to insert a privatemsg 'write to author' field in the ads (using Add / New Field in admin/content/node-type/ed-classified/fields).

Comments

milesgillham’s picture

Assigned: Unassigned » milesgillham
Status: Needs review » Needs work

Okay, I think I understand how the integration works. ed_classified needs to detect the presence of privatemsg. If it's found then offer a configuration option to allow privatemsg which if checked puts privatemsg link in all advertisements. I'm just testing the code now to validate this approach. If it works fine then it's a no-brainer and can be retrofitted to 5.x and 6.x branches.

Miles

milesgillham’s picture

@clarenza: Ah wait, I reread what you're trying to achieve. You're after the flexibility ala Comment fields. This is actually a better way of presenting some flexible options. I'm going to need to some guidance on what might be good option headings. How about:

  • Allow Private Messages (Yes/No - Default No)
  • Display Write To Author Link (Above, Below, Both - Default Below)
  • Location of Form (Below/New Page - Default Below)

Cheers,

Miles

clarenza’s picture

That looks great, though I think it would be unusual for Allow PM to be set to No -- if a user is advertising something for sale they're going to want to make it as easy as possible for buyers to contact them. Still, no harm having the option, but maybe with a default of Yes. If the site designer wants to create a different way of presenting the ad info using Views, and doesn't want to use a privatemsg field in a particular view display, s/he would just leave out the field -- so the Allow PM option becomes moot in that situation(?). I'm not sure how your other two options would affect things if the field is being used in a new view.

clarenza’s picture

Any progress on private message support? Being able to easily contact the seller is an important part of a classifieds solution.

ratinakage’s picture

subscribing...

fgm’s picture

Version: 6.x-2.0-alpha6 » 6.x-3.x-dev
Status: Needs work » Active

Regarding privatemsg, I think there are two things to consider:

- a way to contact the author of the ad. This has already been mentioned on various issues.
- a way to use privatemsg as the messaging support instead of email, as currently done by classified_notifications

The second part should be really simple: just implement the classified hooks (now documented with the module, yay) in a submodule similar to classified_notifications, and you should be be good. Expected volume: 300 lines of code for classified_notifications, so probably in the same ballpark. If you are interested in writing this, I can help you with it, and include it in the module once it is complete (i.e. with tests :-) )

The first part has no such "obvious" integration. I think the cleaner way to do it would be to use a CCK/Fields "contact" field, that could use privatemsg, contact.module, or whatever, to contact users. As such, it does not belong within Classified Ads per se but would be something more generally reusable.

At any rate, this should be written for Classified Ads 2 (5.2, 6.x-2.x), but Classified Ads 3 (6.x-3.x, 7.x-3.x). Adjusting issue accordingly.

fgm’s picture

Title: privatemsg support » Contacting author: privatemsg support

Rewording to group with related issues.

Skidz’s picture

subscribe

fgm’s picture

@Skidz: please no longer use "subscribe" comments on drupal.org issues: click the "Follow" link at the top of each issue you want to follow, instead.

fgm’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Since Drupal 6 was EOL-ed in 02/2016, no additional fixes will be added ; so closing.