Community   »   Forums   »   Active Social   »   How to Customize Active Social   »   Welcome Center in 1.3.x?
Welcome Center in 1.3.x?
Last Post 15 Mar 2010 02:05 PM by Ray Dixon. 47 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Page 2 of 3 << < 123 > >>
Author Messages
Dan BallUser is Offline
Customers
Dan Ball

Post Count:582





--
05 Feb 2010 04:32 PM  
Nope, it crashes with an admin account also. Steven, thanks for letting me know it actually does work, now I know it is something wrong with my system.

Here is the error I get:

AssemblyVersion: 5.2.1
[-snip-]
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 20d9d478-8857-43de-834b-e78aa1682b99
InnerException: Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.PropertyConverter.ObjectFromString
StackTrace:
Message: System.Web.HttpParseException: Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property. ---> System.Web.HttpParseException: Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property. ---> System.Web.HttpException: Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property. at System.Web.UI.PropertyConverter.ObjectFromString(Type objType, MemberInfo propertyInfo, String value) at System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) at System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.ParseTemplateInternal(String content, VirtualPath virtualPath, Boolean ignoreFilter) at System.Web.UI.TemplateParser.ParseControl(String content, VirtualPath virtualPath, Boolean ignoreFilter) at System.Web.UI.TemplateControl.ParseControl(String content, Boolean ignoreParserFilter) at System.Web.UI.TemplateControl.ParseControl(String content) at Active.Modules.Social.Controls.SocialWelcome.Page_Load(Object sender, EventArgs e)


Will MorgenweckUser is Offline
Forum Admin
Active Modules Staff
Will Morgenweck

Post Count:6271





--
05 Feb 2010 04:34 PM  
Steven, thanks for letting me know it actually does work, now I know it is something wrong with my system.

Glad to know exactly where we stand when we say it works.


Will Morgenweck
Active Modules
Dan BallUser is Offline
Customers
Dan Ball

Post Count:582





--
05 Feb 2010 04:50 PM  
Posted By Will M on 05 Feb 2010 04:34 PM
Steven, thanks for letting me know it actually does work, now I know it is something wrong with my system.

Glad to know exactly where we stand when we say it works.
That was to the question I asked ten days ago, "does anyone have it working?"...     *sigh*    Reading back through my posts, I think the original questions got lost in the mix and I didn't help the matters any with frequent posts. 

Now to figure out why I have this error occuring.


Dan BallUser is Offline
Customers
Dan Ball

Post Count:582





--
05 Feb 2010 05:25 PM  
Okay, here is what I can discern for now:

I added this code to the top of the .ascx file (< replaced with [ ):
[%@ register tagprefix="active" assembly="Active.Modules.Social" namespace="Active.Modules.Social.Controls" %]

Then I copied/pasted the entire contents of the \DesktopModules\ActiveSocial\config\templates\Other\WelcomeCenter.ascx file into the .ascx file.

Browsing to the page unuathenticated the welcome center displays properly.
Logging in as any user causes the above error.
That same "exact" code, when used as a custom view, displays properly.

Is the register code correct? I'm still using the same one from the older version of AS.


simplySaneUser is Offline
Customers
simplySane

Post Count:49





--
08 Feb 2010 03:20 AM  
I also seem to be having the same problem as Dan.  It only seems to work only on the part of displaying the messages and the alerts.  I have to use the dnn's skin object for login and logout (dnn:user & dnn:logout) inorder for my skin to display correctly.  When I try to insert AS's stuff for the mini profile pic, login and logout, then my skin crashes.

I'm also interested on how othere made this work.
 


Dan BallUser is Offline
Customers
Dan Ball

Post Count:582





--
08 Feb 2010 10:35 AM  
Try this skin (in attachment) and let me know if it is erroring out for you also.  I created this skin as a test to make sure it wasn't my custom skin causing the problems.  Just place it in your MinimalExtropy folder.  This is a simple editing of the Minimal Extropy skin, I just added the registration line at the top and the welcome center right above the logo.

This is the exception this skin generated this morning:

UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 4153b3ad-8275-4616-80a9-05bc7e7d23da
InnerException: Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.PropertyConverter.ObjectFromString
StackTrace:
Message: System.Web.HttpParseException: Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property. ---> System.Web.HttpParseException: Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property. ---> System.Web.HttpException: Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property. at System.Web.UI.PropertyConverter.ObjectFromString(Type objType, MemberInfo propertyInfo, String value) at System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) at System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.ParseTemplateInternal(String content, VirtualPath virtualPath, Boolean ignoreFilter) at System.Web.UI.TemplateParser.ParseControl(String content, VirtualPath virtualPath, Boolean ignoreFilter) at System.Web.UI.TemplateControl.ParseControl(String content, Boolean ignoreParserFilter) at System.Web.UI.TemplateControl.ParseControl(String content) at Active.Modules.Social.Controls.SocialWelcome.Page_Load(Object sender, EventArgs e)




ASWelcomeTest.zip

Smart-ThinkerUser is Offline
Customers
Smart-Thinker

Post Count:517





--
26 Feb 2010 01:53 PM  
I am getting the same problem. The issues is that these TOKENS are not resolving to UserIds (or displaynames) - [AS:SOCIALUSER:USERID], [AS:SOCIALUSERISPLAYNAME] - they are not rendered and remain as textstrings.

For example - put this in your skin:



[AS:SOCIALUSER:USERID] [AS:SOCIALUSERISPLAYNAME]



You will see this: "[AS:SOCIALUSER:USERID] [AS:SOCIALUSERISPLAYNAME]"

Steven, can you please post your skin text - mine is definitely not replacing these tokens and hence throwing the System INT error


thanks
Rodney Joyce
PokerDIY.com - Connecting Poker Players
Smart-ThinkerUser is Offline
Customers
Smart-Thinker

Post Count:517





--
26 Feb 2010 01:54 PM  
That is:

< active:socialwelcome ID="Socialwelcome1" run at="server">
< AuthenticatedTemplate>
[AS:SOCIALUSER:USERID] [AS:SOCIALUSERISPLAYNAME]
< /AuthenticatedTemplate>
< /active:socialwelcome>


thanks
Rodney Joyce
PokerDIY.com - Connecting Poker Players
Ray DixonUser is Offline
Customers
Ray Dixon

Post Count:142





--
10 Mar 2010 07:29 PM  
I'm having the same problem with the AS:SOCIALUSER:USERID and AS:SOCIALUSER: DISPLAYNAME (space added intentionally) tokens. The [AS:CONTROL: PROFILELINK] token is working fine, which would be OK for me, but I'm trying to also display the user's picture and can't figure out the right token for that.


Dan BallUser is Offline
Customers
Dan Ball

Post Count:582





--
10 Mar 2010 08:01 PM  
The standard Welcome Center is in the \DesktopModules\ActiveSocial\config\templates\Other\WelcomeCenter.ascx file. You mght find what you're looking for in there.


Ray DixonUser is Offline
Customers
Ray Dixon

Post Count:142





--
10 Mar 2010 09:41 PM  
That's the template I started with and stripped down to the bare minimum. I saw Jason Peterson's post earlier in this thread - /Community/Forums/tabid/68/aff/184/aft/49136/afv/topic/Default.aspx#60496 - which gave me the idea to try the AS CONTROL PROFILELINK token. I found that token mentioned in the Templates Tokens and Styles documentation but I can't find anything that looks like it will work to get the profile picture. The default tokens are rendering as text for me.

FWIW, the Inbox, Alert, and Login/Logout tokens seem to be working fine, except I don't now how to enable pop-up notifications, which is one of the main reasons I want to make the Welcome Center view part of my skin.


Ray DixonUser is Offline
Customers
Ray Dixon

Post Count:142





--
10 Mar 2010 09:44 PM  
Never mind about the notifications. Those are working. User error on that one.


Dan BallUser is Offline
Customers
Dan Ball

Post Count:582





--
10 Mar 2010 10:42 PM  
The image is generated by the active:ProfilePicture function, you will need to make sure you include all parts of that function. If you want to experiment, create a custom view, as it seems to render better than imbedding as a skin object (which still doesn't work for me).



Ray DixonUser is Offline
Customers
Ray Dixon

Post Count:142





--
12 Mar 2010 03:20 PM  
I've been able to get everything I wanted in the Welcome Center to work using a custom view, but I really want to use it as a skin object because I want it on every page in my site and I don't want to have to deal with it as a module instance. I will keep experimenting and post on here if I find something that works.


Smart-ThinkerUser is Offline
Customers
Smart-Thinker

Post Count:517





--
12 Mar 2010 11:10 PM  
Dan - can you please try my suggestion of just putting these tokens into your template and tell me if they are converted to values: I really don't see how it can work unless the template is converting these?


thanks
Rodney Joyce
PokerDIY.com - Connecting Poker Players
Dan BallUser is Offline
Customers
Dan Ball

Post Count:582





--
13 Mar 2010 11:22 AM  
I put those tokens into my skin, and got this in the page: Is that what you are referring to?

[ AS:SOCIALUSER:USERID ] [ AS:SOCIALUSERISPLAYNAME ]  


Smart-ThinkerUser is Offline
Customers
Smart-Thinker

Post Count:517





--
13 Mar 2010 06:06 PM  
Yes - my point is that this can not work if the active:socialwelcome server control is not converting these tokens into user values to feed into the ProfilePicture control. I really don't see how this could work? Perhaps Will or Ben could shed some light on it please?


thanks
Rodney Joyce
PokerDIY.com - Connecting Poker Players
Ray DixonUser is Offline
Customers
Ray Dixon

Post Count:142





--
13 Mar 2010 06:20 PM  
I was just able to get working in my skin object what I needed to (user profile URL, user photo, firstname, displayname, and username) using these tokens:
[ AS : PROFILE : USERURL ]
[ DNN : PROFILE : ProfilePicture ]
[ DNN : PROFILE : FirstName ]
[ DNN : PROFILE : DISPLAYNAME ]
[ DNN : PROFILE : USERNAME ]

I attached a text file with the template I got to work in my Welcome Center skin object.

It would be handy if we had a definitive list of tokens that are certain to work in a skin object.

WelcomeCenterSkinObjectTemplate.txt

Will MorgenweckUser is Offline
Forum Admin
Active Modules Staff
Will Morgenweck

Post Count:6271





--
13 Mar 2010 06:30 PM  
Nice job Ray. I was just going to post that you need to use "[DNN:PROFILE" in the skin object, You can also use the profile picture handler instead of the picture control. There is an example of how to use it in the Who's Online custom view.


Will Morgenweck
Active Modules
Ray DixonUser is Offline
Customers
Ray Dixon

Post Count:142





--
13 Mar 2010 06:40 PM  
Thanks, Will. Where can I find the Who's Online custom view?


You are not authorized to post a reply.
Page 2 of 3 << < 123 > >>


Active Forums 4.2
Who is online:
Active Modules