Skip to content

Instantly share code, notes, and snippets.

@MichelleGlauser
MichelleGlauser / gist:6016533
Created July 17, 2013 00:24
Reply notification API calls with api.getsatisfaction.com
jQuery(document).ready(function () {
jQuery('#reply_notification a, #topic_notification a').click(function (e) {
e.preventDefault();
window.location.href = window.location.href;
});
var current_replies,
current_topics,
topics,
replies,
@MichelleGlauser
MichelleGlauser / gist:6016532
Created July 17, 2013 00:24
Reply notification API calls with geo-cached-api.getsatisfaction.com
jQuery(document).ready(function () {
jQuery('#reply_notification a, #topic_notification a').click(function (e) {
e.preventDefault();
window.location.href = window.location.href;
});
var current_replies,
current_topics,
topics,
replies,
@MichelleGlauser
MichelleGlauser / gist:5529449
Created May 7, 2013 00:38
There's a Get Satisfaction community that asked for pop-up notifications of new activity, just as you would see on Facebook (instead of just sending emails to those following the topic). They wanted to be notified of new replies while on a topic page, and new topics while on the main community page. This would be useful for users and administrat…
// Head Tag:
<style>
#reply_notification,
#topic_notification {
background-color: #7dba00;
position: fixed;
bottom: 0;
z-index: 9999;
padding: 35px 30px;
right: 0;
@MichelleGlauser
MichelleGlauser / gist:5323089
Created April 5, 2013 22:14
Subscribe to all topics button for GS communities
<!-- Subscribe to all topics. -->
<!-- Steps to a subscribe-to-all-topics button:
1. make a product for all topics, get ID number (87939: http://michelleglauser.jarg0n.com/gsfnmichelle/products/gsfnmichelle_all_topics)
2. make all new topics automatically be assigned to that product by ID number (through a jQuery click on that element)
3. hide that product by ID number
4. make a subscribe button on the front page
5. give the subscribe button a call to the product page's follow button -->
<!-- Header HTML: -->
@MichelleGlauser
MichelleGlauser / gist:5321620
Last active December 15, 2015 20:49
Company update banner with AJAX call to API and a JS cookie for limited views
<!-- Update banner code using API -->
<!-- HEAD TAG: -->
<style>
#updates
{
background-color: #fffa61;
width: 100%;
margin-bottom: 2px;
@MichelleGlauser
MichelleGlauser / gist:5191202
Created March 18, 2013 21:59
Update Banner for Get Satisfaction Community
// Head Tag:
<style>
.banner
{
display: none;
margin-left: auto;
margin-right: auto;
background-clip: border-box;
background-origin: padding-box;
.body {
width: 900px;
margin-left: auto;
margin-right: auto;
border-right: 1px solid #e9e9e9;
border-left: 1px solid #e9e9e9;
padding: 10px;
}
.brand {