Skip to content

Instantly share code, notes, and snippets.

View vkrmbhaskaran's full-sized avatar

Vikram Bhasakran vkrmbhaskaran

View GitHub Profile
@vkrmbhaskaran
vkrmbhaskaran / freshdesk-feedback-widget-ssl
Created November 16, 2012 13:00
Freshdesk Feedback Widget code for SSL Support
<script type="text/javascript" src="https://s3.amazonaws.com/assets.freshdesk.com/widget/freshwidget.js "></script> <script type="text/javascript"> FreshWidget.init("", {"queryString": "", "buttonText": "Support", "buttonColor": "#ffffff", "buttonBg": "#b73595", "alignment": "4", "offset": "450px", "url": "https://yourwebsite.freshdesk.com", "assetUrl": "https://s3.amazonaws.com/assets.freshdesk.com/widget"} ); </script>
@vkrmbhaskaran
vkrmbhaskaran / FreshPlugs Code to display customer and company notes
Created January 31, 2013 08:43
This FreshPlugs calls requestor and company notes via api and displays them corresponding to a ticket.
<style type="text/css">
.note_plug_data{
border-bottom: 1px solid #666;
padding-top: 5px;
}
.plug-used-div{
margin-top: 5px;
margin-bottom: 5px;
min-height: 19px;
@vkrmbhaskaran
vkrmbhaskaran / gist:7197334
Created October 28, 2013 14:04
Sample sidebar code to display recent 5 articles in a Freshtheme
<!-- sample Liquid template to display recent 5 articles across the entire helpdesk -->
<section class="sidebar content rounded-6">
<div class="cs-g-c">
<section class="article-list">
<h3 class="list-lead">Latest articles in {{ portal.name }}</h3>
{% for article in portal.recent_articles limit: 5 %}
<a href="article.url">{{ article.title }}</a>
<br />
{% endfor %}