Drupal: Submit Button Change Name
function TPL_webform_form_ID($form) {
$form['submit']['#value'] = t('Send');
return drupal_render($form);
}
Added to Drupal by Steven Schulz
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 Textpattern by Patrick Lefevre
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 Textpattern by Patrick Lefevre
Meta description and keyword tag
<meta name="description" content="" />
<meta name="keywords" content="" />
Added to HTML by Axel Metayer
Exclude Pages
<ul>
<?php wp_list_pages('exclude=17,38' ); ?>//here insert the ID of the Page(s). More than one: 17, 23
</ul>
Mouse Click Event AS3
myButton.addEventListener(MouseEvent.CLICK, myFunction, false, 0, true);
public function myFunction(e:MouseEvent):void {
trace("do Something");
}