Romain
Customers
Post Count:33
 |
| 26 May 2010 12:11 PM |
|
Hi Everyone, I'm trying to customize the journal summary view with profile information. But when i'm adding the profile picture in this view,the page is blank. I used the following code to add the profile picture (taken from the profile view): <active:profilepicture id="ctlPicsm" profilepicturefile="[DNN:PROFILE:ProfilePicture]" picsize="md" portalid="[AS:PORTALSETTINGS:PORTALID]" maxwidth="120" maxheight="120" runat="server"/> '[DNN:PROFILE:ProfilePicture]' seems to be the problem. (i don't have parameters like "asuid" on the page) Any ideas about this problem ? Thanks |
|
| DNN 5.4.1 - Active Social 1.6.1 |
|
|
Ray Dixon
Customers
Post Count:199
 |
| 26 May 2010 01:01 PM |
|
Hi Romain, I haven't tried this myself, but there are a couple of resources that I think might help you. The Active Social Tokens & Themes link in the Active Social Documentation post - www.activemodules.com/Community/For...fault.aspx - shows a token named [AS:JOURNALINFO:JOURNALAUTHORPICTURE] that is described as "Picture of the user who created the journal entry." In Will's Active Social 1.3 - Templates, Tokens & Styles post - www.activemodules.com/Community/For...fault.aspx - he has a document that shows a token named [AS:JOURNALINFO:PROFILEPICTURE] that has for its description "A users profile picture." As I said, I have not experimented with either of these tokens, so they may not be what you're looking for, but they are where I would start. Good luck! -Ray |
|
|
|
|
Romain
Customers
Post Count:33
 |
| 27 May 2010 04:51 AM |
|
Hi Ray,
Thanks for your answer.
About the token "[AS:JOURNALINFO:JOURNALAUTHORPICTURE]" it's not really the information i want to display, i just want the profile picture of connected user.
I tried to insert the tokens "[AS:JOURNALINFO:PROFILEPICTURE]" but the token is not replaced by anything in the page. I read the document about tokens but i could not find this token.
So it seems the profile picture can't be used outside the Profile view ? |
|
| DNN 5.4.1 - Active Social 1.6.1 |
|
|
Ray Dixon
Customers
Post Count:199
 |
| 27 May 2010 06:42 PM |
|
Sorry, I think I misunderstood what you were trying to do. Give this a try:
<img src="[AS:HANDLER:PROFILEPIC]?PortalId=[AS:PORTALSETTINGS:PORTALID]&uid=[DNN:PROFILE:USERID]&h=25&w=25" /> |
|
|
|
|
Romain
Customers
Post Count:33
 |
| 28 May 2010 04:09 AM |
|
When i try to display only the token [DNN:PROFILE:USERID]: it displays "-1" (no user id found ?) So this always return the default profile picture:
<img src="[AS:HANDLER:PROFILEPIC]?PortalId=[AS:PORTALSETTINGS:PORTALID]&uid=[DNN:PROFILE:USERID]&h=25&w=25"> When you go to a "Profile View" you have the "asuid" parameter in the query string. It seems i also need this parameter to display profile information in other pages (like the summary view). Is it possible to insert "asuid" parameter on some specific pages ? (the URL would be similar to : http://localhost/activesocial/Summa...d=@userId) ) |
|
| DNN 5.4.1 - Active Social 1.6.1 |
|
|
R1ckJon3z
Customers
Post Count:116
 |
| 28 May 2010 02:18 PM |
|
I am using profile pictures on my journal summary page and here is what I am using:
< a href="[AS:SOCIALUSER:USERURL]"><active:ProfilePicture ProfileUserId='[AS:SOCIALUSER:USERID]' ImageAlt='[AS:SOCIALUSER:DISPLAYNAME]' LinkToProfile='False' PicSize='md' runat='server'/>a> |
|
 Ricky Jones | PokerSharkz.net | Social Networking For Poker Players |
|
|
Romain
Customers
Post Count:33
 |
| 31 May 2010 04:10 AM |
|
Thanks R1ckJon3z, those tokens work great ! They should be included in the theme guide. |
|
| DNN 5.4.1 - Active Social 1.6.1 |
|
|
Jeff Blanks
Customers
Post Count:379
 |
| 05 Jun 2010 03:08 PM |
|
FYI, when showing a users profile pic on a summary page, it will need to be locked down to registered users only. If guests are allowed to view, then you will get an error on the page due to the profile pic being used. If anyone has a workaround for this, please let me know. I'd like to include a profile pic myself, but also want to keep the summary open for guest users. |
|
Cheers! Jeff
@northeastok | @jeffblanks | My Blog |
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7666
 |
| 05 Jun 2010 05:57 PM |
|
FYI, when showing a users profile pic on a summary page, it will need to be locked down to registered users only. If guests are allowed to view, then you will get an error on the page due to the profile pic being used. If anyone has a workaround for this, please let me know. I'd like to include a profile pic myself, but also want to keep the summary open for guest users. Sounds like a problem with your template. The default summary view template will load just fine for guest users. I just opened up the summary view on activesocial.com just to show that this does work. http://www.activesocial.com/Home/ta...fault.aspx |
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
Jeff Blanks
Customers
Post Count:379
 |
| 15 Jun 2010 09:28 PM |
|
No problem in the template. Summary view works perfectly for logged in and guest users. :)
What our goal is/was to display the photo of the "logged in user" when they are on the summary view. This would actually cause an error for unauthenticated users when implemented.
As a workaround. I'm going to create a custom view of the summary view with a pic of the logged in user and set the module settings to registered users. I will then add the default summary view to the same page and set module settings to guest users. This should work for all users. If there are issues with this setup, I'll report back. |
|
Cheers! Jeff
@northeastok | @jeffblanks | My Blog |
|
|
R1ckJon3z
Customers
Post Count:116
 |
| 07 Jul 2010 03:01 PM |
|
** Update ** The code I was using in 1.6.1 doesn't seem to play well in 1.7.1 Did the [AS:SOCIALUSER] tokens go away in this version? I tried copying a snippet of code from the profile view to display the profile picture, but that didn't work either. What's the best way to make this work for 1.7.1? I just read an article in the knowledge base about a profile display control: http://www.activemodules.com/Commun...fault.aspx What I want to do is just display the medium profile picture like on the profile page on my social summary page. The code I was using before makes the whole page blank and the snippet from the profile display control article produces the same results. I think I'm lost on this one, but I'll keep fiddling with it. If anyone has any ideas, please share... |
|
 Ricky Jones | PokerSharkz.net | Social Networking For Poker Players |
|
|
mmoney
Customers
Post Count:150
 |
| 12 Jul 2010 08:29 PM |
|
I've got the same issue as R1ckJon3z. I had code that was working and displaying a photo and name in the summary and now nothing show in 1.7.1. |
|
|
|
|
Dustin
Registered Users
Post Count:1
 |
| 24 Mar 2011 07:48 PM |
|
Anyone find a solution for this? Any help would be much appreciated. Dustin |
|
|
|
|