Would be great to allow a user to make her wish list private, so it will be excluded from wish lists search results and won't be accessed at example.com/wishlist/wid (where wid is the ID of the list) just for the owner.
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | uc_wishlist-Allow_private_wishlists-12344343.patch | 1.18 KB | sagar ramgade |
| #15 | uc_wishlist_1234434_15.patch | 9.67 KB | naveenvalecha |
| #10 | uc_wishlist_1234434_10.patch | 9.99 KB | naveenvalecha |
| #1 | uc_wishlist_1234434_03.patch | 6.19 KB | sgabe |
Comments
Comment #1
sgabe commentedHere is my proposed patch.
Comment #2
Anonymous (not verified) commented@sgabe can you explain how your patch works?
I need this functionality and was thinking about just putting a hash in the URL, so you could email your friend's a link to it, but otherwise was private.
Comment #3
sgabe commented@jackocnr: The patch adds a "Private" checkbox to the wish list settings form. Lists marked as private will be available just for the owner (friends won't be able to see it) and hidden from the wish list search results.
Comment #4
tparc commentedSubmitting request to port this to D7 version. Thanks.
Comment #5
naveenvalechamoved to correct queue.
Comment #6
jaykainthola commented@sgabe, I have reviewed the patch and its only for Drupal 6.
However, We will look into this feature and will implement into site.
Comment #7
sgabe commentedIt's 2 years old, I suppose at that time the module did not even have a D7 version yet.
Comment #8
jaykainthola commentedI am sorry that I did not check the date of your comment. However, We will add implement this feature into Drupal 7.
Thanks
Comment #9
tparc commentedHas any work been done on this feature yet? Thanks.
Comment #10
naveenvalechaHi tparc,
I have rerolled the above patch for 7 this functionality.So please test the patch and provide your feedback.I will commit the patch after discuss with jay.
Hi jay,
Actually I added the code to redirect the user if user tried to access the wishlist from path wishlist/%. So I need your suggestions on this.
Comment #11
tparc commentedThanks, naveenvalecha. I will test this as soon as I can find a moment.
Comment #12
tparc commentedPatch appears to be working for the most part. There seems to be an issue when updating the wishlist from the wishlist page, the wish list settings become unavailable. This appears to be a side effect of the patch.
Also, I wonder how hard it would be to give the administrator the option of making all wishlists private by default?
Comment #13
tparc commentedHello, I tested this patch in December, it appears to be working.
I realized the issue I pointed out already existed before the patch was applied, so there may be another issue with module.
It would still be nice to give the administrator option to make all wishlists private by default.
Thanks. Please update status if possible.
Comment #14
tparc commentedIt appears that administrators cannot view wishlists set as private. It would also be nice to give the administrator the option to make all wishlists private by default.
Comment #15
naveenvalechaHi Jay
Here is the updated patch with the latest updated code.Please review so that we can go further.
Now this patch provide the option to admin :
as @tparc suggested in #14
Thanks
Naveen Valecha
Comment #16
naveenvalechaHi @tparc
patch #15 Committed c7955e5
Also fixed some spaces issues.Use the latest dev release.So closing this issue.
Thanks
Naveen Valecha
Comment #17
tparc commentedOne comment/suggestion is to remove the restriction 'This will not give the option to users to set the privacy of their wishlists.' from 'Make users wishlist private by default.' This is to permit users to have a private wishlist by default, but allow them to share it as a gift registry when necessary.
Comment #19
sagar ramgade commentedHi,
The above patch doesn't work if "Make users wishlist private by default." and "Allow users to make their wishlist private." are enabled in the wishlist settings. It gives db exception given below :
"PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'private' cannot be null: UPDATE {uc_wishlists} SET title=:db_update_placeholder_0, expiration=:db_update_placeholder_1, address=:db_update_placeholder_2, private=:db_update_placeholder_3 WHERE (wid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => admin's wish list [:db_update_placeholder_1] => 1419877800 [:db_update_placeholder_2] => O:8:"stdClass":10:{s:9:"firstname";s:5:"Sagar";s:8:"lastname";s:7:"Ramgade";s:7:"company";s:0:"";s:5:"addr1";s:4:"abcd";s:5:"addr2";s:0:"";s:4:"city";s:6:"Mumbai";s:7:"country";s:3:"124";s:4:"zone";s:2:"77";s:8:"postcode";s:6:"400065";s:5:"phone";s:13:"+919892050550";} [:db_update_placeholder_3] => [:db_condition_placeholder_0] => 1 ) in uc_wishlist_update_wishlist() (line 725 of C:\wamp\www\drupal7.32\sites\all\modules\uc_wishlist\uc_wishlist.module)."
I had attached the patch which takes care of this.
Comment #21
naveenvalechaSagar,
is this issue still exists.I am not able to reproduce it.
Comment #22
sagar ramgade commentedIf you negate this condition
i.e Set uc_wishlist_allow_private to false, you might get pdo exception error. I got it when I enabled the module on a clean drupal install.
Comment #23
chiranjeeb2410 commented@Sagar Ramgade,
Does the issue exist now, and if so, how can it be resolved?