forked from friendica/friendica-addons
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: adult_smile addon updating packages fix spelling from copy and paste, Twitter is not StatusNet (not yet anyway) * master:
This commit is contained in:
commit
634183ac2f
BIN
adult_smile.tgz
Normal file
BIN
adult_smile.tgz
Normal file
Binary file not shown.
34
adult_smile/adult_smile.php
Normal file
34
adult_smile/adult_smile.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
/*
|
||||
* Name: Adult Smilies
|
||||
* Description: Smily icons that could or should not be included in core
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
*
|
||||
* This is a template for how to extend the "smily" code.
|
||||
*
|
||||
*/
|
||||
|
||||
function adult_smile_install() {
|
||||
register_hook('smilie', 'addon/adult_smile/adult_smile.php', 'adult_smile_smilies');
|
||||
}
|
||||
|
||||
function adult_smile_uninstall() {
|
||||
unregister_hook('smilie', 'addon/adult_smile/adult_smile.php', 'adult_smile_smilies');
|
||||
}
|
||||
|
||||
|
||||
|
||||
function adult_smile_smilies(&$a,&$b) {
|
||||
|
||||
$b['texts'][] = '(o)(o)';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/adult_smile/icons/tits.gif' . '" alt="' . '(o)(o)' . '" />';
|
||||
|
||||
$b['texts'][] = '(.)(.)';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/adult_smile/icons/tits.gif' . '" alt="' . '(.)(.)' . '" />';
|
||||
|
||||
$b['texts'][] = ':bong';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/adult_smile/icons/bong.gif' . '" alt="' . ':bong' . '" />';
|
||||
|
||||
|
||||
}
|
BIN
adult_smile/icons/bong.gif
Normal file
BIN
adult_smile/icons/bong.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
adult_smile/icons/tits.gif
Normal file
BIN
adult_smile/icons/tits.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 696 B |
BIN
blackout.tgz
BIN
blackout.tgz
Binary file not shown.
BIN
blockem.tgz
BIN
blockem.tgz
Binary file not shown.
BIN
buglink.tgz
BIN
buglink.tgz
Binary file not shown.
Binary file not shown.
BIN
convert.tgz
BIN
convert.tgz
Binary file not shown.
BIN
dwpost.tgz
BIN
dwpost.tgz
Binary file not shown.
BIN
editplain.tgz
BIN
editplain.tgz
Binary file not shown.
BIN
extcron.tgz
BIN
extcron.tgz
Binary file not shown.
BIN
facebook.tgz
BIN
facebook.tgz
Binary file not shown.
BIN
geonames.tgz
BIN
geonames.tgz
Binary file not shown.
BIN
impressum.tgz
BIN
impressum.tgz
Binary file not shown.
BIN
js_upload.tgz
BIN
js_upload.tgz
Binary file not shown.
BIN
ldapauth.tgz
BIN
ldapauth.tgz
Binary file not shown.
BIN
ljpost.tgz
BIN
ljpost.tgz
Binary file not shown.
BIN
membersince.tgz
BIN
membersince.tgz
Binary file not shown.
BIN
numfriends.tgz
BIN
numfriends.tgz
Binary file not shown.
Binary file not shown.
BIN
pageheader.tgz
BIN
pageheader.tgz
Binary file not shown.
BIN
poormancron.tgz
BIN
poormancron.tgz
Binary file not shown.
BIN
posterous.tgz
BIN
posterous.tgz
Binary file not shown.
BIN
qcomment.tgz
BIN
qcomment.tgz
Binary file not shown.
BIN
randplace.tgz
BIN
randplace.tgz
Binary file not shown.
BIN
showmore.tgz
BIN
showmore.tgz
Binary file not shown.
BIN
sniper.tgz
BIN
sniper.tgz
Binary file not shown.
BIN
statusnet.tgz
BIN
statusnet.tgz
Binary file not shown.
BIN
tictac.tgz
BIN
tictac.tgz
Binary file not shown.
BIN
tumblr.tgz
BIN
tumblr.tgz
Binary file not shown.
BIN
twitter.tgz
BIN
twitter.tgz
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: Twitter Connector
|
||||
* Description: Relay public postings to a connected StatusNet account
|
||||
* Description: Relay public postings to a connected Twitter account
|
||||
* Version: 1.0.2
|
||||
* Author: Tobias Diekershoff <https://diekershoff.homeunix.net/friendika/profile/tobias>
|
||||
*/
|
||||
|
@ -288,7 +288,7 @@ function twitter_post_hook(&$a,&$b) {
|
|||
// longer so we give them 10 characters extra
|
||||
$max_char = 130; // max. length for a tweet
|
||||
// we will only work with up to two times the length of the dent
|
||||
// we can later send to StatusNet. This way we can "gain" some
|
||||
// we can later send to Twitter. This way we can "gain" some
|
||||
// information during shortening of potential links but do not
|
||||
// shorten all the links in a 200000 character long essay.
|
||||
$tmp = substr($b['body'], 0, 2*$max_char);
|
||||
|
|
Binary file not shown.
BIN
viewsrc.tgz
BIN
viewsrc.tgz
Binary file not shown.
BIN
widgets.tgz
BIN
widgets.tgz
Binary file not shown.
BIN
wppost.tgz
BIN
wppost.tgz
Binary file not shown.
BIN
yourls.tgz
BIN
yourls.tgz
Binary file not shown.
Loading…
Reference in a new issue