Forums/Community/Community questions & answers

Answered

Embed forums/home page into web site

Satina
asked this on June 03, 2011 09:56

I am wondering is there a way to embed our forums page into our internal website with some some code? I have code to just have the search field which then opens up to the forums but I am looking to have the actual forums page displayed on our site for our users. Is this possible?

Thanks!

 

Comments

User photo
Chirag Desai
amaeya

Hi Satina,

The simples thing (we've done) is to just link to the forums on our website, and we've matched the branding on our website to keep the experience flowing as one so users look at it as if it were our own site (we map our domain as well).

The other thing might be to use an iframe? But you'd have to edit the theme to remove the logos up top else when the iframe loads you would have duplicates.

Hope this helps.

March 05, 2012 04:10
User photo
Kevin Vanscoder
Zendesk
Check Answer

Thanks for the question! 

Embedding using an iframe in an external page is not a recommended use and could be buggy (since it was not designed for that use). It is possible to link the forum (like @Chirag said) or use our REST API to create search the ZD forum from your external page. You can read more about using the REST API for search here:

http://developer.zendesk.com/documentation/rest_api/search.html

June 18, 2012 11:13
User photo
Martijn Snels
pluscloud

Have you tried to implement to following for your search field?

https://DOMAIN.zendesk.com/search?query=SEARCHKEYWORDS

September 27, 2012 12:08
User photo
Balakrishna Reddy

Hi,

I want to integrate zendesk remote authentication to my asp.net website.

can someone please provide c# code for this? i have tried with the following code

using System;
using System.Collections.Generic;
using System.Web;
using JWT;


namespace AmberPortal
{
public class JWTLogin : IHttpHandler
{
private const string SHARED_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
private const string SUBDOMAIN = "amberfianacial";
public void ProcessRequest(HttpContext context)
{
var payload = new Dictionary<string, object>() {
{ "iat", (new DateTime()).ToLongTimeString() },
{ "jti", System.Guid.NewGuid() },
//{ "name", "Amber" },
//{ "email", "mtcindia182@gmail.com" }
{ "name", "Balakrishna Reddy" },
{ "email", "balakrishna.reddy@mtccrm.com" }
};

string token = JsonWebToken.Encode(payload, SHARED_KEY, JwtHashAlgorithm.HS256);
string redirectUrl = "https://" + SUBDOMAIN + ".zendesk.com/access/jwt?jwt=" + token;

context.Response.Redirect(redirectUrl);
}

public bool IsReusable
{
get
{
return true;
}
}
}

}


public partial class ZendeskTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
JWTLogin jwt = new JWTLogin();
jwt.ProcessRequest(Context);


}

but i get nothing as result. 

Please Help..

May 01, 2013 22:50
User photo
Brandon K.
Zendesk

Hello Balakrishna,

Unfortunately we do not have any .Net code for SSO so I do not have a solution for you. It might be possible that someone else in our community support forums has built something like this out and would like to share code. Also, our SSO JWT might be useful for you in your endeavors to set up this remote authentication: https://support.zendesk.com/entries/23675367

May 15, 2013 16:43
User photo
M Yunier T Hernandez

You have to modify   (new DateTime()).ToLongTimeString() by this, hope helps!

double currentTimestamp = (DateTime.UtcNow - new DateTime(1970,1,1,0,0,0)).TotalSeconds;
May 27, 2013 08:39