|< 1 2 >| | 16 Einträge, 2 Seiten |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
my($self,$main,$text) = @_; return if $main->{current_user}{nosmileys}; if (!exists($self->{smileys})) { $self->{smileys} = {}; foreach my $smiley (@{$main->{settings}{smileys}}) { $smiley = $smiley; my $image = undef; foreach (@$smiley) { if (!defined($image)) { $image = $_; my ($width,$height); ($width,$height) = @{$main->{settings}{images}{$image}} if defined($main->{settings}{images}{$image}); $width = (defined($width) ? " width=$width": ""); $height = (defined($height) ? " height=$height": ""); my $alt = $main->toHTML($smiley->[1]); $image = "<img src=\"$main->{settings}{urls}{imagesurl}$image.gif\" border=0$width$height alt=\"$alt\">"; } elsif ($_ ne '/hidden/') { $self->{smileys}{$main->toHTML($_)} = $image; } } } }
betterworld+2008-07-27 15:34:01--Siehe auch Ergänzungsstrich (eine lang vergessene Tugend).
http://de.wikipedia.org/wiki/Erg
Quotehm, ein bug im poard? der link erscheint nur alsCode: (dl )http://de.wikipedia.org/wiki/Erg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
smileys => [
[ 'smiley1', ':))', ':-))' , ':o))' ],
[ 'smiley', ':)' , ':-)' , ':o)' ],
[ 'wink', ';)' , ';-)' , ';o)' ],
[ 'cheesy', ':D' ],
[ 'grin', ';D' ],
[ 'angry', '):(' ],
[ 'sad', ':-(' , ':(' , ':o(' ],
[ 'cool', '8)' ],
[ 'huh', '???' ],
[ 'rtfm', ':rtfm' ],
[ 'shocked', ':-O' ],
[ 'smiley2', ':-o' ],
[ 'smiley3', ':-P' , ':oP' ],
[ 'smiley4', ':-I' , ':oI' ],
[ 'smiley5', ':-]' , ':o]' ],
[ 'smiley6', ':-[' , ':o[' ],
[ 'smiley7', ':crazy' ],
[ 'smiley8', ':dream' ],
[ 'smiley9', ':shy' ],
[ 'smiley10', ':tasty' ],
[ 'smiley11', ':o' ],
[ 'smiley12', 'O:-)' ],
[ 'smiley13', ':tea', ':coffee' ],
[ 'fist', ':fist' ],
[ 'kiss', ':kiss' ],
],
1
2
3
4
5
6
my ($image, @texte) = @$smiley;
$image = lc $image;
foreach (@texte) {
# tu was...
}
|< 1 2 >| | 16 Einträge, 2 Seiten |