> Forums > Active Social > Themes and Templates > Welcome Center in 1.3.x?
Last Post 15 Mar 2010 01:05 PM by Ray Dixon. 47 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages
Dan Ball
Customers
Dan Ball
Post Count:582

--
25 Jan 2010 07:00 AM
    Was something changed in the Welcome Center for 1.3?  Since upgrading, all of my Welcome Center icons have reverted back to text, regardless of where/how they are displayed.


    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    26 Jan 2010 09:16 AM
    Does anyone have the login/logout buttons displaying properly in the welcome center in 1.3?


    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    26 Jan 2010 09:30 AM
    what login/logout buttons?


    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    26 Jan 2010 09:39 AM
    I had the Active Theme working on my sites previously, which had nice graphical "Login" and "Sign Up" buttons in the Welcome Center.

    Now I have "LoginSign UP" displayed there instead in regular text.


    Jason Peterson
    Customers
    Jason Peterson
    Post Count:525

    --
    26 Jan 2010 10:10 AM
    did you view the page source and see where the images are located on the server and then check that folder to see if it exists and contains the right images, or if it is css which I guess it probably is check the stylesheet to see where the image is and check to see if the image is there on the server in correct location?


    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    26 Jan 2010 11:08 AM
    Default theme, haven't checked traced back the AS css styles yet, wanted to see if anyone else has it working before I start digging.


    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    26 Jan 2010 07:18 PM
    Started tracing back the CSS styles, but I'm lost... It is using the aspillleft and aspillsep styles, but I cannot locate those anywhere. I found a welcome center template (it uses completely different styles), but that doesn't seem to work as a skin object.


    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    26 Jan 2010 08:36 PM
    Well, I've done complete searches and the aspill* styles do not exist in AS 1.3.4, so it looks like I need to revise my welcome center. I see the pill-left and pill-right images are still included in the images directory, but it looks like they are only used by the .astabstrip style.


    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    26 Jan 2010 09:16 PM
    It looks like the code in the WelcomeCenter.ascx file is the code I need for the skin object, but it gives me a general exception when I use it.

    Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property.



    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    26 Jan 2010 09:36 PM
    Hmmmmmm.... It works as a custom view, but then I notice that it is also a pre-defined view...

    My head is now spinning around in circles... *sigh*


    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    27 Jan 2010 08:12 AM
    The Welcome Center does appear to work quite nicely as a standard view now, but not as a skin object. So, I'll work in that direction instead, using an AS module instance for the Welcome Center and customizing the skins to contain a UserPane.

    It might be a good idea to post that the old Welcome Center skin object code no longer works with AS 1.3.x. Actually, it does "work", it just has no formatting anymore.


    Jason Peterson
    Customers
    Jason Peterson
    Post Count:525

    --
    29 Jan 2010 08:11 AM
    Hi Dan,

    This is the base template of the welcome center code we are using, I am not really sure what is not working for you so just posting this.  I think it is good to start from scratch with the new as theme, the new theming system is easier to work with since the css and html is higher quality/simpler, there is some added complication of how you will work with the new module.css that is always going to be overwritten on upgrade so just need to create a little system so you know what's what.


                    Welcome [AS:CONTROL:PROFILELINK]  | [RESX:AccountVerifyRequired]  |  
                   


    Some tags are empty because we are using a combination of the AS control and regular server scriptsfor visibility of certain other elements for unauthenticated users, however I believe if you just took out all the contents of the 3 tag sets (authenticated, anon, etc.) you would get the default welcome center, then you can modify from there.

    Sorry if I totally misunderstood the problem you are having.


    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    29 Jan 2010 03:38 PM
    Wow, that does look a lot simpler, I'll give that a try this weekend and see how well it works. Thanks for the help!


    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    29 Jan 2010 10:17 PM
    Hmmmmmm, pasted as-is causes the tokens to display as text in the skin (which I had anticipated). I assume there must be some sort of div-type wrapper around these tokens... Wrapping it in a {active:socialwelcome} wrapper causes the skin to crash completely, so that is not the right one.

    Can you post a snippet from your .ascx code? That is what I really need to see how to do, there doesn't seem to be any documentation on skin objects (with 1.3).


    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    31 Jan 2010 02:02 PM
    You can still use it as skin object, but start with the code from desktopmodules/activesocial/config/templates/other/welcomecenter.ascx instead.


    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    31 Jan 2010 04:31 PM
    Tried that, as mentioned above it causes a general exception error.


    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    31 Jan 2010 05:27 PM
    Then this is your best option I guess...
    The Welcome Center does appear to work quite nicely as a standard view now, but not as a skin object. So, I'll work in that direction instead, using an AS module instance for the Welcome Center and customizing the skins to contain a UserPane.


    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Smart-Thinker
    Customers
    Smart-Thinker
    Post Count:546

    --
    04 Feb 2010 09:12 PM
    Posted By Dan Ball on 26 Jan 2010 10:16 PM
    It looks like the code in the WelcomeCenter.ascx file is the code I need for the skin object, but it gives me a general exception when I use it.

    Cannot create an object of type 'System.Int32' from its string representation '[AS:SOCIALUSER:USERID]' for the 'ProfileUserId' property.

    Hi Dan,

    This error is probably from viewing a page when logged in as Host. I got the same error (Host has no Profile record and hence no ProfileUserID). The problem is in the profile pic where it uses ProfileUserID. Try hardcoding this to a known UserID to see if it is this.

    I don't know how to get around the problem of viewing it when logged in as Host...



    thanks
    Rodney Joyce
    PokerDIY.com - Connecting Poker Players
    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    04 Feb 2010 10:11 PM
    Hmmmmmmmm, I'll have to double-check that. I rarely use a host account, but it is possible I got that error during one of those rare times I did use one. I'm 99% sure I tested it while not even logged in also.


    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    04 Feb 2010 10:45 PM
    I'm using the skin object with no issues....mine is customized but based on the file Will referenced.


    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    05 Feb 2010 03: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 Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    05 Feb 2010 03: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
    Director of Product Management
    DotNetNuke Corp.
    Dan Ball
    Customers
    Dan Ball
    Post Count:582

    --
    05 Feb 2010 03: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 Ball
    Customers
    Dan Ball
    Post Count:582

    --
    05 Feb 2010 04: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.


    simplySane
    Customers
    simplySane
    Post Count:49

    --
    08 Feb 2010 02: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 Ball
    Customers
    Dan Ball
    Post Count:582

    --
    08 Feb 2010 09: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-Thinker
    Customers
    Smart-Thinker
    Post Count:546

    --
    26 Feb 2010 12: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-Thinker
    Customers
    Smart-Thinker
    Post Count:546

    --
    26 Feb 2010 12: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 Dixon
    Customers
    Ray Dixon
    Post Count:199

    --
    10 Mar 2010 06: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 Ball
    Customers
    Dan Ball
    Post Count:582

    --
    10 Mar 2010 07: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.


    Page 1 of 212 > >>
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Welcome Center in 1.3.x?
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy