This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Style and script to change the contents of the "in memory of" message | |
on a Salsa donation page. See (SalsaCommons link here.) --> | |
<style type="text/css"> | |
#was-in-memory-of { | |
padding-top: 20px; | |
font-size: 12pt; | |
color: red; | |
} | |
</style> | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(document).ready(function () { | |
// SalsaStaff 88363: Click options in the checkbox/radio button | |
// questions based on queries passed in the URL. The general form of | |
// a query is `&Qm=n`, where `m` is the question number and `n` is | |
// the answer number. Both `m` and `n` are cardinal integers. | |
// | |
// @note This GIST contains guard logic to work on a single questoinnaire | |
// because the script must go into a template. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(document).ready(function() { | |
if (RegExp('profile/login').test(window.location.href)) { | |
$('a[onclick*=forgotpassword]') | |
.html("Click here to receive your password.") | |
.click(function() { | |
$('.login form').eq(0).hide(); | |
$('.login table').eq(0).hide(); | |
$('a[onclick*=forgotpassword]').hide(); | |
var x = $('#forgotpassword').html() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[API URL]/api/authenticate.sjs | |
?xml | |
&email=[email] | |
&password=[password] | |
&organization_KEY=[number] | |
&chapter_KEY=[number] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add client-side validation and defaulting to any upload page. --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
if (/upload_page_KEY=\d+/.test(window.location.href)) { | |
$('#upload_page').submit(function () { | |
var file = $('*[name=file]').val(); | |
if (file.length == 0 || file == 'No file selected.') { | |
alert('Please click the Browser button to choose a file before submitting this form.'); | |
return(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Replace `URL` with the URL where you want the user to go. | |
// Please keep all punctuation intact! | |
window.location = "URL"; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://sample.salsalabs.com/api/authenticate.sjs | |
?xml | |
&[email protected] | |
&password=yourpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://sample.salsalabs.com/api/authenticate.sjs | |
?json | |
&[email protected] | |
&password=yourpass | |
&organization_KEY=12345 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://big_org.salsalabs.com/api/authenticate.sjs | |
?xml | |
&[email protected] | |
&password=yourpass | |
&organization_KEY=12345 | |
&chapter_KEY=1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// See https://salsasupport.zendesk.com/entries/23514381-Definitions-for-common-terms | |
// to find out to retrieve the API URL in $url. | |
$url = "https://API_URL/api"; | |
$username = ""; # Campaign Manager username goes here | |
$password = ""; # Campaign Manager password goes here | |
// Method #1 for building post objects to send to Salsa | |
$authfields["email"] = $username; |