Changeset 1285

Show
Ignore:
Timestamp:
02/12/11 17:47:46 (2 years ago)
Author:
Torben Brodt
Message:

move twitter base package

Files:
3 added
7 modified
1 moved

Legend:

Unmodified
Added
Removed
  • bbcode.jsfiddle/bbcodes.xml

    r1275 r1285  
    66                        <classname>JsfiddleBBCode</classname> 
    77                        <allowedchildren>none</allowedchildren> 
     8                        <attributes> 
     9                                <attribute name="0"> 
     10                                        <required>0</required> 
     11                                </attribute> 
     12                        </attributes> 
    813                        <sourcecode>0</sourcecode> 
    914                </bbcode> 
  • bbcode.jsfiddle/files/lib/data/message/bbcode/JsfiddleBBCode.class.php

    r1275 r1285  
    1717        public function getParsedTag($openingTag, $content, $closingTag, BBCodeParser $parser) { 
    1818                $code = $content; 
    19                 $code = preg_replace('/[^0-9A-Z]+/', '', $code); 
     19                $code = preg_replace('/[^0-9A-Za-z\/]+/', '', $code); 
    2020                $code = StringUtil::encodeHTML($code); 
    2121 
     22                $format = isset($openingTag['attributes'][0]) ? $openingTag['attributes'][0].'/' : 'result,js,html,css/'; 
     23 
    2224                if ($parser->getOutputType() == 'text/html') { 
    23                         return '<iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/'.$code.'/embedded/"></iframe>'; 
     25                        return '<iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/'.$code.'/embedded/'.$format.'"></iframe>'; 
    2426                } 
    2527                else if ($parser->getOutputType() == 'text/plain') { 
  • buddyloo/package.xml

    r1077 r1285  
    77                <packagedescription language="de"><![CDATA[Buddy System fÃŒr das WCF. Freundschaften funktionieren nur in beide Richtungen. Das GegenÃŒber hat die Wahl zum ablehnen/akzeptieren der Freunschafts-Einladung.]]></packagedescription> 
    88                <packagedescription language="fr"><![CDATA[SystÚme d’amitié pour le WCF. Les demandes d’amitié peuvent être acceptées ou refusées.]]></packagedescription> 
    9                 <version>1.0.0</version> 
     9                <version>1.0.1</version> 
    1010                <date>DATE</date> 
    1111                <plugin>com.woltlab.wcf</plugin> 
     
    3131                <!--<packageinstallationplugins>pip.tar</packageinstallationplugins>//--> 
    3232                <files>files.tar</files> 
     33                <cronjobs>cronjobs.xml</cronjobs> 
    3334                <templates>templates.tar</templates> 
    3435                <eventlistener>eventlistener.xml</eventlistener> 
     
    4546        </instructions> 
    4647         
     48        <instructions type="update" fromversion="1.0.0"> 
     49                <files>files.tar</files> 
     50                <cronjobs>cronjobs.xml</cronjobs> 
     51        </instructions> 
     52         
    4753        <instructions type="update" fromversion="0.9.8"> 
    4854                <files>files.tar</files> 
     55                <cronjobs>cronjobs.xml</cronjobs> 
    4956                <templates>templates.tar</templates> 
    5057        </instructions> 
     
    5259        <instructions type="update" fromversion="0.9.7 pl 3"> 
    5360                <files>files.tar</files> 
     61                <cronjobs>cronjobs.xml</cronjobs> 
    5462                <templates>templates.tar</templates> 
    5563        </instructions> 
     
    5765        <instructions type="update" fromversion="0.9.7 pl 2"> 
    5866                <files>files.tar</files> 
     67                <cronjobs>cronjobs.xml</cronjobs> 
    5968                <templates>templates.tar</templates> 
    6069        </instructions> 
     
    6271        <instructions type="update" fromversion="0.9.7 pl 1"> 
    6372                <files>files.tar</files> 
     73                <cronjobs>cronjobs.xml</cronjobs> 
    6474                <templates>templates.tar</templates> 
    6575        </instructions> 
     
    6777        <instructions type="update" fromversion="0.9.7"> 
    6878                <files>files.tar</files> 
     79                <cronjobs>cronjobs.xml</cronjobs> 
    6980                <templates>templates.tar</templates> 
    7081        </instructions> 
     
    7283        <instructions type="update" fromversion="0.9.5 pl 2"> 
    7384                <files>files.tar</files> 
     85                <cronjobs>cronjobs.xml</cronjobs> 
    7486                <templates>templates.tar</templates> 
    7587                <eventlistener>eventlistener.xml</eventlistener> 
  • de.easy-coding.wcf.twitter/files/lib/util/TwitterUtil.class.php

    r769 r1285  
    9696         
    9797        function getRateLimit($format, $since_id = 0) { 
    98                 $api_call = sprintf("http://twitter.com/account/rate_limit_status.%s", $format); 
     98                $api_call = sprintf("account/rate_limit_status.%s", $format); 
     99                return $this->APICall($api_call); 
     100        } 
     101         
     102        function getRateLimit($format, $since_id = 0) { 
     103                $api_call = sprintf("account/rate_limit_status.%s", $format); 
     104                return $this->APICall($api_call); 
     105        } 
     106         
     107        function getMentions($format, $since_id = 0) { 
     108                $api_call = sprintf("statuses/mentions.%s", $format); 
    99109                return $this->APICall($api_call); 
    100110        } 
    101111         
    102112        function getPublicTimeline($format, $since_id = 0) { 
    103                 $api_call = sprintf("http://twitter.com/statuses/public_timeline.%s", $format); 
     113                $api_call = sprintf("statuses/public_timeline.%s", $format); 
    104114                if ($since_id > 0) { 
    105115                        $api_call .= sprintf("?since_id=%d", $since_id); 
     
    110120        function getFriendsTimeline($format, $id = NULL, $since = NULL) { 
    111121                if ($id != NULL) { 
    112                         $api_call = sprintf("http://twitter.com/statuses/friends_timeline/%s.%s", $id, $format); 
     122                        $api_call = sprintf("statuses/friends_timeline/%s.%s", $id, $format); 
    113123                } 
    114124                else { 
    115                         $api_call = sprintf("http://twitter.com/statuses/friends_timeline.%s", $format); 
     125                        $api_call = sprintf("statuses/friends_timeline.%s", $format); 
    116126                } 
    117127                if ($since != NULL) { 
     
    123133        function getUserTimeline($format, $id = NULL, $count = 20, $since = NULL) { 
    124134                if ($id != NULL) { 
    125                         $api_call = sprintf("http://twitter.com/statuses/user_timeline/%s.%s", $id, $format); 
     135                        $api_call = sprintf("statuses/user_timeline/%s.%s", $id, $format); 
    126136                } 
    127137                else { 
    128                         $api_call = sprintf("http://twitter.com/statuses/user_timeline.%s", $format); 
     138                        $api_call = sprintf("statuses/user_timeline.%s", $format); 
    129139                } 
    130140                if ($count != 20) { 
     
    138148         
    139149        function showStatus($format, $id) { 
    140                 $api_call = sprintf("http://twitter.com/statuses/show/%d.%s", $id, $format); 
     150                $api_call = sprintf("statuses/show/%d.%s", $id, $format); 
    141151                return $this->APICall($api_call); 
    142152        } 
     
    144154        function updateStatus($format, $status) { 
    145155                $status = urlencode(stripslashes(urldecode($status))); 
    146                 $api_call = sprintf("http://twitter.com/statuses/update.%s?status=%s", $format, $status); 
     156                $api_call = sprintf("statuses/update.%s?status=%s", $format, $status); 
    147157                return $this->APICall($api_call, true, true); 
    148158        } 
    149159         
    150160        function getReplies($format, $page = 0) { 
    151                 $api_call = sprintf("http://twitter.com/statuses/replies.%s", $format); 
     161                $api_call = sprintf("statuses/replies.%s", $format); 
    152162                if ($page) { 
    153163                        $api_call .= sprintf("?page=%d", $page); 
     
    157167         
    158168        function destroyStatus($format, $id) { 
    159                 $api_call = sprintf("http://twitter.com/statuses/destroy/%d.%s", $id, $format); 
     169                $api_call = sprintf("statuses/destroy/%d.%s", $id, $format); 
    160170                return $this->APICall($api_call, true); 
    161171        } 
     
    163173        function getFriends($format, $page = 1) { 
    164174                // take care of the id parameter 
    165                 $api_call = sprintf("http://twitter.com/statuses/friends.%s%s", $format, "?page=$page"); 
     175                $api_call = sprintf("statuses/friends.%s%s", $format, "?page=$page"); 
    166176                return $this->APICall($api_call, true); 
    167177        } 
    168178         
    169179        function getFollowers($format, $page = 1) { 
    170                 $api_call = sprintf("http://twitter.com/statuses/followers.%s%s", $format, "?page=$page"); 
     180                $api_call = sprintf("statuses/followers.%s%s", $format, "?page=$page"); 
    171181                return $this->APICall($api_call, true); 
    172182        } 
    173183         
    174184        function getFeatured($format) { 
    175                 $api_call = sprintf("http://twitter.com/statuses/featured.%s", $format); 
     185                $api_call = sprintf("statuses/featured.%s", $format); 
    176186                return $this->APICall($api_call); 
    177187        } 
     
    179189        function showUser($format, $id, $email = NULL) { 
    180190                if ($email == NULL) { 
    181                         $api_call = sprintf("http://twitter.com/users/show/%s.%s", $id, $format); 
     191                        $api_call = sprintf("users/show/%s.%s", $id, $format); 
    182192                } 
    183193                else { 
    184                         $api_call = sprintf("http://twitter.com/users/show.xml?email=%s", $email); 
     194                        $api_call = sprintf("users/show.xml?email=%s", $email); 
    185195                } 
    186196                return $this->APICall($api_call, true); 
     
    188198         
    189199        function getMessages($format, $since = NULL, $since_id = 0, $page = 1) { 
    190                 $api_call = sprintf("http://twitter.com/direct_messages.%s", $format); 
     200                $api_call = sprintf("direct_messages.%s", $format); 
    191201                if ($since != NULL) { 
    192202                        $api_call .= sprintf("?since=%s", urlencode($since)); 
     
    202212         
    203213        function getSentMessages($format, $since = NULL, $since_id = 0, $page = 1) { 
    204                 $api_call = sprintf("http://twitter.com/direct_messages/sent.%s", $format); 
     214                $api_call = sprintf("direct_messages/sent.%s", $format); 
    205215                if ($since != NULL) { 
    206216                        $api_call .= sprintf("?since=%s", urlencode($since)); 
     
    217227        function newMessage($format, $user, $text) { 
    218228                $text = urlencode(stripslashes(urldecode($text))); 
    219                 $api_call = sprintf("http://twitter.com/direct_messages/new.%s?user=%s&text=%s", $format, $user, $text); 
     229                $api_call = sprintf("direct_messages/new.%s?user=%s&text=%s", $format, $user, $text); 
    220230                return $this->APICall($api_call, true, true); 
    221231        } 
    222232         
    223233        function destroyMessage($format, $id) { 
    224                 $api_call = sprintf("http://twitter.com/direct_messages/destroy/%s.%s", $id, $format); 
     234                $api_call = sprintf("direct_messages/destroy/%s.%s", $id, $format); 
    225235                return $this->APICall($api_call, true); 
    226236        } 
    227237         
    228238        function createFriendship($format, $id) { 
    229                 $api_call = sprintf("http://twitter.com/friendships/create/%d.%s", $id, $format); 
     239                $api_call = sprintf("friendships/create/%d.%s", $id, $format); 
    230240                return $this->APICall($api_call, true, true); 
    231241        } 
    232242         
    233243        function destroyFriendship($format, $id) { 
    234                 $api_call = sprintf("http://twitter.com/friendships/destroy/%s.%s", $id, $format); 
     244                $api_call = sprintf("friendships/destroy/%s.%s", $id, $format); 
    235245                return $this->APICall($api_call, true, true); 
    236246        } 
    237247         
    238248        function verifyCredentials($format = NULL) { 
    239                 $api_call = sprintf("http://twitter.com/account/verify_credentials%s", ($format != NULL) ? sprintf(".%s", $format) : NULL); 
     249                $api_call = sprintf("account/verify_credentials%s", ($format != NULL) ? sprintf(".%s", $format) : NULL); 
    240250                return $this->APICall($api_call, true); 
    241251        } 
    242252         
    243253        function endSession() { 
    244                 $api_call = "http://twitter.com/account/end_session"; 
     254                $api_call = "account/end_session"; 
    245255                return $this->APICall($api_call, true); 
    246256        } 
    247257         
    248258        function getArchive($format, $page = 1) { 
    249                 $api_call = sprintf("http://twitter.com/account/archive.%s", $format); 
     259                $api_call = sprintf("account/archive.%s", $format); 
    250260                if ($page > 1) { 
    251261                        $api_call .= sprintf("?page=%d", $page); 
     
    256266        function getFavorites($format, $id = NULL, $page = 1) { 
    257267                if ($id == NULL) { 
    258                         $api_call = sprintf("http://twitter.com/favourings.%s", $format); 
     268                        $api_call = sprintf("favourings.%s", $format); 
    259269                } 
    260270                else { 
    261                         $api_call = sprintf("http://twitter.com/favourings/%s.%s", $id, $format); 
     271                        $api_call = sprintf("favourings/%s.%s", $id, $format); 
    262272                } 
    263273                if ($page > 1) { 
     
    268278         
    269279        function createFavorite($format, $id) { 
    270                 $api_call = sprintf("http://twitter.com/favourings/create/%d.%s", $id, $format); 
     280                $api_call = sprintf("favourings/create/%d.%s", $id, $format); 
    271281                return $this->APICall($api_call, true); 
    272282        } 
    273283         
    274284        function destroyFavorite($format, $id) { 
    275                 $api_call = sprintf("http://twitter.com/favourings/destroy/%d.%s", $id, $format); 
     285                $api_call = sprintf("favourings/destroy/%d.%s", $id, $format); 
    276286                return $this->APICall($api_call, true); 
    277287        } 
    278288         
    279289        private function APICall($api_url, $require_credentials = false, $http_post = false) { 
     290                $api_url = 'http://api.twitter.com/1/'; 
     291         
    280292                $curl_handle = curl_init(); 
    281293                curl_setopt($curl_handle, CURLOPT_URL, $api_url); 
  • solr/templates/solr.tpl

    r1281 r1285  
    9292                                <div class="container-1{if $singleColumn == false} column first{/if}"> 
    9393                                        <div class="columnInner"> 
    94                                                 <div class="contentBox"> 
     94                                                <div class="contentBox" id="searchResults"> 
    9595         
    9696                                                {foreach from=$messages item=item} 
     
    134134                </div> 
    135135        </div> 
     136        <script type="text/javascript"> 
     137        onloadEvents.push(function() { 
     138                if(_gaq) { 
     139                        var links = $$('#searchResults a'); 
     140                        for(var i=0; i<links.length; i++) { 
     141                                links[i].onclick = function(href) { 
     142                                        return function () { 
     143                                                _gaq.push(['_trackEvent', 'search', 'solr', href]); 
     144                                        }; 
     145                                }(links[i].href); 
     146                        } 
     147                } 
     148        }); 
     149        </script> 
    136150         
    137151        <div class="contentFooter"> 
  • taggingreloaded/install.sql

    r1139 r1285  
    77  `userID` int(10) UNSIGNED NOT NULL DEFAULT '0', 
    88  `weight` tinyint(1) UNSIGNED NOT NULL DEFAULT '0', 
    9   PRIMARY KEY (`taggableID`,`languageID`,`objectID`,`userID`,`tagID`), 
     9  PRIMARY KEY (`taggableID`,`languageID`,`objectID`,`tagID`,`userID`), 
    1010  KEY `taggableID` (`taggableID`,`languageID`,`tagID`), 
    1111  KEY `tagID` (`tagID`,`taggableID`), 
  • twitter/package.xml

    r1180 r1285  
    1818         
    1919        <requiredpackages> 
    20                 <requiredpackage file="requirements/de.easy-coding.wcf.twitter.tar.gz" minversion="1.0.0">de.easy-coding.wcf.twitter</requiredpackage> 
     20                <requiredpackage>de.easy-coding.wcf.twitter</requiredpackage> 
    2121                <requiredpackage minversion="1.0.0">com.woltlab.wcf</requiredpackage> 
    2222                <requiredpackage minversion="2.0.0">com.woltlab.wbb</requiredpackage>