Participant List with Profile Images on TR Entry Page
Options
I'm working with a client that is managing an event in TeamRaiser where there is no public registration. Agency staff manually register the participants on the adminsitraive side of the event.
The client is now wnating the TR entry page to display a list of the active participants along with thier profile images as loaded on their personal pages. The goal is that you can click on the particpants image and get taken to their personal page.
My goal is to have this list generate dynamically for the client rather than telling them they have to hand code the list. So my challenges to date are that I can't find an S tag to generate anyting remotley tied to this... so I'm now looking at the API.
My colleague at the office used the getTopParticipantsData to pull the list of all participants on our event, their names and thier ids. Using this data we can construct thier link to thier Personal page.
Then he tried using the getPersonalPhotos to pull the participants picture... no go. Looks like we are needing to authenticate as the participant to get the aip to return the participants photo.
Are we missing somehting?
The client is now wnating the TR entry page to display a list of the active participants along with thier profile images as loaded on their personal pages. The goal is that you can click on the particpants image and get taken to their personal page.
My goal is to have this list generate dynamically for the client rather than telling them they have to hand code the list. So my challenges to date are that I can't find an S tag to generate anyting remotley tied to this... so I'm now looking at the API.
My colleague at the office used the getTopParticipantsData to pull the list of all participants on our event, their names and thier ids. Using this data we can construct thier link to thier Personal page.
Then he tried using the getPersonalPhotos to pull the participants picture... no go. Looks like we are needing to authenticate as the participant to get the aip to return the participants photo.
Are we missing somehting?
Tagged:
0
Comments
-
No API would accomodate that so far I am aware of (API only returns photo for logged in user)
Thus, Javascript (jQuery load) would be one candidate to achieve that, like what I did here (note make sure you exclude the wrapper when loading those personal pages in iframe DIVs through the use of &pgwrap=n to clear up all those overheads that might otherwise impact your site load performance), and have jQuery retrieve the img srcs from those DIV containers into the place you want it to be -- This might not be ideal if you are loading let say tons of personal page photos in a page (i.e. like a crowdrise layout etc)
http://main.diabetes.org/site/TR/FatheroftheYear/FOTYContent?pg=entry&fr_id=11279
Now another alternative as I read your upload process, you stated that "Agency staff manually register the participants on the adminsitraive side of the event. " -- in that case you have more flexibility in terms of having the staff trained to retrieve the uploaded image URL (since that's the only thing we need to locate the image and use them into those img src).
With that said, once they are trained to retrieve the uploaded img src you could create an empty custom Teamraiser page, and train them to put those raw text data in a delimiter notion format (no handcode HTML here) or future iteration you could create a widget to convert that into JSON object that you could then use Javascript to parse the desired data into (save the page from having to perform multiple jQuery loads of those personal pages just to grab the img src performance wise).
I have been doing that kind of in-house solution for several of our sites.
Here's one actual use case where I am using it to build the Route Table -- the data are taken from custom TR page and that page purpose is to hold that raw data text that staff put that themselves after they have been trained the pattern to follow (these are non technical staff) as you can see here: http://main.diabetes.org/site/TR?pg=informational&fr_id=11756&type=fr_informational&sid=23670&pgwrap=n
And here's the landing page with the route data presented either in a "table look and feel" or "accordion" when screen resizes to a mobile dimension
http://main.diabetes.org/site/TR/TourdeCure/TourAdmin?fr_id=11756&pg=entry
Hope that helps
Daniel
EDIT Add On:
Just some question -- is the objective to pull photos of only Top Participants or the entire participants that happened to be registered for that event?2 -
With that said, once they are trained to retrieve the uploaded img src you could create an empty custom Teamraiser page, and train them to put those raw text data in a delimiter notion format or create a JSON object that you could then use Javascript to parse the desired data into (save the page from having to load multiple personal pages just to grab the img src performance wise). I have been doing that kind of in-house solution for several of our sites.
It's a roll-your-own-api.
You could put that JSON in a reusable page instead, and embed that in the event PageWrapper. Then you'd save the lookup to the custom page, it would be right there. You might wrap it in an STag conditional so you don't serve it where it isn't needed.0 -
yuppie, "roll-your-own-api" all the way
(wasn't even aware of that discussion, thanks Brian!)
Yup, no need to have to always put that into a custom TR page (but in that particular cases of ours, we restrict non-tech staffs from accessing pagebuilder component, so their only option currently is that custom TR page editable on their own through that EMC component.
Next iteration on DIY after this phase is to create a little front-end form powered by javascript that would allow them to parse input in a much more controlled environment (preventing human errors typo etc) and convert that into JSON, where they just then have to copy paste the generated JSON into either pagebuilder / or that custom TR page.. (if only time is a plenty here.. but def will share)0 -
Just as an additional bit of information, I used the following JS to parse the participant list output by [[S36:top_participants_list,FR_ID,0,0,list,sum,NUMBER_OF_PARTICIPANTS,title]], extract the image url provided by the participant and then add it back into the participant list:
$(".indicator-list-row").each(function() {
var jqxhr = $.ajax({
type: 'POST',
url: $("a.indicator-link", this).attr('href')+"&pgwrap=n",
dataType: 'html',
context: document.body,
global: false,
async:false,
success: function(data) {
return data;
}
}).responseText;
imageUrl = $(jqxhr).find("#personal_page_image_div img").attr("src");
if (imageUrl.length){
imageUrl = imageUrl.replace("../","REPLACE WITH YOUR BASE URL");
}
else{
imageUrl = 'URL_TO_DEFAULT_AVATAR'
}
Then you can set whatever you want to imageUrl (in my case, it was the background-image of a div). It's far from perfect but is a good base to build on.
2
Categories
- All Categories
- Shannon parent
- shannon 2
- shannon 1
- 21 Advocacy DC Users Group
- 14 BBCRM PAG Discussions
- 89 High Education Program Advisory Group (HE PAG)
- 28 Luminate CRM DC Users Group
- 8 DC Luminate CRM Users Group
- Luminate PAG
- 5.9K Blackbaud Altru®
- 58 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 409 bbcon®
- 2.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- donorCentrics®
- 1.1K Blackbaud eTapestry®
- 2.8K Blackbaud Financial Edge NXT®
- 1.1K Blackbaud Grantmaking™
- 527 Education Management Solutions for Higher Education
- 1 JustGiving® from Blackbaud®
- 4.6K Education Management Solutions for K-12 Schools
- Blackbaud Luminate Online & Blackbaud TeamRaiser
- 16.4K Blackbaud Raiser's Edge NXT®
- 4.1K SKY Developer
- 547 ResearchPoint™
- 151 Blackbaud Tuition Management™
- 1 YourCause® from Blackbaud®
- 61 everydayhero
- 3 Campaign Ideas
- 58 General Discussion
- 115 Blackbaud ID
- 87 K-12 Blackbaud ID
- 6 Admin Console
- 949 Organizational Best Practices
- 353 The Tap (Just for Fun)
- 235 Blackbaud Community Feedback Forum
- 55 Admissions Event Management EAP
- 18 MobilePay Terminal + BBID Canada EAP
- 36 EAP for New Email Campaigns Experience in Blackbaud Luminate Online®
- 109 EAP for 360 Student Profile in Blackbaud Student Information System
- 41 EAP for Assessment Builder in Blackbaud Learning Management System™
- 9 Technical Preview for SKY API for Blackbaud CRM™ and Blackbaud Altru®
- 55 Community Advisory Group
- 46 Blackbaud Community Ideas
- 26 Blackbaud Community Challenges
- 7 Security Testing Forum
- 1.1K ARCHIVED FORUMS | Inactive and/or Completed EAPs
- 3 Blackbaud Staff Discussions
- 7.7K ARCHIVED FORUM CATEGORY [ID 304]
- 1 Blackbaud Partners Discussions
- 1 Blackbaud Giving Search™
- 35 EAP Student Assignment Details and Assignment Center
- 39 EAP Core - Roles and Tasks
- 59 Blackbaud Community All-Stars Discussions
- 20 Blackbaud Raiser's Edge NXT® Online Giving EAP
- Diocesan Blackbaud Raiser’s Edge NXT® User’s Group
- 2 Blackbaud Consultant’s Community
- 43 End of Term Grade Entry EAP
- 92 EAP for Query in Blackbaud Raiser's Edge NXT®
- 38 Standard Reports for Blackbaud Raiser's Edge NXT® EAP
- 12 Payments Assistant for Blackbaud Financial Edge NXT® EAP
- 6 Ask an All Star (Austen Brown)
- 8 Ask an All-Star Alex Wong (Blackbaud Raiser's Edge NXT®)
- 1 Ask an All-Star Alex Wong (Blackbaud Financial Edge NXT®)
- 6 Ask an All-Star (Christine Robertson)
- 21 Ask an Expert (Anthony Gallo)
- Blackbaud Francophone Group
- 22 Ask an Expert (David Springer)
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 6 Ask an All-Star Sunshine Reinken Watson and Carlene Johnson
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 14 Ask an All-Star (Elizabeth Johnson)
- 7 Ask an Expert (Stephen Churchill)
- 2025 ARCHIVED FORUM POSTS
- 322 ARCHIVED | Financial Edge® Tips and Tricks
- 164 ARCHIVED | Raiser's Edge® Blog
- 300 ARCHIVED | Raiser's Edge® Blog
- 441 ARCHIVED | Blackbaud Altru® Tips and Tricks
- 66 ARCHIVED | Blackbaud NetCommunity™ Blog
- 211 ARCHIVED | Blackbaud Target Analytics® Tips and Tricks
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- Luminate CRM DC Users Group
- 225 ARCHIVED | Blackbaud eTapestry® Tips and Tricks
- 1 Blackbaud eTapestry® Know How Blog
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- 1 Blackbaud K-12 Education Solutions™ Blog
- 280 ARCHIVED | Mixed Community Announcements
- 3 ARCHIVED | Blackbaud Corporations™ & Blackbaud Foundations™ Hosting Status
- 1 npEngage
- 24 ARCHIVED | K-12 Announcements
- 15 ARCHIVED | FIMS Host*Net Hosting Status
- 23 ARCHIVED | Blackbaud Outcomes & Online Applications (IGAM) Hosting Status
- 22 ARCHIVED | Blackbaud DonorCentral Hosting Status
- 14 ARCHIVED | Blackbaud Grantmaking™ UK Hosting Status
- 117 ARCHIVED | Blackbaud CRM™ and Blackbaud Internet Solutions™ Announcements
- 50 Blackbaud NetCommunity™ Blog
- 169 ARCHIVED | Blackbaud Grantmaking™ Tips and Tricks
- Advocacy DC Users Group
- 718 Community News
- Blackbaud Altru® Hosting Status
- 104 ARCHIVED | Member Spotlight
- 145 ARCHIVED | Hosting Blog
- 149 JustGiving® from Blackbaud® Blog
- 97 ARCHIVED | bbcon® Blogs
- 19 ARCHIVED | Blackbaud Luminate CRM™ Announcements
- 161 Luminate Advocacy News
- 187 Organizational Best Practices Blog
- 67 everydayhero Blog
- 52 Blackbaud SKY® Reporting Announcements
- 17 ARCHIVED | Blackbaud SKY® Reporting for K-12 Announcements
- 3 Luminate Online Product Advisory Group (LO PAG)
- 81 ARCHIVED | JustGiving® from Blackbaud® Tips and Tricks
- 1 ARCHIVED | K-12 Conference Blog
- Blackbaud Church Management™ Announcements
- ARCHIVED | Blackbaud Award Management™ and Blackbaud Stewardship Management™ Announcements
- 1 Blackbaud Peer-to-Peer Fundraising™, Powered by JustGiving® Blogs
- 39 Tips, Tricks, and Timesavers!
- 56 Blackbaud Church Management™ Resources
- 154 Blackbaud Church Management™ Announcements
- 1 ARCHIVED | Blackbaud Church Management™ Tips and Tricks
- 11 ARCHIVED | Blackbaud Higher Education Solutions™ Announcements
- 7 ARCHIVED | Blackbaud Guided Fundraising™ Blog
- 2 Blackbaud Fundraiser Performance Management™ Blog
- 9 Foundations Events and Content
- 14 ARCHIVED | Blog Posts
- 2 ARCHIVED | Blackbaud FIMS™ Announcement and Tips
- 59 Blackbaud Partner Announcements
- 10 ARCHIVED | Blackbaud Impact Edge™ EAP Blogs
- 1 Community Help Blogs
- Diocesan Blackbaud Raiser’s Edge NXT® Users' Group
- Blackbaud Consultant’s Community
- Blackbaud Francophone Group
- 1 BLOG ARCHIVE CATEGORY
- Blackbaud Community™ Discussions
- 8.3K Blackbaud Luminate Online® & Blackbaud TeamRaiser® Discussions
- 5.7K Jobs Board