Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic birthday mod (Read 1527 times)
Festah
Guest


birthday mod
Feb 17th, 2002 at 12:12pm
Print Post  
ok, i want to make some txt like this:

Happy Birthday: xxx, xxx, xxx.

in the users online table.

i downloaded the birthday mod, but i dont want all the other stuff with yunno admin and all that, so i tried putting this code (from the birthday mod, slightly modified cos i didnt want the age thing) in the BoardIndex.pl:

##      require "$sourcedir/Subs.pl";
##      &timeformat($date);
##      ($tocheckm, $tocheckd, $years) = split(/\//, $date);
##      ($year, $trash) = split(/ /, $yeary);

##      fopen(FILE, "$memberdir/memberlist.txt");
##      @members = <FILE>;
##      fclose(FILE);
##      foreach $usernames (@members) {
##            chomp $usernames;
##            fopen(MEMBERFILEREAD,"$memberdir/$usernames.dat");
##            @userbd = <MEMBERFILEREAD>;
##            fclose(MEMBERFILEREAD);
##            chomp $userbd[16];
##            ($matchm, $matchd, $useryear) = split(/\//, $userbd[16]);
##            if(($tocheckm == $matchm) && ($tocheckd == $matchd)) {$usersb .= qq~ $userprofile{$name}->[1]<font size="1">,</font> \n~; }
##      }

##      if($usersb eq '') {
##      $usersb = "No Birthdays Today";
##      }

then in the users online table:

Happy Birthday: $usersb

(yes i know is commented out)

but it does not work any ideas?

thanks in advance.
  
Back to top
 
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: birthday mod
Reply #1 - Feb 17th, 2002 at 1:28pm
Print Post  
## ($year, $trash) = split(/ /, $yeary);

$yeary should be $years

Also try

if($usersb eq "") {

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
Festah
Guest


Re: birthday mod
Reply #2 - Feb 17th, 2002 at 3:30pm
Print Post  
hmmmmm, well its doing more now, but its always saying the only person with a birthday is the last person in the users online list.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint