 |
 |
 |
 |
#36025 - 01/19/00 09:21 PM
Re: Smilie-settings control panel add-on
|
Moderator
Registered: 08/11/00
Posts: 182
Loc: yes
|
Ok, I made some essential changes; Anyone who allready installed this hack should do the update; Anyone who will, just follow the instructions; they're updated. If you've allready installed it: - Redownload the smilies.txt, make the necessary changes (perl-path etc), rename to smilies.cgi and upload - open up ubb_library.pl and search for $SmilieDB and replace with: $MembersPath/SmilieDB.cgi It should be there 2 times. Then search for $NonCGIURL/icons/$smiliepic and replace with $SmilieURL/$smiliepic This should also be there twice. That's it 
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#36028 - 01/20/00 06:25 AM
Re: Smilie-settings control panel add-on
|
Moderator
Registered: 08/11/00
Posts: 182
Loc: yes
|
I'm surprised with your positive reactions, because it just won't work on this board  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(<FILE> ) { push(@smilielines,$_); } close(FILE);
$Smilie =~ s/<;)/<; )/isg; $Smilie =~ s/>;)/>; )/isg;
foreach $smilieline (@smilielines) { chomp($smilieline); ($smiliecode, $smiliepic)=split(/|^|/,$smilieline); $Smilie =~ s,$smiliecode,<img src="$SmilieURL/$smiliepic">,isg; } return($Smilie); }
sub ConvertSmilies { my $ConvertedSmilie = shift;
open (FILE, "<$MembersPath/SmilieDB.cgi") or die ("Can't open file: SmilieDB.cgi!"); while(<FILE> ) { push(@smilielines,$_); } close(FILE);
$ConvertedSmilie =~ s/
/nrn/isg; $ConvertedSmilie =~ s/ /n/isg;
foreach $smilieline (@smilielines) { chomp($smilieline); ($smiliecode, $smiliepic)=split(/|^|/,$smilieline); $ConvertedSmilie =~ s,<img src="$SmilieURL/$smiliepic">,$smiliecode,isg; } return($ConvertedSmilie); }The screen goes blank after posting... The smilies are stored in this way: <smiliecode>|^|<picturename> Thanks in advance!  btw: For those that allready installed the hack; I changed the smilie and convertsmilie routines (ubb_library.pl). Those changes are absolutely necessery.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|