[Rating] Ability to DELETE, not just Quarantine, a given rating_id and associated data/stats
Posted: 03 April 2008 03:53 PM   [ Ignore ]
Jr. Member
Avatar
RankRank
Total Posts:  32
Joined  2006-05-18

Our client has a large bridal/wedding site. I say this so it will make sense the functionality we are requesting. Keep in mind, bridal/wedding site Members are temporary. The join the site to plan their wedding and once their wedding date is past they no longer use or visit the site. For purposes of the Favorites and Ratings modules we are using, the entries the Members “mark as Favorites” and the Ratings they apply to their Favorites will change over time. They add-n-remove favorites and update their Ratings/Comments on a particular “Wedding Location” (entry) over time as they interact with the Location.

Because we’re building a “members only” area to a large site, each Member will have their own Favorites listing page. Attached to each Favorite is the ability for the Member to Rate it and leave a comment for their own future reference and to compare against other Favorites they “add to their private area” of the site.

Also, using custom code, we allow a Member to email their friends and family and provide them with a “private link” to view that Member’s Favorites list.

Each friend/family can also leave a rating/comment on each Favorite.

We can Quarantine the Ratings and Comments, but this site will have tens of thousands of Members. And the Members and Friends/Family will add and remove Favorites and want to modify Ratings and Comments over time as I described above.

So, it would be most useful to us, if a specific “rating_id” and its associated relationships/stats could be removed rather than just quarantined. Quarantine has the effect on the “math” that we want, we just don’t want all these old Ratings/Comments hanging out in the table over time once the Member and her Friends/Family “deleted” it because they decided, for whatever reason, they were not going to hire that particular Location or Service for their wedding.

For us, Favorites and Ratings are related. For our client, they are one-in-the-same. And our client assumes, rightly so, that when a Member deletes a Favorite, all the Ratings/Comments are deleted as well. That would be our preference. But I know these two modules were not created with that in mind.  grin

 Signature 

--
Partner, Bare Feet Studios LLC
http://www.barefeetstudios.com
http://www.beachwalks.tv
http://reef.beachwalks.tv

Follow me on Twitter: http://twitter.com/shane

Profile
 
 
Posted: 29 August 2008 11:11 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Shane,

Great feature suggestion LOL

This feature has been added in the release of Rating 2.2.0, now available for download. smile

I will need to update the Documentation, but to get you started, here’s some sample code:

Link to Delete Template:

<p><a href="/rating/delete/entry/{segment_3}/">Delete this entry's ratings</a></p>
(Will delete ALL ratings for the current entry)

<p><a href="/rating/delete/rating/{rating_id}/">Delete this rating</a></p>
(Will delete this Rating for the current entry)

Deletion Template:

{if segment_4}
  {if segment_3 
== "rating"}
 {exp
:rating:delete rating_id="{segment_4}"}{if success}Woohoo!{if:else}I failed{message}{/if}{/exp:rating:delete}
  {if
:elseif segment_3 == "entry"}
 {exp
:rating:delete entry_id="{segment_4}"}{if success}Woohoo!{if:else}I failed{message}{/if}{/exp:rating:delete}
  {
/if}
{if
:else}
  
<p>No rating or entry was specified.</p>
{/if}

 Signature 
Profile
 
 
Posted: 29 August 2008 11:39 AM   [ Ignore ]   [ # 2 ]
Jr. Member
Avatar
RankRank
Total Posts:  32
Joined  2006-05-18

Again....Sweet!!  I’ll add this to our dev notes.

In all honesty, we got to the point where we needed so much customization (requests from the client) that we hired a couple of programmers to build a completely custom module from the ground up. The client nixed the Ratings and Friend/Family Ratings thing after we had already crafted it with your module. They’re concerned people will give bad ratings to the “advertisers” on the site and they could be right. And the things they wanted to do with Favorites and AJAX and Drag-and-Dropping, and Show/Hiding details..... we’re constantly tweaking our custom Module now

However, we are launching a large, members-only site ourselves and we’re going to be buying quite a few SolSpace modules and plugins for our new site. So I still very much appreciate your attention to our requests and incredible quality and well-thought structure of your software.

 Signature 

--
Partner, Bare Feet Studios LLC
http://www.barefeetstudios.com
http://www.beachwalks.tv
http://reef.beachwalks.tv

Follow me on Twitter: http://twitter.com/shane

Profile