View Entry marks as favorite. 
Posted: 04 March 2008 02:56 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  31
Joined  2007-03-01

Heyo!

As soon as I view an entry that currently is *not* a favorite, it gets marked as a favorite.
Entries marked as favorites, stay favorites.

My code is setup that I have an add/delete {segment_3} on my urls to add/remove favorite.
Viewing /video/14, I have a link that either is /video/14/add or /video/14/delete.

That’s the only way I know of that would set the favorite status.

But, as I mentioned, as soon as I view something *not* a favorite, it gets auto marked favorite, and my
“add to favorites” link on the archive page, changes to a “remove from favorites” on the single entry page.

Any ideas?

{if segment_3=="add" OR segment_3=="delete" }
<h3>{exp:favorites:save}</h3>
{/if}

....

{exp:favorites:saved entry_id="{entry_id}"}
{if saved}
<a href="{path="video"}{entry_id}/delete">Remove Favorite</a>
{/if}
{if not_saved}
<a href="[removed]void(0)" onclick="toggleDisplay('tagform')">Add to Favorites</a>
{/if}
{
/exp:favorites:saved}

Profile
 
 
Posted: 04 March 2008 07:24 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3232
Joined  2006-10-18

May I have at look at the site? smile

 Signature 
Profile
 
 
Posted: 04 March 2008 01:56 PM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  31
Joined  2007-03-01

I don’t know what was happening, but I changed around our template setup, so it’s no longer an issue. Thanks!

Profile
 
 
Posted: 04 March 2008 02:27 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3232
Joined  2006-10-18

That’s the way I like it LOL

 Signature 
Profile