Coda Clips

jQuery Post

var data = {
	x:x
};
$.post('', data, function(){
});

Added to by Thomas

Install Clip


Drupal: Submit Button Change Name

function TPL_webform_form_ID($form) {
  $form['submit']['#value'] = t('Send');    
  return drupal_render($form);
}

Added to by Steven Schulz

Install Clip


Friendly pre-formated TinyUrl link to Tweet your TXP articles

<p><img src="<txp:site_url />img/twitter.gif" width="18" height="18" alt="Twitter" class="icon" /> <a href="//twitter.com/home?status=I%20am%20currently%20reading%20%3Ca%20href='<txp:php>echo file_get_contents("http://tinyurl.com/api-create.php?url=".permlink(array())).'\'%3E'.$thisarticle['url_title'];</txp:php>%3C/a%3E" title="Publish it on Twitter!" class="tooltip" onclick="window.open(this.href); return false;">Tweet!</a></p>

Added to by Patrick Lefevre

Install Clip


Display modified and changed article dates with real name authors

<p>Published by <txp:author /> on <txp:posted format="%m %d %Y - %H:%I" /><txp:php>
$changed = modified(array( 'format'=>'%m %d %Y - %H:%I'));
echo $changed == posted(array('format'=>'%m %d %Y - %H:%I')) ? '' : ' | Changed by '.safe_field("RealName", "txp_users", "name='".safe_field("LastModID", "textpattern", "ID='".$thisarticle['thisid']."'")."'").' on '.$changed.'';</txp:php></p>

Added to by Patrick Lefevre

Install Clip


Meta description and keyword tag

<meta name="description" content="" />
<meta name="keywords" content="" />

Added to by Axel Metayer

Install Clip


Skype Call Link

<a href="skype:your_skype_name">Call Me</a>

Added to by André Nitz

Install Clip


Exclude Pages

<ul>
  <?php wp_list_pages('exclude=17,38' ); ?>//here insert the ID of the Page(s). More than one: 17, 23
</ul>

Added to by Michael

Install Clip


Mouse Click Event AS3

myButton.addEventListener(MouseEvent.CLICK, myFunction, false, 0, true);
public function myFunction(e:MouseEvent):void {
	trace("do Something");
}

Added to by Hernan

Install Clip


Sponsored Links: