Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) YaBB Zodiac V1.1 for 2.2.3 (Read 16549 times)
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: YaBB Zodiac V1.1 for 2.2.3
Reply #15 - Oct 6th, 2008 at 9:43pm
Print Post  
Derek, you could do the Chinese Zodiac Light ... every Chinese restaurant I go into has these listed on the place mats, but they never list it as being anything except the year in determining what your sign is. There might be more to it than that in the fully accurate, but if that is all they need for the restaurants, why not for the forum?

Please note, this is only for the point of discussion. I'm not into either zodiac or Chinese zodiac, so I would not use either mod ... but thought I would share my .02 anyway.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: YaBB Zodiac V1.1 for 2.2.3
Reply #16 - Oct 6th, 2008 at 11:29pm
Print Post  
It would be easier, but you'd still have to set a year and go every twelve from that... Might be beyond me at the minute... I've seen it being done with Javascript, but I'm not too sure how to put it into Perl.
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: YaBB Zodiac V1.1 for 2.2.3
Reply #17 - Oct 15th, 2008 at 7:51pm
Print Post  
  
Back to top
 
IP Logged
 
pyragony
Junior Member
**
Offline


abgeschlafft und ausgebufft

Posts: 85
Location: Eichenau
Joined: Apr 26th, 2008
Gender: Male
Re: YaBB Zodiac V1.1 for 2.2.3
Reply #18 - Nov 2nd, 2008 at 3:52pm
Print Post  
The data in the "Zodiac.pl" (Version2.2.3) are wrong. Here the corrected data.

Quote:
###############################################################################
# Zodiac.pl                                                                   #
###############################################################################
# YaBB: Yet another Bulletin Board                                            #
# Open-Source Community Software for Webmasters                               #
# Version:        YaBB 2.2.3                                                  #
# Packaged:       June 5, 2008                                                #
# Distributed by: http://www.yabbforum.com                                    #
# =========================================================================== #
# Copyright (c) 2000-2008 YaBB (www.yabbforum.com) - All Rights Reserved.     #
# Software by:  The YaBB Development Team                                     #
#               with assistance from the YaBB community.                      #
# Sponsored by: Xnull Internet Media, Inc. - http://www.ximinc.com            #
#               Your source for web hosting, web design, and domains.         #
###############################################################################

$zodiacplver = 'YaBB 2.2.3 $Revision: 1.0 $';

LoadLanguage('Zodiac');
$zodext = "gif";

sub get_zodiac {
     my ($memdate, $type) = @_;
     if (!$type || $type eq ""){ $type = "icon"; }
     my $outsign = "";
     if ($memdate eq ""){ return; }
     my ($memmonth, $memday, $dummy) = split ('/', $memdate);
     if (($memmonth == 1 && $memday >= 21) || ($memmonth == 2 && $memday < 20)) {
           $memsign = "aquarius";
     }
     elsif (($memmonth == 2 && $memday >= 20) || ($memmonth == 3 && $memday < 21)) {
           $memsign = "pisces";
     }
     elsif (($memmonth == 3 && $memday >= 21) || ($memmonth == 4 && $memday < 21)) {
           $memsign = "aries";
     }
     elsif (($memmonth == 4 && $memday >= 21) || ($memmonth == 5 && $memday < 22)) {
           $memsign = "taurus";
     }
     elsif (($memmonth == 5 && $memday >= 22) || ($memmonth == 6 && $memday < 22)) {
           $memsign = "gemini";
     }
     elsif (($memmonth == 6 && $memday >= 22) || ($memmonth == 7 && $memday < 24)) {
           $memsign = "cancer";
     }
     elsif (($memmonth == 7 && $memday >= 24) || ($memmonth == 8 && $memday < 24)) {
           $memsign = "leo";
     }
     elsif (($memmonth == 8 && $memday >= 24) || ($memmonth == 9 && $memday < 24)) {
           $memsign = "virgo";
     }
     elsif (($memmonth == 9 && $memday >= 24) || ($memmonth == 10 && $memday < 24)) {
           $memsign = "libra";
     }
     elsif (($memmonth == 10 && $memday >= 24) || ($memmonth == 11 && $memday < 23)) {
           $memsign = "scorpio";
     }
     elsif (($memmonth == 11 && $memday >= 23) || ($memmonth == 12 && $memday < 22)) {
           $memsign = "sagittarius";
     }
     elsif (($memmonth == 12 && $memday >= 22) || ($memmonth == 1 && $memday < 21)) {
           $memsign = "capricorn";
     }
     if ($type eq "icon"){
           $outsign = qq~$zodiactxt{'sign'}: <img src="$modimgurl/Zodiac/$memsign.$zodext" align="top" alt="$zodiactxt{'sign'}: $zodiactxt{$memsign}" title="$zodiactxt{'sign'}: $zodiactxt{$memsign}" />~;
     } else {
           $outsign = $zodiactxt{$memsign};
     }
     return $outsign;
}

1;

  

Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: YaBB Zodiac V1.1 for 2.2.3
Reply #19 - Nov 2nd, 2008 at 7:58pm
Print Post  
I've already corrected this in the 2.3 version... I've corrected this one now too...

Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint