Storage Box for Advanced IMBox (by dOCdaS) for YaBB SP1
0.3
This Mod adds a Storage to your IMBox. You can move Message from In- and Outbox in the Storage!
You can set a limit for messages in your admin settings.
This is my first mod :-) But not my least! Hope you have fun with it and no bugs !
To install this Mod:
- Run Board Mod or install this Modfile by Hand
- Put the imstore.gif into your Images directory
NOTE: You must have installed Advanced IMbox 1.1 (by dOCdaS) !!
Questions and Bugs please E-Mail to rimabo@gmx.de
Greetz to all coders and Mod User and THX to dOCdaS for help me ;)
Homey (rimabo@gmx.de)
http://www.rmb2001.de/YaBB/cgi-bin/YaBB.pl
Sources\InstantMessage.pl
sub Del_Some_IM {
if($INFO{'caller'} == 1) { open(FILE, "$memberdir/$username.msg"); }
elsif($INFO{'caller'} == 2) { open(FILE, "$memberdir/$username.outbox"); }
elsif($INFO{'caller'} == 3) { open(FILE, "$memberdir/$username.imstore"); }
if($INFO{'caller'} == 1) { fopen(FILE, ">$memberdir/$username.msg", 1); }
elsif($INFO{'caller'} == 2) { fopen(FILE, ">$memberdir/$username.outbox", 1); }
elsif($INFO{'caller'} == 3) { fopen(FILE, ">$memberdir/$username.imstore", 1); }
fclose(FILE);
if($INFO{'caller'} == 1) { $yySetLocation = qq~$cgi;action=im~; }
elsif($INFO{'caller'} == 2) { $yySetLocation = qq~$cgi;action=imoutbox~; }
elsif($INFO{'caller'} == 3) { $yySetLocation = qq~$cgi;action=imablage~; }
sub IMShow {
my(@messages);
$yytitle = $txt{'143'};
if($INFO{'caller'} == 1) { $linktext = qq~$txt{'316'}~; $callvar = "1"; fopen(FILE, "$memberdir/$username.msg"); }
else { $linktext = qq~$txt{'320'}~; $callvar = "2"; fopen(FILE, "$memberdir/$username.outbox"); }
sub IMShow {
my(@messages);
$yytitle = $txt{'143'};
if($INFO{'caller'} == 1) { $linktext = qq~$txt{'316'}~; $callvar = "1"; fopen(FILE, "$memberdir/$username.msg"); }
elsif($INFO{'caller'} == 2) { $linktext = qq~$txt{'320'}~; $callvar = "2"; fopen(FILE, "$memberdir/$username.outbox"); }
elsif($INFO{'caller'} == 3) { $linktext = qq~Storage~; $callvar = "3"; fopen(FILE, "$memberdir/$username.imstore"); }
$yymain .= qq~
$img{'im_outbox'}$menusep$img{'im_new'}$menusep$img{'im_reload'}$menusep$img{'mark_ims'}$menusep$img{'im_config'}
$yymain .= qq~
$img{'im_outbox'}$menusep$img{'im_store'}$menusep$img{'im_new'}$menusep$img{'im_reload'}$menusep$img{'mark_ims'}$menusep$img{'im_config'}