Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'statusnet'

2012388 - StatusNet build number: statusnet
  1. echo "<?php \$config['site']['build'] = '`date -u +%Y%m%dT%H%M%S`';" > /etc/statusnet/buildno.php
1949620 - javascript addon: hook js addon statusnet
  1. function MyInlineJavaScript($action)
  2. {
  3.     $action->inlineScript('alert("Here is an alert!")');
  4.     return true;
  5. }
  6.  
  7. function MyJavaScriptFile($action)
  8. {
  9.  
1942888 - draft of a comment: error blog validation statusnet
  1. FWIW if re-ordering what's in the video, I'd begin with what's at the 0:25 mark.
  2.  
  3. Make it immediately understandable that:
  4.  
  5. * StatusNet can do more than Twitter
  6.  
  7. * StatusNet can do your tweets for you
  8.  
  9.  
1809743 - Age plugin for StatusNet: statusnet registration extrafields
  1. <?php
  2.  
  3. class AgePlugin extends Plugin
  4. {
  5.     function onCheckSchema() {
  6.         $schema = Schema::get();
  7.         $schema->ensureTable('extra_fields',
  8.                              array(new ColumnDef('user_id', 'integer',
  9.  
1759358 - turn off paths: statusnet disable paths
  1. $_pi = array_search('paths', $config['admin']['panels']);
  2. if ($_pi) {
  3.     unset($config['admin']['panels'][$_pi]);
  4. }
1665331 - Example using check password: event statusnet checkpassword
  1. function ReverseNicknameAsPassword($nickname, $password, &$user)
  2. {
  3.     $match = User::staticGet('nickname', $nickname);
  4.                
  5.     if (!empty($match) && strrev($nickname) == $password) {
  6.         $user = $match;
  7.     } else {
  8.         $user = null;
  9.  
1647156 - sample OMB 0.2 entry: statusnet omb
  1. <entry xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0"
  2.        xmlns:omb="http://openmicroblogging.org/atom">
  3.       <title>BUGabundo's status from 2009-10-14</title>
  4.       <id>http://identi.ca/notice/12345</id>
  5.       <updated>2009-10-14T18:30:02Z</updated>
  6.       <author><name>BUGabundo</name></author>
  7.       <content type="text">@leo check out !identica on #mysite</content>
  8.       <content type="text/html">@<a href='http://army.twit.tv/leolaporte'>leo</a> check out !<a href='http://mi.bugabundo.net/group/identica'>identica</a> on #<a href='http://mi.bugabundo.net/tag/mysite'>mysite</a></content>
  9.  
1643852 - Change StatusNet logo height: hook height width logo statusnet
  1. // Change the values here
  2.  
  3. $logo_width = 1000;
  4. $logo_height = 320;
  5.  
  6. function MyLogoLayout($action)
  7. {
  8.     global $logo_width, $logo_height;
  9.  
1592507 - add custom JS to StatusNet: javascript hook event js statusnet endshowscripts
  1. // This function can have any name
  2.  
  3. function AddMyScript($action)
  4. {
  5.     // $action->script('path') puts in a script link
  6.  
  7.     // I recommend putting custom code in the local directory
  8.     // like this
  9.  
worth-right
fantasy-obligation
fantasy-obligation