11

Embed forums/home page into web site

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!

6 comments

  • 0

    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.

  • 0

    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

  • 0

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

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

  • 0

    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..

  • 0

    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

  • 0

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

    double currentTimestamp = (DateTime.UtcNow - new DateTime(1970,1,1,0,0,0)).TotalSeconds;

Please sign in to leave a comment.