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> | |
$(function() { | |
//run function after jquery dialong confirm | |
//step 1 - the action | |
$(".deleteBtn").click(function(e) { | |
e.preventDefault(); | |
pid = $(this).attr("title"); // the id of the photo i want to delete | |
//console.log($(this).attr("title")); // check you get it first |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Over 21 script</title> | |
<style type="text/css"> | |
#ageCheckWrapper{ |
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
<footer> | |
<h3>[[++site_name]]</h3> | |
<p>[[++site_desc]]</p> | |
<h3 class="mt1">Phone</h3> | |
<p>[[++site_phone]]</p> | |
<small class="m1">[[++site_copyright]]</small> | |
</footer> |
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 | |
$tweet_data = json_decode(file_get_contents("http://api.twitter.com/1/users/show.json?screen_name=YOURTWITTERNAME"), true); | |
// display tweet data array ( just to show you i know what i'm doing =] ) | |
//print "<pre>"; | |
//print_r($tweet_data); | |
//print "</pre>"; |
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 | |
// must have http://addons.oscommerce.com/info/4269 installed in your osCommerce | |
$fb_data = json_decode(file_get_contents("https://graph.facebook.com/ACCESS-TOKEN-HERE"), true); | |
// ACCESS TOKEN FOR YOUR PAGE OR PROFILE | |
// See http://developers.facebook.com/docs/reference/api - Once a user has granted your application the "manage_pages" permission, the "accounts" connection will yield an additional access_token property for every page administrated by the current user. | |
// used for debugging/install | |
// print "<pre>"; |
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
[[!Register? | |
&submittedResourceId=`1` | |
&validate=` | |
fullname:required, | |
email:email:required, | |
username:required:minLength=^6^, | |
password:required:minLength=^6^ | |
` | |
]] |
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
<section> | |
<label>Birth Date </label> | |
<select id="birthMonth"> | |
<option value="0">January</option> | |
<option value="1">February</option> | |
<option value="2">March</option> | |
<option value="3">April</option> | |
<option value="4">May</option> | |
<option value="5">June</option> | |
<option value="6">July</option> |
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
//SNIPPET | |
$year = date("Y"); | |
$jerseyYS = 0; | |
$jerseyYM = 0; | |
$jerseyYL = 0; | |
$jerseyYXL = 0; | |
$jerseyAS = 0; | |
$jerseyAM = 0; | |
$jerseyAL = 0; |
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
//SNIPPET | |
$datearr = []; | |
$users = $modx->getIterator('modUser', array('active'=>'1')); | |
foreach ($users as $user) { | |
$profile = $user->getOne('Profile'); | |
$dob = date("Y", $profile->get('dob')); | |