1. On the template that holds the {exp:favorites:save} tag, is there a way to add to this template a link to go back to the entry the visitor was one before they saved it as a favorite? Rather than clicking the back button and then refreshing?
2. What about a way to add the entry title somewhere in the template that holds {exp:favorites:save} tag so that users can be reminded of what entry they just saved as a favorite?
3. I have each members favorite items showing up on their member profile page. I have a heading that reads “Deron’s Favorite Items” and then a list of their favorite items below that. What I’d like to do is hide the heading when there are no favorites to show. Seems kinda weird to have a heading and no favorites.
I’m trying this but it’s not working… it’s removing everything from the template even when their are favorites to show:
{exp:favorites:entries weblog="courses"}
{if count == 1}
<h2 class="favoriteCoursesHeading">{if screen_name != ""}{screen_name}'s{if:else}{username}'s{/if} Favorite Courses</h2>
<table>
{/if}
<tr>
<th><a href="{path="courses/favorite-add"}{entry_id}/delete"><img src="/images/delete.gif" alt="Remove From Favorites" title="Remove From Favorites" /></a><a href="{title_permalink="courses/details"}">{title}</a></th>
<td>{exp:rating:stats entry_id="{entry_id}" theme="default" scale="5"}{stars_overall_avg}{/exp:rating:stats}</td>
</tr>
{if count == total_results}
</table>
{/if}
{exp:favorites:entries weblog="courses"}
4. Why doesn’t {if no_results} work in the {exp:favorites:entries} tag? Here’s what I’ve got that isn’t working:
<h2 class="favoriteCoursesHeading">{if screen_name != ""}{screen_name}'s{if:else}{username}'s{/if} Favorite Courses</h2>
<table>
{exp:favorites:entries weblog="courses"}
<tr>
<th><a href="{path="courses/favorite-add"}{entry_id}/delete"><img src="/images/delete.gif" alt="Remove From Favorites" title="Remove From Favorites" /></a><a href="{title_permalink="courses/details"}">{title}</a></th>
<td>{if no_results}<img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" />{/if}{exp:rating:stats entry_id="{entry_id}" theme="default" scale="5"}{stars_overall_avg}{/exp:rating:stats}</td>
</tr>
{/exp:favorites:entries}
</table>
Basically just trying to show 5 gray stars indicating no rating as of yet in the favorites:entries list.
5. As you can see from the code above, I’m using and image (delete.gif) out to the left of my favorites:entries. This allows the user to delete their favorites from their entries list. I don’t want this image to show up when another use (besides the owner) is viewing a favorites list. What kind of conditional could I use to only show this button to the owner of the favorites list?
Sorry for all the questions. Been working on this all night and can’t figure these out.
