- 106Views0likes1Comment
Integration with JIVE - CORS Issue
We are trying to integrate Salesforce with JIVE. However we are getting a 403 Response Code with Message : Failed to load https://<OUR Community URL>/oauth2/token?grant_type=authorization_code&client_id=<client_id>&client_secret=<client_secret>&redirect_uri=<redirect_uri>&code=<received intermediate authorization code>: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'Source Salesforce Instance URl' is therefore not allowed access. Cross-Origin Read Blocking (CORB) blocked cross-origin response "https://communitiesqa.bmc.com/oauth2/token?..." Any Pointers to resolve this issue would be much appreciated. Thanks, Shweta PujaShwetaAgrawal6 years agoContributor91Views0likes1CommentLithium SDK not working in osx VM
The nodejs lithium-sdk does not appear to be functioning in an osx Mojave running in a VMWare. We're guessing this is because lithium-sdk needs XCode build tools to install. Can you please confirm? So far we see this message during `npm install lithium-sdk`: Thanks, Paul86Views0likes1CommentSDK snippet and SSO
Hi, I would like to know if I can runour javascript sdk on every page, where that javascript will add an iframe that will be shown on top of the community content. Also, is there an option to use SSO in that case, where lithium is the authorization server. The motivation is as follow: I would like show users a content aboutour products specifically targeted to them, for that I need an option to show a content and to knowwho is the user. Therefore I though to add our javaScript sdk that will get the content and show it as iframe, is that possible? Also I need to knowwho is the user in order to target the content to him, and for that I need the user to be authenticated preferably with SSO,is that possible? Thanks, Galgalbriner6 years agoContributor160Views0likes5CommentsStop Click-jacking Security
Hey Everyone, I am posting this before I raise a support ticket wondering if I am able to stop other domains from loading my communitiescontent/page in an iframe. I have had a look around and can find reference to ActiveCast widgets and disabling/enabling CSP (Content Security Policy). I know that I need to enable/add either or both of the below: Content-Security-Policy: frame-ancestors 'none'; X-Frame-Options https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet Any help would be appreciated or just let me know if I should raise a ticket.SolvedJake_N6 years agoMentor247Views1like4CommentsChecking LiQL version
In the LiQL Documentation (Community API v2), you would notice that there is a 'Released' column which indicates a certain LiQL version.How can I check the current LiQL version our Community instance is using? I ask because in the 'subscriptions' table (if you will), under the target object should only the listed types 'message', 'thread', 'board', 'category' or 'label.' However, when I run the following query : select target.type from subscriptions where subscriber.id="someUserId" I get the result set (notice that there's a 'conversation' type): { "status" : "success", "message" : "", "http_code" : 200, "data" : { "type" : "subscriptions", "list_item_type" : "subscription", "size" : 4, "items" : [ { "type" : "subscription", "target" : { "type" : "conversation" } }, { "type" : "subscription", "target" : { "type" : "board" } }, { "type" : "subscription", "target" : { "type" : "conversation" } }, { "type" : "subscription", "target" : { "type" : "conversation" } } ] }, "metadata" : { } } Is the conversation synonymous to message or thread? Will the 'target' section of thedocsbe updatedto have accurate values or are we using an LiQL version that's not the same as the documentation?joy_lim6 years agoHelper91Views0likes1CommentSearch Engine Optimization (SEO) of (new) MB posts
I am thinking about how to best ensure that all of our MB posts are indexed by Google/Bing. One idea is to submit new XML sitemaps, daily, that contain (only) URLs for all the new posts made in the previous 24 hours. Two questions: 1) What do others think of this idea? (I have used this approach with another MB platform with good results.) 2) What REST API request might I use to extract a full list of search optimized URLs for posts made in the last 24 hours? Any/all/other ideas and suggestions are welcomed. Thanks! - Markmarkgraham6 years agoContributor1.5KViews1like5CommentsProblem with order messages by metrics.views
Hi! Recently I found that sorting in my componentdoesn't work properly. I'm trying to get sorted messages using this query: SELECT id, metrics FROM messages ORDER BY metrics.views DESC LIMIT 3 The result: "items" : [ { "type" : "message", "id" : "162", "metrics" : { "type" : "message_metrics", "views" : 117 } }, { "type" : "message", "id" : "141", "metrics" : { "type" : "message_metrics", "views" : 121 } }, { "type" : "message", "id" : "140", "metrics" : { "type" : "message_metrics", "views" : 98 } } ] Any idea what the problem might be? Thanks.discipline_lr6 years agoContributor162Views2likes3CommentsAuthorization Redirect URLs
Hi all, I just wondered if anyone had found that the Authorization Redirect URL field length is problematic. We have an event which uses three different sub-domains for event related content spread over 18 cities now I have no issue creating a different API App for each city but I cant put 3 different Authorization Redirect URLs because the length of them is longer than the field size. Anyone else encountered this?79Views0likes1CommentContinuous Integration - Jenkins
Hi All, Can we integrate Jenkins (CI ) with Lithium SDK and plugin projects. As perhttp://sdk-docs.lithium.com/learn/workflow#continuousIntegration we can integrate with Travis CI and other tools. Please share the steps to do the same using Jenkins. Thank you in advance for your time and assistance! Thanks, dbabydbaby6 years agoAdept253Views0likes7CommentsHow to create a custom component that doesn't use FreeMarker
I'm refining my previous post... I am new to Lithium. I need to create a custom component where I will place some HTML code. I don't really need any FreeMarker code. Can I just put plain old HTML into the component file?I assume I still need to name the file with the FTL extension? I've been going over some tutorial I found. The tutorial has you write a component create a quilt create a skin I'm trying to learn enough to create a component and add it to an existing quilt (page). I guess using a new quilt won't hurt. I have a week to determine if I can do this (create a component, add in some code from a social buttons plugin I found) and replace the current, built-in social buttons that comes with Lithium). The plugin also contains CSS. I assume I would just add that into the _styles.scss ? Any help or suggestions would be greatly appreciated.alfredojahn6 years agoHelper177Views0likes4CommentsHelp with document editor
I'm new to iOS development I want to create an application like Document Writer. I've been using Document Writer for a long time and I'm very impressed with features it has like editing, printing, PDF conversion, voice notes etc.I want to make something similar that has similar features and takes minimum space. If you're not sure about what I'm talking about then get Document Writer from the AppStore. Can you guys help me where to start?TaylorHills6 years agoContributor69Views0likes0CommentsSample shared Lithium Community components
I am learning about developing Lithium Communitycomponents, SDK, APIs etc. One thing that would really help my learning is to see some real-world examples of what others have done. Do people in this communityshareof samples of their good work anywhere? Maybe there is a library of Lithium Contributed Samples somewhere that I have not found yet?cgrinton6 years agoExpert48Views1like0CommentsGet all latest posts for a user
Hi all, I'd like to create a custom "latest contributions" component for profile pages. I'm trying to select all latest posts for a user with API V2. At the moment, I'm always getting the same 5 posts back, no matter which user id I am viewing. Here is what I have so far SELECT * FROM messages WHERE depth = 0 AND author.id = 'user.id' ORDER BY conversation.last_post_time DESC LIMIT 10 I'm quite new to using API V2, so any help here is appreciated.Solved373Views0likes13CommentsCommon labels across the community
Not sure if this is the right place to post. It's easy to see all the labels applied to a given category/board.You can go to a page listing all topics that have that associated label. Example below: Is it possible to list all topics associated with a label across multiple categories/boards? Seems like labels are done at the board level? And thus can only by filtered on each category but I don't see a way to show all topics across all categories with the same label. Is that possible? Thank You. - Chris SolisSolvedcsolis2146 years agoGuide183Views0likes3CommentsAdding social media sharing buttons (html and css) to a component
I've never created a component. I am using the SDK. I have been tasked to learn how to create a component that I can add social media sharing buttons too. I am looking at using https://sharingbuttons.io/ which contains just HTML and some CSS. Any suggestions on where to get started? Doesn't appear to require any Freemarker, just dropping in the HTML and CSS. Thanks in advance.alfredojahn6 years agoHelper114Views0likes2CommentsHow many API Calls per function?
Hello all As I read through our contract I found the billable API call restriction, and that just made me wonder what Lithium considers an API call and how that is calculated. For example, if a case goes from the case portal through a Salesforce connector back to Salesforce, is that one API call, or several depending on the data being shipped? If there is a comment on above case, is that one or several? If there is a comment on a comment, is that one or several API calls? See where I'm getting with this? I sure hope so because I can't explain it any better, haha! Thanks in advance -Matt373Views0likes9CommentsHow to set a message to draft using REST API?
I'm trying to hide a message posted by setting the following value to true using REST API call, but was not able to change the default value of "false", I am able to set other values such as message.subject. message.is_draft (optional) boolean If the above does not works or obseleted, how can I hide a post or have the post deleted?cmkok6 years agoContributor188Views0likes2CommentsWhy is the "Update Communities" permission required to view API Browser?
I learned today from a support case I opened that granting developers the "API Browser" and the "View Studio in read-only mode" permissions did not actually enable them to view the API Browser. I had to grantthe "Update Communities" permission as well, and then they could access it. This seems strange and unintuitive to me, since Update Communities is really intended as an admin permission (per the tooltip) and API Browser is needed for developers (who may not need to be admins). I would prefer (and I think it makes more sense, unless I'm missing something) that the permissions be more granular so that Granting API Browser would actually do so. Thanks toDereckCfor troubleshooting this and finding the solution (for now) to get my developers access to the API Browser.Solvedebroyles6 years agoMaven263Views0likes5CommentsFixed Navigation
I'm having trouble with my fixed header and the scrollTo functionality on the forum topic page. When a message is highlighted, the page scrolls down and cuts off part of the message , as it's not calculating the header height. Is there a way to have this functionality scroll to the message and add in the extra height for the fixed header?80Views0likes1CommentProblem when sso authen
Hello, I try to authen to get token via https://stage.<my_comminuty>/auth/oauth2/authorize?client_id={client_id}&response_type=code&redirect_uri={callback_url} but I got error 500 aboutcomponent.content.studio-title (content). and try https://<my_comminuty>/auth/oauth2/authorize?client_id={client_id}&response_type=code&redirect_uri={callback_url} It's work fine. See configuration in admin page, looksimilar. I don't know what's going on. please suggest. Thank you in advanced.120Views0likes2CommentsNote/PM ID - Delete scam PMs
Hey everyone, I'm thinking about making a tool to remove scam PMs sent by badusers from the inboxes of their recipients. I had a look and it seems that the unique id of a note is identical both in sent of the sender and the inbox of the receiver, so it would seem I should be able to match up sent items and received items. Has anyone looked at this or does anyone want to have a look at their community, if this assumption is correct? Basically the script would do something like this: <#assign test = true/> <#assign delete = false/> <#assign scammer_user_id = 146/> <#assign limit = 10/> <#assign query_notes_sent = restadmin("2.0","/search?q=" + "SELECT id,recipients FROM outbox_notes WHERE user.id = '${scammer_user_id}' LIMIT ${limit}"?url)/> <#list query_notes_sent.data.items as note> <#assign note_id = note.id/> <#assign recipient = note.recipients.items[0].user/> <#assign recipient_id = recipient.id/> <#assign recipient_login = recipient.login/> <#if test == true> <#assign note_subject = restadmin("/users/id/${recipient_id}/mailbox/notes/id/${note_id}/subject").value/> <#assign note_body = restadmin("/users/id/${recipient_id}/mailbox/notes/id/${note_id}/body").value/> Note ID: ${note_id}, Recipient ID: ${recipient_id}, Recipient Login: ${recipient_login}<br/> <textarea>${note_subject} ${note_body}</textarea><br/> </#if> <#if delete == true> <#assign result = restadmin("/users/id/${recipient_id}/mailbox/notes/id/${note_id}/delete")/> </#if> </#list>80Views1like0CommentsWhat does Lithium use for Anonymous user geo location based on IP address?
Hi everyone, We are looking to implement country detection for users based on IP address and looking at the various options to accomplish this including third party services. But I know that Lithium must be doing this as well in some form based on some of the reports available in Lithium Social Intelligence. This leads me to these questions: How is Lithium obtaining geo for anonymous users today? Is the country data they arecapturing for anonymous users available via context objects or possible session variables? API? Would be great to find out if this is already supported before we implement something with a third party service. Thanks!SolvedFranzG6 years agoGenius364Views0likes7CommentsAdding Marketo Munchkin Code to Lithium Community
Hello, I would like to add Marketo Munchkin Code to my company's Lithium based community and I'm looking for some developer focused documentation that I can share internally to see if this can be done and what the functionality would look like. Is there anything I can share? Thanks, Cristinacaldrete6 years agoHelper133Views0likes2CommentsWhere is a list of the message-view.widget.[items here]? etc.
Is there yet a comprehensive list of these OOTB components such as message-view.widget.author-username message-view.widget.action-menu etc. It's still a guessing game ... any progress on this? Thanks. SuzieHmaybe you have some insider information for late 2018 on this? :)Inactive User6 years ago91Views0likes1CommentCreate Group Page template
Hi Community! I want to modify the template for the Create Groupe Page but I did not manage to find the URL for the template, and it is not displayed in the Studio. In order to find a template, I usually inspect the HTML of the page and the ID is findablein the class of the <body> element( for instance for the Community Page, the class islia-user-status-registered CommunityPage lia-body, so the URL for the template in the Studio is/t5/bizapps/bizappspage/tab/community%3Astudio%3Apage-editor?page=CommunityPage). I tried/t5/bizapps/bizappspage/tab/community%3Astudio%3Apage-editor?page=CreateGroupPage but it does not work. Thanks for your help, Julien.jpierlot6 years agoGuide112Views0likes2CommentsOnline users API V2 call brings back duplicates
I am trying to bring back a list of all online users using the V2 api but when trying it out on the live environment, it shows a lot of duplicates - possibly other browser sessions? Not sure. Is it possible to remove these duplicates in the API call? Here is my code: <#assign query = "SELECT id, login, avatar, view_href, rank.id, rank.name FROM users WHERE online_status = 'online' LIMIT 100" /> <#assign res = restadmin("2.0", "/search?q=${query?url}?").data.items /> Any help would be greatly appreciated! Thanks, Jackjaread836 years agoChampion245Views0likes8CommentsFunctions in text keys
Hi, we are using functions in a few text keys in our community, here's an example: page.ForumTopicPage.replies-count.text = {0} {0,choice,0#Replies|1#Reply|1<Replies} This works mostly great and gives you the option to really fine-tune the copy text based on the reply count. In the Russian language we would need to go one step further and decide the text to be shown based on the last digit of the reply count. I have not been able to find any documentation about this approach or how/which functions can be used in text keys so has anyone come across anything related? Cheers, .Mmiikka6 years agoMaven213Views0likes5CommentsHow to edit default widgets?
Hi, I am trying to find a way to edit default lithium widget called "users.widget.contact-me".Solvedomygoodness6 years agoMentor272Views0likes6CommentsHow does the VIEW ALL DRAFTS blog page get the drafts (if there's no way to get drafts in the API)?
I'm trying to show drafts by various authors to our blog manager, and it seems there's literally no way to do this ... however, since the Blog Dashboard itself has the option to SHOW ALL DRAFTS, there's obviously some way to do this, i.e,.https://community.XXX.com/t5/blogs/blogconsolepage/blog-id/xxx-blog/tab/drafts SO... how does that link do it, and how can I approximate that? It seems the only way to get the drafts is as the author, in the UI; so how can I do that via LiQL or the V1 API? The functionality obviously exists for that page to get it... Think creatively please. I've seen many responses that say "it's not possible," but I'd like to hear imaginative workarounds. I've seen requests for this back to 2011 ... so... help a dev out, please. Thanks! VikasB@VarunGrazittiFellsterukorClaudiusHany of you have any insight?Inactive User6 years ago328Views0likes8CommentsHow to get number of reply in specific duration of time?
Hi, I just looking into get the users and number of replies they have posted since from the last 1 month period of time. I have tried the below query , select * from messages But seems it's not returning correct results. So could you please suggest me on any other API available? or any other method to achieve it?jaikumar16 years agoMentor75Views0likes2CommentsComponent labels.widget.labels-list not displayed on Category Page
Hi, I am trying to uselabels.widget.labels-list component on category, but I was unable to see label component. Later I found that we can able to uselabels.widget.labels-list component only on "Blog, Contest, Forum, Q&A and TKB conversational article". Please let me know is there a way to add Label component to Category page. Thanks,111Views0likes2CommentsCustomize Latest Photos in Node
I have a request to create a group of photos on our community home page from a specific category. I see how to do that in the documentation. I switched to the XML view and could customize like this. <component id="media.widget.node-message-images" li-title="latest Deployment Photos" li-category-id ="Your_Stories" /> I'd like to show 3 photos. The default number appears to be 9. I'd also like to make those 3 images bigger. Are there attributes for customizing that? I considered doing this customization through CSS but then there is no unique ID or class on the outputted HTML. And I have 2 photo feeds and I only want to customize one like this. Is it possible to add ID or class. Thanks for any insights. best, KurtKgarrison6 years agoGuide117Views0likes2CommentsIncorporating jQuery plugins
Just wondering if anybody's had success incorporating jQuery plugins with community? I had to use a newer version of jQuery in no conflict modein one instance, but then when I tried using a different plugin, it should've worked with the jQuery version within community, however it was acting as if the function hadn't been declared, no matter whether I added the script and referenced it, or wrote the code directly with the liaAddScript directive. I'm just wondering if anybody has had success using plugins, and could maybe recommenda slider / carousel plugin that they know works with the jQuery version being used by community. Thanks :smileyhappy:Kev_B6 years agoAdvisor120Views1like1CommentLabels widget doesn't show anything on CommunityPage
Probably I'm doing something wrong or miss something completely, but I have problems getting the labels.widget.labels-list studio component to display something on the community page, thought that may have to do with the scope of the page where the widget is displayed, e.g. it has to be a blog, forum, idea page etc., but the Studio Components PDF says about this compoenent: "Displays a list of labels and the number of posts that use that label scoped to the blog, forum TKB, idea exchange, Q&A, or contest being viewed. Clicking on a label displays the associated post page (for example, the TKB Article Page) filtered to show only posts with the selected label. Use this component on the Community Page, category pages, and pages relating to blogs, forums, TKBs, ideas, Q&As, and contests" And: On a forum page for example, the same widget shows the appropriate labels that are attached to forum posts... So my question would be if that is maybe a bug or if I have to consider something else to make this work? Thanks for any advice!luk6 years agoBoss238Views0likes8CommentsLithium Response integration with LinkedIn REST v2 API connector
I am looking for more information on the capabilities and limitations of using the LinkedIn REST v2 API connector to pull in posts/comments from LinkedIn into Lithium Response, and respond with answers to those posts/comments. I am very, very new to understanding/working with API calls and response, so any further information would be helpful. Has anyone previously done something similar? If so, are you only able to pull in 1 LinkedIn account, or is there a way to connect multiple LinkedIn accounts and/or pages? What type of posts and comments can this connector pull in from LinkedIn? I am looking to pull inspecific posts and comments across multiple LinkedIn accounts and pages. What does the process to respond look like? Is it similar to responding to Twitter and Facebook posts directly in Lithium Response, or do you have to click into the LinkedIn comment/post and directly respond there? How will Lithium search these pages and accounts?trixiejosie226 years agoContributor58Views0likes0Commentsiframe a youtube video in a custom component
I want to include a few videos on our community home page. I tried creating a custom component and adding youtube embed code which is iframe into the component but I get an error when trying to save. Can someone point me in the right direction. thanks, KurtSolvedKgarrison6 years agoGuide173Views0likes2CommentsDisplaying Custom Message in a Specific Category.
Hi. I have a requirement, I want to display a message on a specific category. For instance: I have 20 Category in my community, but I have to display message only in one of the category. Approach: 1) Create a custom component which has Code Logic : a) Trigger this component ifcurrent visited page is a category. b)Get category id. c) if category id == "mycategoryid" d) Display the content, else ignore 2)Add this component to Category Page. Please let me know how can I implement 1.a and 1.b steps or a better way to implement this requirement. ThanksSolved148Views0likes2CommentsDeleted Field on API V1 or V2?
Hi everyone, Is there a field value I can call via API that indicates if a post is deleted? I perform a daily pull of our messages API data and upload into our reporting database (catches posts back a week or so and adds new posts to the database and replaces any posts where data has changed). Every once and awhile a topic returns as "No Reply" in my metrics, but this is because the post was subsequently deleted by the user. Hoping to find some type of flag value so I can filter these out of our metrics if possible. Thanks, KateSolvedkhill6 years agoMentor180Views0likes3CommentsBreadcrumbList structured data 2018 update
The navigation breadcrumb metadata format that Google relies on was updated in August 2018. It now requires a new position field for each item that looks like this: <meta itemprop="position" content="1" /> This is an integer for theitem depth/distance from the top level. If you are using the custom component to override the breadcrumb please update with the new code to include this itemprop from the best practice article here: https://lithosphere.lithium.com/t5/Tactical/Optimizing-your-page-preview-for-SEO/ta-p/309293 You can verify your community pages' structured data with the Google testing tool here: https://search.google.com/structured-data/testing-tool/u/0/ClaudiusH6 years agoKhoros Alumni (Retired)82Views5likes0CommentsJquery Uncaught TypeError
Hi all, I'm trying to update the functionality for the print page functionality. My code is: <@liaAddScript> ;(function($){ <#-- print button to open in new window--> $('.lia-component-forums-action-print-message').on('click', function(e) { e.preventDefault(); window.open(this.href, "_blank", "toolbar=yes,top=0,left=0,width=800,height=600"); }); })(LITHIUM.jQuery); </@liaAddScript> But I am I currently getting an error saying: lia-scripts-head-min.js:3 Uncaught TypeError: Cannot read property 'setAttribute' of null at Object.init (lia-scripts-head-min.js:3) at 1:1093 init @ lia-scripts-head-min.js:3 (anonymous) @ 1:1093 I have not added in a JQuery library, because it's my understanding that a version of the library is built into lithium. Is there something I am missing?Solved186Views0likes3CommentsTinyMCE - Add text in the editor
Hi I tried to add some content in the text editor. It works, when I use the code below in the console, however when I use it in the component, it seems that the code is not executed. tinymce.activeEditor.execCommand('mceInsertContent', false, " <p id='123'>bolded text</p> "); $(tinymce.activeEditor.getBody()).one('click', function() { $(tinymce.activeEditor.getBody()).find('p').empty(); }); Is there a sort of initialization or wrapper that I need to add?290Views0likes5CommentsNo "to" field returned in some notes
Hello there, I call the api https://api.lithium.com/community/v1/kebkuXXXXX/users/id/xxxxx/mailbox/notes/outbox and response: <response status="success"> <notes> <note type="note" href="/notes/id/126748"> <sent_time type="date_time">2018-10-12T04:51:28+00:00</sent_time> <from type="user" href="/users/id/163080"> <login type="string">hazardp</login> </from> <recieved_time type="date_time">2018-10-12T08:31:29+00:00</recieved_time> <body type="string">Hello there,</body> <subject type="string">ABC </subject> <id type="int">126748</id> </note> <note type="note" href="/notes/id/125014"> <sent_time type="date_time">2018-09-21T03:09:28+00:00</sent_time> <from type="user" href="/users/id/163080"> <login type="string">hazardp</login> </from> <to type="user" href="/users/id/151864"> <login type="string">Tester2</login> </to> <recieved_time type="date_time" null="true"/> <body type="string"><P>Hello World&nbsp;</P></body> <subject type="string">test</subject> <id type="int">125014</id> </note> </notes> </response> the response in some notes no "to" field. What wrong is it?197Views0likes5CommentsHow to customize for mobile through responsive/ SDK
We are currently attempting to customize our mobile version but cannot seem to find out how to. Our mobile page is very misaligned and overlapping in places and so we need to alter the css to resolve. The Issue: When I go to Studio> advanced > SDK , it tells me to reference "responsive_peak.css" Makes sense. so i visit the responsive base skin or responsive parent skin, the css is greyed out on both and both have a message at the top of the page saying "this skin cannot be edited". Basically its not allowing me to bootstrap or code anything into the responsive skin, no matter which subdirectory i click on. Went through our custom skin and, while i can of course edit that sass, there are no subdirectories that house or even seem relevant to the mobile version, sdk, or responsive skin. Do you think our responsive is simply disabled? or am I missing something completely, looking in the wrong place, etc? Thank you in advance for your time and assistance!Ringchamp6 years agoGuide86Views0likes1Comment