Pie Man - 13 March 2008 10:54 AM
The if logged_in conditional applies to anyone logged in, not just the owner of those favorites… so in theory, if you place the Favorites:Entries loop on a profile page (with the User:Stats), then anyone viewing that profile will see that persons favorites… this might be what you’re after… maybe not, but that’s the way it currently works. That’s why I’ve submitted a feature request to have some sort of parameter or something, so that you can restrict it so that each member can only view their own…
Actually, you’re right and I was confused again. I’m using the {if logged in} on a totally different section of the site. On my profile page, so that only the current logged in member can view his/her profile, I’m using the is_mine tags. Yes a feature where only the logged in member could view their favorites would be great then!
Pie Man - 13 March 2008 10:54 AM
It also brings me to another feature of Favorites: Favorites Shared Tag Documentation
It basically allows you to display “Those who liked this entry also liked....” and will show other entries that others have commonly favorited (in addition to and in coorelation to the entry you’re viewing)
Now that’s cool! I could definitely use that for my golf site on the courses section… “those that liked this course, also like:”
So, correct me if I’m wrong here… in a sense, if one member favorites an entry, that members favorites page is technically viewable by anyone (logged in or logged out) as long as they know that user’s member id? In theory, the user’s favorites page is for all intents and purposes hidden from everyone else because everyone else would need to manually type a member id into the URL (which they probably don’t know anyway)?
Oooooh, just saw this as I’m looking through the Favorites docs:
Append the word “private” as a segment, and the entry will be added to the user’s favorites list, but will not display on their public favorites list.
{exp:weblog:entries}
{title}
<a href="{path='site/favorite_add'}{entry_id}/private">Make this entry a private favorite</a>
{/exp:weblog:entries}
So looks like I could just use that, and anything that is saved as a favorite by a member will be private so regardless of what’s in the URL, the favorites won’t show?