I'm surprised with your positive reactions, because it just won't work on this board
![[Linked Image]](https://ubbdev.com/ubb/mad.gif)
Maybe someone of you wants to chew on this problem, cause I'll be away for 2 days...
The problem lies within the sub smilie and sub smilieconvert routines:
sub Smilies {
my $Smilie = shift;
open (FILE, "<$MembersPath/SmilieDB.cgi") or die ("Can't open file: SmilieDB.cgi!");
while( ) {
push(@smilielines,$_);
}
close(FILE);
$Smilie =~ s/<;)/<; )/isg;
$Smilie =~ s/>;)/>; )/isg;
foreach $smilieline (@smilielines) {
chomp($smilieline);
($smiliecode, $smiliepic)=split(/|^|/,$smilieline);
$Smilie =~ s,$smiliecode,
,isg;
}
return($Smilie);
}
sub ConvertSmilies {
my $ConvertedSmilie = shift;
open (FILE, "<$MembersPath/SmilieDB.cgi") or die ("Can't open file: SmilieDB.cgi!");
while( ) {
push(@smilielines,$_);
}
close(FILE);
$ConvertedSmilie =~ s/
/nrn/isg;
$ConvertedSmilie =~ s/
/n/isg;
foreach $smilieline (@smilielines) {
chomp($smilieline);
($smiliecode, $smiliepic)=split(/|^|/,$smilieline);
$ConvertedSmilie =~ s,
,$smiliecode,isg;
}
return($ConvertedSmilie);
}The screen goes blank after posting...
The smilies are stored in this way:
|^|
Thanks in advance! ![[Linked Image]](https://ubbdev.com/ubb/smile.gif)
btw: For those that allready installed the hack; I changed the smilie and convertsmilie routines (ubb_library.pl). Those changes are absolutely necessery.