Closed (fixed)
Project:
Privatemsg
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2010 at 15:17 UTC
Updated:
31 May 2013 at 15:23 UTC
Hi there,
just a question, if I have a site with a lot of users can I somehow build an Address book to manage my contacts and be able to quickly remember their user names. Is there already some module like this or would it be work from scratch?
thanks
Comments
Comment #1
ptmkenny commentedI built something like this using Flag and Views. I allowed users to flag people they want to save to their contact lists. Then I made a view showing the flagged users and added Privatemsg links. Feel free to re-open if you need more details.
Comment #2
muschpusch commented@ptmkenny: Would share your code as a feature?
Comment #3
ptmkenny commentedGreetings,
Sorry, I can't export the code easily as a feature, because some parts (the link to the contact list on the profile, which I display using Views and Panels) are unique to my site and it would include a lot of extraneous stuff.
But here's the flag code:
I can't export my view that shows the contact list because all the fields are specific to my site. However, this is basically just a view that shows the user profiles of users who have been flagged (formatted for the site) or a message that no one has been flagged yet by the user. I then added a link to this view to the privatemsg menu.
And here are a couple rules I added to give users visual confirmation that the flag actually did something:
Comment #4
muschpusch commentedAwesome. I will try to add some stuff to this and create a sandbox :)