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
Show hidden characters
<div id="tpc_thread"></div> | |
<div style="display:none;" id="tpc_post_title"><$MTEntryTitle$></div> | |
<div style="display:none;" id="tpc_post_message"><$MTEntryBody$></div> | |
<script type="text/javascript"> | |
var TPConnect = {}; | |
TPConnect.tpc_url = '<$MTEntryPermalink$>'; | |
TPConnect.tpc_title = document.getElementById('tpc_post_title').innerHTML; | |
TPConnect.tpc_message = document.getElementById('tpc_post_message').innerHTML; | |
</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
<html> | |
<body> | |
<h3>External Assets Example</h3> | |
<?php | |
/***** Utility methods + constants ******/ | |
define ("DEFAULT_DEBUG_MODE", 1); | |
define ("ROOT_TYPEPAD_API_URL", "http://api.typepad.com"); |
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
include('config.php'); | |
include_once('lib/TypePad.php'); | |
$tp = new TypePad; | |
$tp->openBatch(); | |
$user = $tp->users->get('6p011e7c3404afa5f8'); | |
$events = $tp->groups->getEvents('6p01229915440b12ef'); | |
$user_latest = $tp->users->getEventsByGroup(array( |
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 | |
/* These are excerpts from the http://github.com/nataliepo/Claire/tree/master/tp-libraries codebase. */ | |
/** mostly defined in tp-libraries/tp-config.php **/ | |
define ('CONSUMER_KEY', '67738f8572da988f'); | |
define ("ROOT_TYPEPAD_API_URL", "http://api.typepad.com"); | |
define ("ROOT_TYPEPAD_AUTH_API_URL", "https://api.typepad.com"); | |
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
<ul id="devblog"></ul> | |
<script type="text/javascript"> | |
function callback(data) { | |
var devblog = document.getElementById("devblog"); | |
if (!devblog) { | |
return; | |
} | |
innerHTML = "<ul>"; |
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><head> | |
<meta charset="utf-8"> | |
<title>Gallery</title> | |
</head><body> | |
<div id="gallery-widget"></div> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<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
<div id="tpc_thread"></div> | |
<div style="display:none;" id="tpc_post_title"><$MTEntryTitle$></div> | |
<div style="display:none;" id="tpc_post_message"><$MTEntryBody$></div> | |
<script type="text/javascript"> | |
var TPConnect = {}; | |
TPConnect.tpc_url = '<$MTEntryPermalink$>'; | |
TPConnect.tpc_title = document.getElementById('tpc_post_title').innerHTML; | |
TPConnect.tpc_message = document.getElementById('tpc_post_message').innerHTML; |
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
my $post = ""; | |
eval{ | |
$post = $tp->assets->get($id); | |
}; | |
if ($@){ | |
next; | |
}; |
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">tpcsb_question_id = 51;</script> | |
<script type="text/javascript" src="http://assets.conversations.typepad.com/clients/conversations-units-base/sponsor-bars/sponsor-bar.js"></script> | |
<!-- begin ad tag--> | |
<script language="JavaScript" src="http://ad.doubleclick.net/adj/npm.sixapart/sprint_tpc_sponsorbar;sz=1x1;ord=[timestamp]?" type="text/javascript"></script> | |
<noscript><a href="http://ad.doubleclick.net/jump/npm.sixapart/sprint_tpc_sponsorbar;sz=1x1;ord=[timestamp]?" target="_blank"><img src="http://ad.doubleclick.net/ad/npm.sixapart/sprint_tpc_sponsorbar;sz=1x1;ord=[timestamp]?" width="1" height="1" border="0" alt=""></a></noscript><!-- End ad tag --> |
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
<html> | |
<body> | |
<h2>AWESOME BAR</h2> | |
<iframe src="awesome_bar_iframe.bml"></iframe> | |
<h3>IS AWESOME</h3> | |
</body> |
OlderNewer