Can we have a badge as a prerequisite for ranks?
Can we have a badge as a prerequisite for changing rank levels? Also, can we have the ranksincrease based on that points threshold instead of # of posts, # of kudos etc.? So in theory, someone could move from rank2 to 3 just based on having 50 points, not based on specific actions they took? Thanks.65Views0likes1CommentOverriding ForumPage MessageList
HI all, I'm trying to figure out if there's a way to modify the way forum topics are rendered in the MessageList on the ForumPage quilt. MessageList generate a table but I would like to move away from that while still maintaining the ability to do batch processing and the built-in paging functionality. Is this possible or would have to write a custom component/paging and lose out on the batch processing feature?tripp-bishop9 years agoMentor163Views0likes3CommentsCreating a new component "responsive ready"
I am looking forbest practice / recommendation when creating a new UI component to ensure it's ready for Lithium's responsive skin.#Similar to the existing content "Component Tutorial: Building your first custom component", but more specific on current day knowledge. What document object structure to use for the widget? Containered in DIVs or using unordered lists? Which Lithium CSS classes to wrap it in? And wihle we are at it maybe also throw some accessibility best practice in there. I know that there is quite a bit of overlap with general web development best practice, but a list of "good to know" and "known pitfalls to avoid" would probably help everyone migrating to responsive.57Views1like0CommentsRESTAPI v2 Url
Hi, We are currently using API V1 and we do a call to get category'Community-EN'as followshttp:/mytestforum/restapi/vc/categories/id/Community-EN. How can I make the same call in API v2 Does this work http:/mytestforum/restapi/vc/search?q=select+*+from+categories+where+id+%3d+Community-EN ? I have been through the documentation and the above call does not return anything. I am looking for somehelp in dealing with REST API v2 without freemarker. Thanks,Solvedvbandi9 years agoContributor340Views0likes2Comments- madhukar11009 years agoMentor126Views0likes5Comments
Online users component query
Hello, I found a good example of an 'online users' component here and it works exactly how I needed it to. Unfortunately a few users have pointed out that you can't identify between a standard user and mods/admins in the list of avatars that appear. The API in the linked version does not show any data to identify the roles of each online member. How can I convert the above code sample to bring out the users roles (admin/mod) and apply a class to the user container? Here is the component code I am using: <#assign users = rest("/users/online/registered?page_size=100").users /> <#if users.user?has_content> <div class="lia-panel lia-panel-standard users-online-wrapper"> <div class="lia-decoration-border"> <div class="lia-decoration-border-top"> <div> </div> </div> <div class="lia-decoration-border-content"> <div> <div class="lia-panel-heading-bar-wrapper"> <div class="lia-panel-heading-bar"> <span class="lia-panel-heading-bar-title">${text.format("module.users-online.title")}</span> </div> </div> <div class="lia-panel-content-wrapper"> <div class="lia-panel-content"> <div id="customUsersOnline" class="customUsersOnline"> <#list users.user as onlineUser> <#assign avatar = rest(onlineUser.@href+"/profiles/avatar/size/message").image /> <a href="${onlineUser.@view_href}"><img src="${avatar.url}" title="${onlineUser.login}"></a> </#list> </div> </div> </div> </div> </div> <div class="lia-view-all"> <a class="lia-link-navigation view-all-link" href="/t5/forums/usersonlinepage">view all</a> </div> <div class="lia-decoration-border-bottom"> <div> </div> </div> </div> </div> </#if> Any help on this would be greatly appreciated!jaread839 years agoChampion158Views0likes3CommentsJSONP support in Endpoints - undocumented feature?
I have been testing cross domain requests to an Endpoint I created, with the assumption that only CORS was supported to work around same origin browser issues when doing AJAX. I found however that if I pass a "callback=someFunction" HTTP parameter to the Endpoint, that the response is wrapped in jsonp, and works fine without any CORS setup. My endpoint content type is configured to be 'application/json". Is anyone else using this, or can confirm it is an 'official' way to do cross domain requests (along with CORS), as there isnt anything in the knowledge base to suggest this. I was going to write my own jsonp wrapper macro and was surpised to see it working out of the box.232Views1like4Comments- 174Views0likes4Comments
What is mytenantid ?
Hi, I have found in a lot of Lithium documents about this "myTenantID". eg: http://community.lithium.com/t5/Community-API-v2/Verifying-a-user-can-perform-an-action-using-Community-API-v2/ta-p/208828 What is this mytenantid? and how to retrieve this ID (programatically)? Thanks, PeterSolvedpeterlu9 years agoChampion191Views0likes2CommentsQuery to find word in login field in Users Resource API V2
Hi, I am trying to create a query in where I can search for a cetain term inside the login property in the users resource. So i just realize that I can't use MATCHES here and the following query only return results if the login parameter is exactly the same as the search parameter $url = "https://api.lithium.com/community/2.0/".$tenantId."/search?q=SELECT+login%2Cview_href%2Cavatar+FROM+users+WHERE+login%3D'".$searchTerm."'+LIMIT+".$numberOfResults."&api.pretty_print=true"; Is there anything like a LIKE clause that I can use in LIQL, or smarter way to write this query? What want is that if the user looks for Pat I can retrieve results like Patricia, or Patrick or Patau... things like that Thanks for your helpSolved154Views0likes2CommentsLSW Integration with External System
I wonder if it is possible to create a component in agent workspace on LSW. The component needs to read user messages and send themto an external API and then present the response from the external API back to agents.bogdan-maksak9 years agoContributor49Views0likes0CommentsSimple API call XML viewer
Since, with the latest update, it became impossible to simply throw a API v1 call into the address bar and see the raw xml, I put this together. Ugly, but functional. <div id="api"><span>API Call: (/restapi/vc/)</span><input type="text" id="q"/><input type="button" id="s" value="Submit"/></div> <div id="view"><textarea id="r"></textarea></div> <script> $("#s").click(function() { var vCall = '/restapi/vc/' + $("#q").val(); $.ajax(vCall, { dataType:'xml', data:{}, type:'GET', success:function(data, status, response) { var tmp=response.responseText; $('#r').val(tmp);} }); }); </script> Example:74Views3likes0CommentsGet latest discussion topics based on Category
Hi , I need to get the latest discussion topics based on a category . Eg : Get latest topics on Music . How can i get using Liql Query ? Please let me know if there are any other way of getting it . Thanks in advance !!!swamyandfriends9 years agoContributor157Views0likes3CommentsURL QUERY BUILD V2
Hi, I am trying to build a url that fetches SELECTS everythingFROMmessages WHERE subject MATCHES the word pay AND depth=0 and language='FR' This is what I have but gives me a 604 error. If you take the last part +AND+language%3D'FR' it works correctly. $url = "https://api.lithium.com/community/2.0/tenantID/search?q=SELECT+*+FROM+messages+WHERE+subject+MATCHES+'pay'+AND+depth%3D0+AND+language%3D'FR'&api.pretty_print=true"; I just can't add a second parameter to the where clause. Also I have not found in the docs and exhaustive tutorial in how to build this https request. If there is a tutorial around that I have not seen that would be great. Thanks!Solved204Views0likes2Comments500 status after api call
Hi, I am stuck trying to make an anonymous call to the V2 Rest Api. I am using Curl Documentation says that you don't need any oauth to if you only want to read data. But I am getting this response {"status":"Internal Server Error","message":"Internal Server Error","statusCode":500} If someone has any inputs please let me know. Do I need to enable anything before doing the API calls? The query I am using come straight from the examples given by the Lithium Documentation. thanks in advanceSolved241Views0likes3CommentsCommunity member data throguh Rest API?
We send out a community newsletter on a monthly base. Therefore we export manually data of new users in Community Admin and implement it in our CRM, to match with all other data. I'm wondering now, if there's an interface to do this process automatically in the future? Or are there options through the Rest API? Thanks Oliveroliverlutz19 years agoMentor98Views0likes1CommentHow to pragmatically add Labels while creating new article?
In TKB article editor page, programatically we want to add some pre-defined Labels to a new article that is to be created. This TKB article editor page has label text box where user can add Labels manually by selecting label from labels tree. Currently, on submit, Lithium is adding these selected labels to newly created article. But we need a way (programatically) to add some predefined labels (selected dynamically), lets say, the label "Administration" from Activity category in labels tree, along with user selected labels and display them in the label text box. On submit, these predifined labels along with user selected labels should be added to the newly created article. Could any oneplease let us know how this can be achieved?shhouji9 years agoMentor124Views3likes1CommentAuthenticate External APi calls from Lithium
I have a requirementto call an external API from Lithium. I want to know what kind of Authentications Lithium provides to call external API. I am wondering if there is any mutual or oAuth certs which Lithium provides. Thanks in Advance.ronaksomani9 years agoMentor150Views0likes3CommentsCreating endpoints for LSI
Hi all, In order to create a simplified external dashboard for our community, I am looking for a way to create endpoints for LSI. For example: I need informationlike amount of unique visitors yesterday or top 10 search terms. It would be best to get the output as a json. Do I need anAnalytics API User account for this? Or what is the best way to get this information? I succeeded creating endpoints by usingapi v1 and v2 calls already for othertypes of information. Thanks in advance, Marionne WaningeKPNOnline9 years agoMentor245Views0likes5CommentsHow to modify search page code?
We want to add sequence order to each search result on our community site. In Studio, there is a 'search-encapsulation' component inside 'search page' layout but wondering wherecan we find code for it to modify? Also,is there a way to get sequence order of search result in API response?bhawanar9 years agoContributor124Views0likes1CommentUsing LithiumSSOClient
Hi, I am trying to use the LIthiumSSOClient based on instructions here:http://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?page=authentication#sso I am not sure how I can leverage the Lithium client mentioned in the sample code: LithiumSSOClient ssoClient = LithiumSSOClient.getInstance(SSO_KEY.getRaw(), SSO_CLIENT_ID, SSO_CLIENT_DOMAIN, SSO_SERVER_ID); How do I access the Lithium library which has this client? thanks, KarthikSolved201Views0likes2Comments[SDK] Issues when validating plugin on server side
I did export the Studio plugin from our stage and did changes just in one email template file. Then I run the command 'package-plugin' and the local validation went fine. But when running the command 'submit-plugin --dryrun' I'm getting this error: Failure Code: SKIN_INVALID_CSS_NAME Failure Rule: CUSTOM_RULE Failure Message: Skin skype in the plugin has a possible issue. Failure Details: CSS file called skinmobile.css in a css directory should be named skin.css. I haven't changed anything in the CSS files and there actually is a CSS file with name skinmobile.css but also a file skin.css in the folder 'mobile/css'. But the interesting fact is that skinmobile.css is zero bytes (in other words, empty) so it was probably created when I exported the Studio plugin from the stage (skin.css in the same folder has the actual CSS definitions). I'm planning to try to delete the file skinmobile.css and then try the server-side validation again but wanted to flag this as there might be some issue with exporting the CSS files for mobile. Our stage is running version 15.10.miikka9 years agoMaven102Views1like2CommentsCalling external REST API from Lithium
I have a requiremnt to call an external REST API From the Lithium platform. I am not able to find any documentation on this. I had asked this question to Lithium support and they suggested that I post here. Thanks in advance.Solvedvasubr9 years agoGuide319Views1like3CommentsThe most read blog articles -feed
Hi, I want to display on my blog page what are my community´s top 5 the most read blog articles. Is there out of the box component for that feed? And is there component that displays top 5 most commented blog articles? I know there is component, "Latest blog" -feed but how about those "most read" or "most commented"? Regards, TeroTeroRe9 years agoExecutive224Views0likes5CommentsWebhooks on escalation
We have another tool that we would like to integrate with Lithium. We would like unanswered posts to alert oursystem and then post information back to the thread on Lithium. I noticed that there is the ablility to send an esclation email when a post goes too long without being answered. Idealy I would like to use a webhook to post to our system with the ID (to be used in the futureto post messages back) and the text of the orginal post. Is something like this possible? If not, we could parse the email. Can we get the esclation email to contain the necessary ID and text? Thanks!Solveddanjstern9 years agoContributor269Views0likes4CommentsMessage web service not sending correct URL in self referncing links
We are inserting a link in an Article using href without specifying the full path. Ex: href="#xxxxx". But we have observed that when we publish this Article, the full path is being prefixed before the '#'. We do not want the full path to be displayed in the Article. So, we would like to know if there is a way to override this behavior?62Views0likes1CommentHow to grant writable permission to lithium via REST API?
I am currently developing a customized mobile App to read/write our company’s forum which is based on lithium platform by using the REST API. I have a consumer key/secret to lithium platform. I followed the OAuth 2.0 authorization grant flow (http://community.lithium.com/t5/Community-API-v2/OAuth-2-0-authorization-grant-flow/ta-p/138402 ) in wiki to get the authentication Bearer token. I can use this Bearer token to read data via V2 REST API. However, if I try to write data back to the forum by REST API, like give a kudo to a post by calling REST API: POST https://api.lithium.com/community/v1/[tanent name]/messages/id/[messageid]/kudos/give Authentication: Bearer vuVDPEkI+XLytr7hMGo0RkwucYF8belsX2XjI1qu+zM= client-id: xxxxxxxxxxxxxx(a valid client id) I always get the error like this: <error code="303"> <message> User xxxxx does not have the following permission(s) at 78: [ allow_restapi_call_read ] </message> </error> One solution to solve this is our forum administrator grant my forum account writable permission then the API call to give a kudo will be successful. So the questions are: how can we grant all our forum user the permission to write back to the forum by using RESTful API with our App? Should the administrator grant all the user the writable permission one by one or in batch? Or can we request a new consumer key/secret to enable the writable permission to the lithium via REST API? Or what is the best practice to write back to lithium via REST API? Thanks.fengka9 years agoContributor278Views0likes7CommentsUploading image to album from within an End Point
Hi, I'm currently using a direct call to the following REST API method: /users/id/${user.id}/media/albums/default/public/images/upload to get an image uploaded to a user's album. What I'd like to do is wrap this call in an endpoint so that I can do some additional processing at the same time. I haven't found a way to get this to work, however. Is this possible or do I have to make this call directly in order to work properly? Thanks! Cheers, Tripptripp-bishop9 years agoMentor310Views0likes6CommentsUser macros data
Is there a way to fetch a specific user macro title and body with REST or aotherway? I've searched all around butcannot find any information about user macros in the API docs, user resource or profile descriptions, forums, or anywhere. Where is this data stored and how do I get to it?Solvedrwm9 years agoAdvisor299Views0likes4CommentsRSS Feed for All Topics
We have several strategic resellers / partners who would like to display our community activity on their respective sites. Specifically a listing of new topics as they come in. As opening up API access is not necessarily an option, is there any way to enable an RSS feed for the following page? http://forums.autodesk.com/t5/forums/recentpostspage/post-type/thread If not, any other suggestions?Solvedadsk_cmgrs9 years agoDirector212Views1like2CommentsHow to access an endpoint from component using freemarker
I've created a working test where I can access the json content in my endpoint using javascript. From this post, it sounds like this is possible with freemarker, however I have yet to find any sample code. Can anyone provide sample code for this?dustin9 years agoExpert165Views0likes4CommentsQuilt replacement
Hi, I'm trying to use the replaceQuilt function in the Page Initialisation tab but it doesn't seem to be working. As a simple test I was just trying to replace the custom quilt used on some blog article pages (OfficeoftheFuture-ArticleQuil2) with the standard blog quilt (two-column.main-side) but the following snippet doesn't appear to work: http.response.replaceQuilt("OfficeoftheFuture-ArticleQuil2","two-column.main-side") I have tried this with an if function to ensure I am selecting the right article as well as just having the line on its own but nothing seems to work. Can you please assist with me this. Thanks,106Views0likes1CommentError responses on valid Thread Id's
Im this end point "restapi/vc/threads/id" and I am getting a fairly large number of error responses (200 ish) when I try to grab valid threads. <response status="error"> <error code="101"> <message>No topic with the specified id.</message> </error> </response> Any ideas on what I can do to get access to these threads?Solvedaheffernan9 years agoContributor171Views0likes3CommentsCreating a Day countdown in Freemarker
Just sharing this because I needed one for an event group that we've created. We wanted a "countdown" to the event to appear on the page, but of course we're not interested in having a person update the count each day! Example display: Here's the code I'm using within a Custom Content Module. In this case, our event begins on Apr 18, 2016. <#assign now = .now?long> <#assign count = ( ( "2016-04-18T00:00:00+0000"?datetime("yyyy-MM-dd'T'HH:mm:ssZ")?long - now ) / (1000 * 60 * 60 * 24) + 1 )?int> <#-- divides milliseconds*seconds*hours-in-a-day, then adds 1 to count today --> <#if (count<=0)> <#assign count="ZERO"> </#if> <div style="text-align:center; font-size:18pt; color:#333"><b>${count} days to go!</b></div> Of course it could be fancier with alternate messages as we get closer, then during the event, then post-event. (I'm a big advocate of "good enough" solutions, especially if it allows us to open a community space sooner!)cjdinger9 years agoLeader131Views6likes1CommentRecentPostsPage Widget Community Page
How can i create a widget of Recent post page and insert in my community page.Solved149Views0likes1CommentSDK getting error while creating project
Hi I am running SDK in windows.after installation when I run the create-project I get belowerror . Can some one help. Thanks readline.js:924 throw err; ^ Error: Could not locate the bindings file. Tried: → C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\build\node_expat.node → C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\build\Debug\node_expat.node → C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\build\Release\node_expat.node → C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\out\Debug\node_expat.node → C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\Debug\node_expat.node → C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\out\Release\node_expat.node → C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\Release\node_expat.node → C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\build\default\node_expat.node → C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\compiled\5.0.0\win32\x64\node_expat.node at bindings (C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\bindings\bindings.js:88:9) at Object.<anonymous> (C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\lib\node-expat.js:4:32) at Module._compile (module.js:425:26) at Object.Module._extensions..js (module.js:432:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\xml2json\lib\xml2json.js:1:75) at Module._compile (module.js:425:26)sachin9 years agoMentor101Views0likes2CommentsAvatar upload - crop image to a set size
Hi, I want the user to upload an avatar of his choice but he should not be able to crop it, Like there will be a crop selector in dotted border which can be resized, can we disable its resizing. Let user just move the square dotted area which we can set it from community style. Can we disable the resize functionality while cropping avatar image? Thanks, SunnySolvedsunny_mody9 years agoAdvisor446Views3likes5CommentsVelocity. Get the current year
Hi, Is there a way to get the current year on a velocity email template? We have a copyright disclaimer on our emails and we need to change the year every year. I was wondering if there's a way to get the current date and pull the year from there. That way the disclaimer will be acurate as soon as the year changes :) Thanks!fuenteso9 years agoLeader100Views1like2CommentsAdd custom component to PostPage
Hi, we would like to add a component to our postpage so we can add more custom content to our blog posts. We have had this done before through Lithium in order to add an MPU module but we would like to add more and potentially do it ourselves as our page structure and design changes. The module Lithium added was simply so an image could be added during posting of a new message. Checking this component out in Studio, it is just custom_content_22 which is being added to. Is there anyway of editing this in Studio or does this need to be done via Lithium? Thanks, Dom198Views0likes6CommentsDisplay content on Group page only if Member
We use the Lithium Group feature for a few"private" boards. These make it easy for non-admins to manage the membership and decide who can see/contribute content in the discussion forum, but other elements on the Group page are visible to everyone. We don't want the additional overhead of controlling access to the page by using Roles -- which require more training and privileges to administer. So I was trying to come up with some Freemarker code that can determine whether the Group page visitor is a Group Member, and display the group content only if that's the case. Groups are not a property of theuser context object (unlikeroles), so my approach is to iterate through the group members to see if there is a match for the current user -- and if so, display the content. If no match is found, display a DENIED message (friendly version, though). The following code seems to work. I'm looking for validation: is this the proper approach? Any gotchas? <#assign show_module = false/> <#-- bypass for Admins --> <#if user.ranking.id == 1> <#assign show_module = true/> </#if> <#-- if the user is not anonymous --> <#if !show_module && user.registered > <#-- REST call to get the members --> <#-- Check for membership - coreNode.id resolves to Group ID --> <#list restadmin("/groups/id/${coreNode.id}/members").users.user as member> <#if member.id?? && (member.id?number == user.id)> <#assign show_module = true/> <#break/> </#if> </#list> </#if> <#if show_module> <#-- SHOW PRIVILEGED GROUP CONTENT HERE --> <#else> <div class="lia-quilt-column-main-content">You must be logged in and <b>be member of this group</b> to access this content.<p></div> </#if> Thanks, ChrisSolvedcjdinger9 years agoLeader255Views0likes2CommentsProblem in using studio page as an iframe on other domain
The deisgn of the widget is such that, we pull a studio page on other domain of customer in an iframe . Recenlty we started to get an error on customer's stage environment as Load denied by X-Frame-Options: http://<stage server> /t5/custom/page/page-id/widgetdoes not permit framing. as the error implies the response header is passsing a parameterX-Frame-Options:DENY is this a configuration of security restriction ? would appreaciate some details on what can cause this error. Thanks, RatneshSolvedratnesh9 years agoLithium Alumni (Retired)249Views0likes3CommentsEdit a Forum topic page. to include replying to a comment inline with the remainder of the thread?
Hello! First time Lithium user and designer. I want to make some changes to Lithium, in the default template so that when someone replies to a specific comment in a thread, that reply is inline with the remainder of the thread.... sort of like how you would have a reply-to, but instead of going to a whole seperate page, I want it to be inside of the comment thread. Is this somethign that I would do in the custom layout of that specific page in the lithium studio? Thanks! Joshjaronoff9 years agoHelper127Views1like2Comments