Involver Developer Network : contest_entry
This page last changed on Nov 22, 2011 by jed.wheeler@involver.com.
OverviewObjects returned by the contest feature block Displaying Contest EntriesContext Variables
Displaying video submissionsThe following attributes are available when capturing UGC videos using the video_upload_field tag:
You may want to display only entries that were successfully encoded. You can put the following code in the contest block: <h3>Entries</h3> {% paginate contest.contest_entries order:"created_at DESC" per_page:4 %} <table> {% for entry in contest_entries %} <tr> <td>Name: {{ entry.registration.name }}</td> <td>Added: {{ entry.published_at | date: "%m/%d/%y" }}</td> <td>{{ entry.submission.video_encoding_status }} Like: {% content_like entry %}</td> <td><img src="{{ entry.submission.video_thumbnail_url | resize_to:'150' }}" alt=""></td> </tr> {% if entry.submission.video_encoding_status == 'done' %} <tr> <td colspan="4">{% video_player video_url:entry.submission.video_encoded_video_url imgsrc:entry.submission.video_thumbnail_url %}</td> </tr> {% endif %} {% endfor %} </table> {{ pagination_links }} {% endpaginate %} Displaying photo submissionsAssuming you are using submission[before_photo] as your image_upload_field attribute: <h3>Entries</h3> {% paginate contest.contest_entries order:"created_at DESC" per_page:4 %} <table> {% for entry in contest_entries %} <tr> <td>Name: {{ entry.registration.name }}</td> <td>Added: {{ entry.published_at | date: "%m/%d/%y" }}</td> <td><img src="{{ entry.submission.before_photo | resize_to:'150' }}" alt=""></td> </tr> {% endfor %} </table> {{ pagination_links }} {% endpaginate %} Scoping to only winning entries<h3>Entries</h3> {% paginate contest.winning_contest_entries order:"created_at DESC" per_page:4 %} <table> {% for entry in contest_entries %} <tr> <td>Name: {{ entry.registration.name }}</td> <td>Added: {{ entry.published_at | date: "%m/%d/%y" }}</td> <td><img src="{{ entry.submission.before_photo | resize_to:'150' }}" alt=""></td> </tr> {% endfor %} </table> {{ pagination_links }} {% endpaginate %} Contest Entry ModerationThe contest entry moderation process should be done through AMP. Administrator should add his/her Facebook fan page with contest to the AMP's Social Apps Section; after the process is complete, the administrator should be able to see "Contest" tab under Monitor tab in the AMP - a section where submitted entries are displayed and can be approved, disproved or marked as winners. Contest Entry SharingWhen using a ?share tag, you have the option to pass in a link attribute that is used as the target link of the content that is posted to the end-user's newsfeed. This link will take the end-user back to the Facebook Fan Page Tab url by default, but you also have the option to take the end-user to a dedicated canvas page. To use this option, there are two steps: 1. Configure the canvas page SML that you'd like to use on the contest feature block settings page under the "Contest Entry Canvas Page SML" text area, and save. You have access to the context variable 'contest_entry' and the following social tags: ?share, ?content_like, and ?content_comments. 2. Use the contest_entry.contest_entry_canvas_page_url context variable for the 'link' and/or 'image_link' attributes for the ?share tag. FAQThere are currently no FAQ questions for this item. Related Topics |
![]() |
Document generated by Confluence on Feb 12, 2013 09:09 |