We need a way for both the site admin and individual users to see and maintain a list of sent postcards. You should be able to see what has been sent, to whom and when, as well as the ability to delete the card from the DB. Thoughts and ideas are welcome as I figure out the best way to implement.
Comments
Comment #1
vm commented+1
It would certainly be nice to know what images are being forwarded using this module and which ones are not.
Comment #2
lufthans commentedHere's some code you can use as a new page. It creates a table listing who the postcard was to (includes a link to view the postcard via the review interface), the recipient's email address, the date and time sent, the number of times the postcard has been viewed (views via review interface don't get logged) and the email address used to send the postcard.
The listing is based on the authenticated user viewing the page.
Not completely what you're asking for, but maybe it'll work until we get a viewing interface properly folded into the module. I'm not going to add code to remove the postcard as I don't yet understand the DB well enough.
I'd prefer the ability to unpublish the postcard without actually deleting it from the DB anyway :).
Comment #3
add1sun commented@ lufthans. I'll try to get a look into this issue in the next few weeks. It would be cool if you could provide code in patch form rather than pasted code because that makes it soooo much easier for me to work with. Patching really isn't very hard and the handbooks are pretty good about it (http://drupal.org/patch/create).
I'll give a better look at what you are doing here but one thing I noticed right quick is that Drupal has a theme_table function which would be real handy here (http://api.drupal.org/api/5/function/theme_table). We'll also probably want to create a new permission for this and I'll do that when I get a chance to dig into this issue.
Thanks!
Comment #4
lufthans commentedadd1sun,
this won't work as a patch. It's actually for building a page outside the module.
I'm using it now as a stopgap because I haven't yet figured out how to add this to the module :).
Thanks for the pointer to theme_table! I need to learn the drupal way for that type of thing.
I will also be following the links you posted in another thread for learning to code for drupal.
Hopefully I can figure out how to properly add this to the module.
danke,
der.hans
Comment #5
lufthans commentedHere's an update to the above.
It now does a table the drupal way by following the documentation add1sun pointed out.
It also now has a pager.
Careful when copying the URL as the pager depends on capitalizing SQL keywords.
This is meant to be used in building a web page via create content and not to be part of the postcard module. It's a temporary measure until we get a management interface added to the module.
Comment #6
add1sun commentedNo new major features/changes. Folks should look at ecard instead.