ContributionsMost RecentMost LikesSolutionsRe: Online User Count is Completely Wrong Hi! Found this thanks to the autosuggest while making a support case. Also was having trouble withSELECT * FROM users WHERE online_status = 'online'. Please add: returns the count including the anonymous user sessions as well. To these dev docs: https://developer.khoros.com/khoroscommunitydevdocs/docs/users#count Remove unused data from lia-scripts-body-min.js? Hi all, Long time no see. We are optimizing the loading times of our Community pages and looking at it from different angles. We allready removed some monitoring-scripts that our Corporation injects on all domains. We have optimized some components. One of the tools is doing a performance test in Edge/Chrome via Lighthouse. This points out a lot of things, there are a few issues with image sizes being full res when it is not needed. Lighthouse also says the main Khoros Javascript file is very large (Javascript file of 4,3MB) of wich 75% ar unused bytes.It concerns script:/t5/scripts/D35BF2B1BD3AD224F7D497E86C86DB4F/lia-scripts-body-min.js We are not sure if this has a big impact in the real world. It seems worth it to cut out the 3MB of data transfer. We asked support, support says it is an OOTB thing. This implies the thing is not broken and they cannot put resources into it.They refer to this discusion board. So, do you guys know if unused bytes in a Javascript file (specifically lia-scripts-body-min.js) is an issue? And if this is something our vendor could fix or should fix? Re: Great SEO Builds Community, and Great Community Improves SEO tyw We haven't permanently fixed it yet. We maintain 2 brands (Ziggo and Vodafone in NL) with 2 seperate communities. We made a rough fix for 1 and we didn't see any significant gain in click throughs from Google. So to permanently fix it, is now lower on the backlog. We still want to do it, for future proofing purposes. Maybe I can say something about the cause: Below we are looking at the Forum Topic Page quilt in Studio (we don't have or need Aurora yet). The OOTB topic-message component must be in a section called 'main-content', otherwise the Structured Data is broken. This took a long time to find and is not documented. So creating your own layouts in Khoros is not as flexible as promised. Broken Google Structured Data: <quilt layout="name" nestable="false" disableTopCssClass="false"> <add to="common-header"> <component id="quilt:Header"/> </add> <add to="main-top-content"> <component id="topic-message"/> </add> <add to="main-content"> <component id="thread-pager"/> <component id="solution-count-conditional"/> <component id="solution-list"/> <component id="reply-count-conditional"/> <component id="message-list-detail-with-inline-editors"/> </add> <add to="common-footer"> <component id="quilt:Footer"/> </add> </quilt> Working Google Structured Data: <quilt layout="name" nestable="false" disableTopCssClass="false"> <add to="common-header"> <component id="quilt:Header"/> </add> <add to="main-content"> <component id="topic-message"/> <component id="thread-pager"/> <component id="solution-count-conditional"/> <component id="solution-list"/> <component id="reply-count-conditional"/> <component id="message-list-detail-with-inline-editors"/> </add> <add to="common-footer"> <component id="quilt:Footer"/> </add> </quilt> So Structured Data only works when using conventional naming in quilts and layouts, and when you use OOTB components. This is 100% a coding thing@ Khoros - via a Khoros Support Ticket we never got this message across. We gave up on this route. Later we found above issues ourselves. Probably the Khoros code that adds Structured Data to the pages has 'main-content' hardcoded in it and it doesn't look dynamically where the components are in the quilt. Re: Help needed - Specific issue with Content Square (great 3rd party UX analytics) and Khoros Thanks Stan, great tip! The Multipath Funnel and Customer Journey analysis looks good in that tool. Our parent company has a nice agreement with Content Square that enables us to lift along without spending resources, so this keeps being the most interesting choice. Re: Help needed - Specific issue with Content Square (great 3rd party UX analytics) and Khoros Thanks Malcolm, we will look further into this issue. If you guys do not experience issues with Content Square and Khoros, this means there must be a solution on our side. Help needed - Specific issue with Content Square (great 3rd party UX analytics) and Khoros Hi all, long time no see. We use Content Square analytics to check what users interact with on ourcommunities. Via a browser plugin we can see where users are interacting. We can check live click and scroll behavior, project usage percentages over components and generate heatmaps. Content Square is great! However we noticed it does not capture data on all pages and topics. We found the javascript delivered by Content Square stops running. We raised a ticket at CS, they could not find errors in their script. They did however found some invalid HTML in the Khoros code, and CS is quite sure (not 100%) this breaks the script. This is the issue: Khoros uses a : in an HTML-tag. This is the invalid HTML (<li:common-slide-menu></li:common-slide-menu>). We asked CS to make a workaround, but due to security issues they cannot go around the limitation of scanning HTML tags with special characters in the wrong place. Fair enough. We then raised a ticket at Khoros [REF: 00414657] for this specific HTML issue. Support checked with Engineering. Engineering says the cannot change the invalid HTML as this code is part of Core and is also not supported: "We have reached out to our engineering team, and according to the update from the team, this is out of support for us.As per the update, using JS to interact with our core components – is not supported by us." We feel even if JS interactions are not supported, it is still fair to ask for proper valid HTML tags. So, here we are in Limbo. Non of the parties can fix the issue. Can anyone help? How should we as a Khoros Customer proceed? Are there other Khoros Communities where you guys have managed to get Content Square to work? Should Khoros deliver proper HTML regardless of supporting JS interactions? Cheers, Anne Re: We like the 'Since you were gone' feature here on Atlas - We recreated it and shared the component Hielbranscombsure! What would you like to know specifically? (Your question is pretty broad). Below you find some code to pass on to your developers as a starting point. This is not my final version though, i still have some minor improvements to make. - Users like this feature, they can go back to their last activity faster. It makes them feel at home a bit more - It however does not improve overall measurable engagement much. Re: Impossible to list User Roles from single "from users" API call? Yeah, the role is not in users but in roles: SELECT name FROM roles WHERE users.id = '' I have made a component that displays the role as well the rank in the avatar section of a message. For non-admin users to see the role, it was needed to perform above query usingrestadmin instead rest. Re: How do I create a subscribe button inside a component Histeffiatebayandkatieoreilly- how are things going with this feature on your side? I heard from my PO you guys asked Khoros to build it using the API instead of this JS hack I have shared. We are also interested in a more robust - and slightly faster - solution as well. Re: Distinguish Between Stage and Production With FreeMarker <#ifenv == stage> </#if> I like this one 😉