 |
 |
 |
 |
#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
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#36042 - 01/21/00 12:00 PM
Re: Smilie-settings control panel add-on
|
Junior Member
Registered: 03/20/01
Posts: 200
|
Found another problem: When you use a smilie like :drunk: the : d (without space) turns into  runk I didn't have this problem when I was adding smilies manual ------------------ Cougar's here, so have no fear Webmaster of www.artbeast.de
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#36047 - 01/21/00 07:04 PM
Re: Smilie-settings control panel add-on
|
Member
Registered: 01/03/00
Posts: 90
Loc: Richmond, VA, USA
|
This hack failed to work correctly - I used the latest text file download. Postings.cgi ran all the way through, but my posts looked like this:  H  e  l  l  o  (repeat ad nauseum) I tried shifting some of the code around, but frankly, I'm avoiding this hack until it's PERFECT. ilya, can you please move this to Beta until all of the issues are worked out? ------------------ - Armage Bedar Administrator, SW-RPG HoloNet Discussion Forums Moderator, UltimateBB Code Hackers' Hideout
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#36049 - 01/22/00 10:55 AM
Re: Smilie-settings control panel add-on
|
Junior Member
Registered: 03/20/01
Posts: 200
|
Ok, sorry, last one wasn't a bug, my fault But I think I've found a REAL bug now. Namly: When you edit a message the  smilie turns into :/) or ;/) and :/( I hope you can fix this ------------------ Cougar's here, so have no fear Webmaster of www.artbeast.de
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#36052 - 02/14/00 01:42 PM
Re: Smilie-settings control panel add-on
|
Junior Member
Registered: 02/14/00
Posts: 6
|
and add right after it: This change should be in *2* places... one in the Smilies subroutine and one in the ConvertSmilies subroutine. Gotta remember to escape those special characters!!![/b]<HR></BLOCKQUOTE> Has this been updated in the current file or does this need to be added still? Also, I can't find any mention of the sub VerifyAdmin in ubb_library.pl...could it be because of the private messages hack? Thanks! ------------------ http://diamondtalk.com P.S. I think I just figured it out. The instructions said ubb_library.pl but they meant ubb_library2.pl.
|
|
Top
|
|
|
|
 |
 |
 |
 |
| |