Zodiac and 13 Moon Starsigns

Started by koji, November 10, 2006, 10:32:17 AM

Previous topic - Next topic

koji

Link to Mod
Rate this Mod

This is exactly the same as my Zodiac Starsigns mod, except that this mod includes 13 Moon calendar starsigns as well as the more conventional Zodiac starsigns.

If a member has supplied their birth date, then their relevant starsigns will be calculated and displayed on their Profile and  by each of their Posts.

On their Profile the sign is displayed as text and an image. Within a Topic, their signs are displayed as images only, underneath their avatar.

The 13 Moon calendar is a much more accurate and sychronistic calendar than the familiar Gregorian calendar. To learn more about it check out http://www.tortuga.com

Kindred

Instead of:
$settings['images_url']  . '/13moon/

you should use:
$settings['default_images_url']  . '/13moon/

(etc)

this means that you only have to load the images into one location (the default/images/yourdir directory) and every theme can use them...   that way, the people using different themses only have to modify their other themes with the mod additions and not any of the basic mod changes...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

TechnoDragon

I ilike the concept of this mod, but is there a version without the 13moon part?
Don't tell me to get into shape...I have a shape...It is round!


Vinspire

This mods & concept sounds uber kewl but what is the function of the 13 moon sign ?  :D

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Laibeus Lord

Hi,

   Request and suggestion... add Chinese Zodiacs?  Thanks :D

Happy Holidays!

mohoganybrwn

Hi.  I was wondering how I could edit this mod, so that when displayed in a post, the person will see "Zodiac" by their sign and the same for the other images... a lot of my members are confused.

Kindred

sure...   add some text strings into modification.english.php and then call those strings in display.template.php
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mohoganybrwn

Ok, kool, but exactly how would I go about doing that? I'm a newbie with php, so I don't know the proper coding.

dheeraj

Hey..I hav installed the Mod Zodiac 13Moon,,The Zodiac signs are appearing on forum Next to the posts but the Earth Family was not Appearing..it is appearing only in Profile...Can ANy one Help Me

Here are Some Screenshots



kim333

#10
curious also...shows up (complete) in profile, but nothing of it is appearing next to the posts.
help please.

p.s. I LOVE THIS MOD!!!

edit: i just noticed that it's showing up in the cerebus theme, but not the default theme(s). strange. in cerebus the words show up, but no images.

still looking for help as this is my favorite element. thanx

Aaristia

This post is, more or less, taken exactly from this thread. But since I don't believe it will be moved or merged...

I recently installed this mod, among others, and my error log is filled to the brim with error messages of the following nature:

8: Undefined index: tone
File: /home/noodleni/public_html/garnetisland/Themes/default/Display.template.php (eval?)
Line: 364

8: Undefined index: tone_desc
File: /home/noodleni/public_html/garnetisland/Themes/default/Display.template.php (eval?)
Line: 364

8: Undefined index: seal
File: /home/noodleni/public_html/garnetisland/Themes/default/Display.template.php (eval?)
Line: 363


...And so on.  Line 363 and 364 in my Display template look like this:
$seal = '<img src="Themes/global_images/13moon/seal_' . $seal_img_name . '.png" width="25" height="21" title="' . $moon['seal'] . ' ' . $moon['seal_desc'] . '" alt="' . $moon['seal'] . '" style="border:0;clear:left;float:left;margin:0;vertical-align:middle;" />';
               
$tone = '<img src="Themes/global_images/13moon/tone_' . $tone_img_name . '.png" width="25" height="21" title="' . $moon['tone'] . ': ' . $moon['tone_desc'] . '" alt="' . $moon['tone'] . '" style="border:0;clear:left;float:left;margin:0;vertical-align:middle;" />';


Can anyone shed some light on where I'd check to see if things are declared properly? Or is more information needed?


kim333

okay. i have the images showing up now, but i'm getting the same thing with the errors.

there was 666 thousand pages this morning (for about a months worth of operation), and since purging this AM...it's now up to 199 pages!!!!

same errors:
8: Undefined index: tone
8: Undefined index: tone_desc
8: Undefined index: seal
8: Undefined index: seal_desc
8: Undefined index: tone_num
etc etc...

any help PLEASE & TY!!!

Osmonicar

#13
LS

I have made a dutch translation of all the words in de diverend  arrays used in the subs.php. It's no problem to make a dutch version but what I like is a Version that's multy languege (English or/and Dutch) based on the users languege settings.

Who will help me her is the code I transladed:


[pre]function get13moon($d, $m, $y, $verbose=false){    if ( ! checkdate($m,$d,$y)) return array();    $tone_array = array(0,    'Magnetic',    'Lunar',    'Electric',    'Self-Existing',    'Overtone',    'Rhythmic',    'Resonant',    'Galactic',    'Solar',    'Planetary',    'Spectral',    'Crystal',    'Cosmic');    $tone_array_dutch = array(0, 'Magnetische', 'Maanachtige', 'Elektrische', 'Zelfingenomene', 'Boventoon', 'Ritmische', 'Resonantie', 'Galactische', 'Zonnige', 'Planetaire', 'Spookachtige', 'Kristalheldere', 'Kosmisch');        $tone_desc = array(0,    'Unify, Attract, Purpose',    'Polarise, Stabilise, Challenge',    'Activate, Bond, Service',    'Define, Measure, Form',    'Empower, Command, Radiance',    'Organise, Balance, Equality',    'Channel, Inspire, Attunement',    'Harmonise, Model, Integrity',    'Pulse, Realise, Intention',    'Perfect, Produce, Manifestation',    'Dissolve, Release, Liberation',    'Dedicate, Universalise,Cooperation',    'Endure, Transcend, Presence');    $tone_desc_dutch = array(0, 'Verenigen - Aantrekken - Doelwit', 'Polariseren - Stabiel - Trotseren', 'Activeren - Verbinden - Bediening', 'Omschrijven - Afmeten - Uitbrengen', 'Autoriseren - Voorschrijven - Uitstraling', 'Teweegbrengen - Balanceren - Gelijkheid', 'Geleiden - Inspireren - Overeenstemming', 'Harmoniëren - Toonbeeld - Integriteit', 'Polsslag - bewustzijn - Voornemen', 'Perfect - scheppen - Vertoning', 'Oplossen - Loslaten - Bevrijding', 'Toewijden - Wereldwijd - Medewerking', 'Voortduren - Transcendent - Tegenwoordigheid');        $sign_array = array(0,    'Red Dragon',    'White Wind',    'Blue Night',    'Yellow Seed',    'Red Serpent',    'White World-Bridger',    'Blue Hand',    'Yellow Star',    'Red Moon',    'White Dog',    'Blue Monkey',    'Yellow Human',    'Red Skywalker',    'White Wizard',    'Blue Eagle',    'Yellow Warrior',    'Red Earth',    'White Mirror',    'Blue Storm',    'Yellow Sun');$sign_array_dutch = array(0, 'Rode Draak', 'Witte Wind', 'Blauwe Nacht', 'Geel Zaaisel', 'Rode Serpent', 'Witte Wereld-Verbeteraar', 'Blauwe Hand', 'Gele Ster', 'Rode Maan', 'Witte Hond', 'Blauwe Aap', 'Gele Mens', 'Rode Hemelbeklimmer', 'Witte Tovernaar', 'Blauwe Adelaar', 'Gele Krijger', 'Rode Aarde', 'Witte Spiegel', 'Blauwe Storm', 'Gele Zon');        $sign_desc = array(0,    'Nurtures Birth',    'Communicates Spirit',    'Dreams Abundance',    'Targets Flowering (Ideas)',    'Survives Life Force',    'Equalises Death',    'Knows Accomplishment',    'Beautifies Elegance',    'Purifies Universal Water',    'Loves Heart',    'Plays Magic',    'Influences Free Will',    'Explores Space',    'Enchants Timelessness',    'Creates Vision',    'Questions Intelligence',    'Evolves Navigation',    'Reflects Endlessness',    'Catalyses Self-Generation',    'Enlightens Universal Fire');    $sign_desc_dutch = array(0, 'Geboorte Voeding', 'Gemeenschappelijke Geest', 'Uitbundige Dromer', 'Taakstellende Ideeen', 'Onoverwinnelijke Levens Kracht', 'Dodelijke Gelijkheid', 'Buitengewone Begaafdheid', 'Uitzinderlijke Schoonheid', 'Wereldwijdse Louterend Water', 'Beminnelijk Hart', 'Magische Speler', 'Invloedrijke Vrije Wil', 'Bevrijdende Ruimte', 'Verrukkelijke Onsterfelijkheid', 'Scheppende Visionair', 'Vragende Intelligentie', 'Evoluerende Aanwijzer', 'Beschouwende Oneindigheid', 'Katalyserende Zelfontplooiing', 'Verlichtend Universeel Vuur');        $gmonths_num_days = array(0,31,28,31,30,31,30,31,31,30,31,30,31);    $master_gyear = 2002;    $master_gmonth = 7;    $master_gday = 26;    $master_kin = 49;    $year_diff = 0;        if ($y < $master_gyear)    {        $year_diff = ($master_gyear - $y);        $year_forward = false;    }    else if ($y > $master_gyear)    {        $year_diff = ($y - $master_gyear);        $year_forward = true;    }    $days = 0;    if ($m < $master_gmonth)    {       for ($mo = ($m+1); $mo $master_gmonth)    {       for ($mo = ($m-1); $mo>$master_gmonth; $mo--)       {            $days+=$gmonths_num_days[$mo];       }              $days+= $gmonths_num_days[$master_gmonth] - $master_gday;       $days+= $d;       $day_forward = true;    }    else if ($m == $master_gmonth)    {        if ($d < $master_gday)        {            $days = ($master_gday - $d);            $day_forward = false;        }                if ($d > $master_gday)        {            $days = ($d - $master_gday);            $day_forward = true;        }    }    if ($days > 260) $days = ($days % 260);    $kin = $master_kin;        for ($i=0; $i$sign_num,                             'tone'=>$tone_array[$tone_num],                             'tone_desc'=>$tone_desc[$tone_num],                             'tone_num'=>$tone_num,                             'kin_destiny'=>$string);        if ( $verbose != true )        {            return $array;        }                //+---------------------------------------------------------------------        //| Verbose        //+---------------------------------------------------------------------        $seal_verbs = array(0, 'Nurtures', 'Communicates', 'Dreams', 'Targets', 'Survives', 'Equalises', 'Knows', 'Beautifies', 'Purifies', 'Loves', 'Plays', 'Influences', 'Explores', 'Enchants', 'Creates', 'Questions', 'Evolves', 'Reflects', 'Catalyses', 'Enlightens');            $seal_verbs_dutch = array(0,  'Voedend',  'Communicerend',  'Dromend',  'Doelgericht',  'Overlevend',  'Egaaliserend',  'Wetend',  'Verfraaiend',  'Zuiverend',  'Liefhebbend',  'Spelend',  'Beïnvloedend',  'Onderzoekend',  'Betoverend',  'Creërend',  'Vragend',  'Evoluerend',  'Spiegelend',  'Katalyserend',  'Verlichtend');            $seal_nouns = array(0, 'Birth', 'Spirit', 'Abundance', 'Flowering (Ideas)', 'Life Force', 'Death', 'Accomplishment', 'Elegance', 'Universal Water', 'Heart', 'Magic', 'Free Will', 'Space', 'Timelessness', 'Vision', 'Intelligence', 'Navigation', 'Endlessness', 'Self-Generation', 'Universal Fire');            $seal_nouns_dutch = array(0, 'Geboorte', 'Geest', 'Overvloed', 'bloeiend (denkbeeld)', 'Levenslustig', 'Dood', 'Scheppend', 'Elegance', 'Universeel Water', 'Hart', 'Magisch', 'Vrije Wil', 'Ruimte', 'Tijdloos', 'Visioen', 'Intelligentie', 'Navigatie', 'Eindeloos', 'Zelfontplooiing', 'Universeel Vuur');             $seal_singular = array(0, 'Nurture', 'Communicate', 'Dream', 'Target', 'Survive', 'Equalise', 'Know', 'Beautify', 'Purify', 'Love', 'Play', 'Influence', 'Explore', 'Enchant', 'Create', 'Question', 'Evolve', 'Reflect', 'Catalyse', 'Enlighten');        $seal_singular_dutch = array(0,  'Voeden',  'Communiceren',  'Dromen',  'Doelgericht',  'Overleven',  'Egaaliseren',  'Weten',  'Verfraaien',  'Zuiveren',  'Liefhebben',  'Spelen',  'Beïnvloeden',  'Onderzoeken',  'Betoveren',  'Creëren',  'Vragen',  'Evolueren',  'Spiegelen',  'Katalyseren',  'Verlichten');            $tone_prose = array(0, 'Attracting', 'Stabilising', 'Bonding', 'Measuring', 'Commanding', 'Balancing', 'Inspiring', 'Modelling', 'Realising', 'Producing', 'Releasing', 'Universalising', 'Transcending');            $tone_prose_dutch = array(0, 'Aantrekken', 'Stabiel', 'Verbinden', 'Afmeten', 'Voorschrijven', 'Balanceren', 'Inspireren', 'Toonbeeld', 'Bewustzijn', 'Scheppen', 'Loslaten', 'Wereldwijd', 'Transcendent');            $seal_prose = array(0, 'Being', 'Breath', 'Intuition', 'Awareness', 'Instinct', 'Opportunity', 'Healing', 'Art', 'Flow', 'Loyalty', 'Illusion', 'Wisdom', 'Wakefulness', 'Receptivity', 'Mind', 'Fearlessness', 'Synchronicity', 'Order', 'Energy', 'Life');        $seal_prose_dutch = array(0, 'Zijn', 'Adem', 'Intuïtie', 'Bewustzijn', 'Instinct', 'Vooruitzicht', 'Helend', 'Artistiek', 'Stroom', 'Loyaliteit', 'Illusie', 'Wijsheid', 'Waakzaamheid', 'Acceptatie', 'Geest', 'Onvervaard', 'Gelijktijdigheid', 'Aanvoeren', 'Wilskracht', 'Levendigheid');            $gap_kins = array(1,20,22,39,43,50,51,58,64,69,72,77,85,88,93,96,106,107,108,109,110,111,112,113,114,115,146,147,148,149,150,151,152,153,154,165,168,173,176,184,189,192,203,210,211,218,222,239,241,260);                $day_names = array(0, 'Dali','Seli','Gamma','Kali','Alpha','Limi','Silio');        //-------------------------------------------------        // 13 Moon Month and Day number        //-------------------------------------------------        $moon_nums = moon_daymonth_nums($d, $m);        $moon_day_num = $moon_nums['moon_day_num'];        $moon_month_num = $moon_nums['moon_month_num'];        $moon = $tone_array[$moon_month_num];        $moon_meaning = $tone_desc[$moon_month_num];            //--------------------------------------------        // 13 Week Day        //--------------------------------------------        switch($moon_day_num % 7)        {            case 1: $week_day_num = 1; $week_day = $day_names[1]; break;            case 2: $week_day_num = 2; $week_day = $day_names[2]; break;            case 3: $week_day_num = 3; $week_day = $day_names[3]; break;            case 4: $week_day_num = 4; $week_day = $day_names[4]; break;            case 5: $week_day_num = 5; $week_day = $day_names[5]; break;            case 6: $week_day_num = 6; $week_day = $day_names[6]; break;            case 0: $week_day_num = 7; $week_day = $day_names[7]; break;        }                //--------------------------------------------        // 13 Moon Year        //--------------------------------------------        $year_tone = ($year_kin % 13);        $year_sign = ($year_kin % 20);                if ($year_tone == 0) $year_tone = 13;        if ($year_sign == 0) $year_sign = 20;                $moon_year_sign_array = explode(' ', $sign_array[$year_sign]);        $moon_year = "{$moon_year_sign_array[0]} {$tone_array[$year_tone]} {$moon_year_sign_array[1]}";                $year_seal = $sign_array[$year_sign];        $year_seal_meaning = "{$seal_verbs[$year_sign]} {$seal_nouns[$year_sign]}";                $yeartone = $tone_array[$year_tone];        $year_tone_meaning = $tone_desc[$year_tone];        //--------------------------------------------        // 13 Moon Earth Family        //--------------------------------------------        switch($sign_num)        {            case 5:            case 10:            case 15:            case 20:                 $earth_family = 'Bar';                 $earth_desc = 'Sound the call';                $earth_name = 'Polar';                $earth_family_dutch = 'Bar';                 $earth_desc_dutch = 'Verkondig de boodschap';                $earth_name_dutch = 'Polair';                break;                            case 1:            case 6:            case 11:            case 16:                $earth_family = '1 Dot';                $earth_desc = 'Establish the genesis';                $earth_name = 'Cardinal';                                $earth_family_dutch = '1 Dot';                $earth_desc_dutch = 'Vestig de oorsprong';                $earth_name_dutch = 'Kardinaal';                break;                            case 2:            case 7:            case 12:            case 17:                $earth_family = '2 Dot';                $earth_desc = 'Mine the tunnels';                $earth_name = 'Core';                                $earth_family_dutch = '2 Dot';                $earth_desc_dutch = 'Graaf de tunnels';                $earth_name_dutch = 'Kern';                break;                            case 3:            case 8:            case 13:            case 18:                $earth_family = '3 Dot';                $earth_desc = 'Unravel the mystery';                $earth_name = 'Signal';                                $earth_family_dutch = '3 Dot';                $earth_desc_dutch = 'Ontrafelen het mysterie';                $earth_name_dutch = 'Signaal';                break;                            case 4:            case 9:            case 14:            case 19:                $earth_family = '4 Dot';                $earth_desc = 'Open the portals';                $earth_name = 'Gateway';                                $earth_family_dutch = '4 Dot';                $earth_desc_dutch = 'Open het portaal';                $earth_name_dutch = 'Entree';                break;        }        //+---------------------------------------------------------------------        //| Oracle        //+---------------------------------------------------------------------                $index_occult = (21 - $sign_num);        if ($index_occult < 1) $index_occult += 20;        $kin_occult = $sign_array[$index_occult];                $index_antipode = ($sign_num+10);        if ($index_antipode > 20) $index_antipode -= 20;        $kin_antipode = $sign_array[$index_antipode];                $index_analog = (19-$sign_num);        if ($index_analog < 1) $index_analog += 20;        $kin_analog = $sign_array[$index_analog];        switch($tone_num)        {            case 1:            case 6:            case 11:    $guide = $sign_num; break;            case 2:            case 7:            case 12:    $guide = ($sign_num-8); break;            case 3:            case 8:            case 13:    $guide = ($sign_num-16); break;            case 4:                 case 9:     $guide = ($sign_num-4); break;            case 5:            case 10:    $guide = ($sign_num-12); break;        }                if ($guide < 1) $guide += 20;                $kin_guide = $sign_array[$guide];                $cell = $kin % 20;        switch($cell)        {            case 1:            case 2:            case 3:            case 4: $cell_type = 'Input'; break;            case 5:            case 6:            case 7:            case 8: $cell_type = 'Store'; break;            case 9:             case 10:            case 11:            case 12: $cell_type = 'Process'; break;            case 13:            case 14:            case 15:            case 16: $cell_type = 'Output'; break;            case 17:            case 18:            case 19:            case 0: $cell_type = 'Matrix'; break;        }        $kin_analog_meaning = $seal_verbs[$index_analog] . ' ' . $seal_nouns[$index_analog];        $kin_antipode_meaning = $seal_verbs[$index_antipode] . ' ' . $seal_nouns[$index_antipode];        $kin_occult_meaning = $seal_verbs[$index_occult] . ' ' . $seal_nouns[$index_occult];        $kin_guide_meaning = $seal_verbs[$guide] . ' ' . $seal_nouns[$guide];                $mantra = 'I %s in order to %s' . "¥n" .                         '%s %s' . "¥n" .                         'I seal the %s of %s' . "¥n" .                         'With the %s tone of %s' . "¥n" .                         'I am guided by %s';                        $mantra_dutch = 'Ik %s in plaats van te %s' . "¥n" .                         '%s %s' . "¥n" .                         'Ik bevestig de %s van %s' . "¥n" .                         'Met de %s toon van %s' . "¥n" .                         'Ik word geleid door %s';                $guide_power = ($guide == $sign_num) ? 'my own power doubled' : 'the power of ' . $seal_nouns[$guide];                $guide_power_dutch = ($guide == $sign_num) ? 'mijn eigen kracht verdubbeld' : 'de kracht van ' . $seal_nouns[$guide];                $tone_info = $tone_desc[$tone_num];        $tone_parts = explode(',', $tone_info);        $tone_parts = array_map('trim', $tone_parts);                $mantra = sprintf($mantra, $tone_parts[0], $seal_singular[$sign_num], $tone_prose[$tone_num], $seal_prose[$sign_num], $cell_type, $seal_nouns[$sign_num], $tone_name, $tone_parts[2], $guide_power);                $gap = (in_array($kin, $gap_kins)) ? 1 : 0;        if ($gap == 1) $mantra .= "¥nI am a Galactic Activation Portal"; // if ($gap == 1) $mantra .= "¥nIk ben een  Galactisch Actievatie Portaal";                 $array2 = array('earth_family'=>$earth_family,                             'earth_family_name'=>$earth_name,                             'earth_family_meaning'=>$earth_desc,                             'kin_num'=>$kin,                             'kin_analog'=>$kin_analog,                             'kin_analog_meaning'=>$kin_analog_meaning,                             'kin_analog_num'=>$index_analog,                             'kin_antipode'=>$kin_antipode,                             'kin_antipode_meaning'=>$kin_antipode_meaning,                             'kin_antipode_num'=>$index_antipode,                             'kin_occult'=>$kin_occult,                             'kin_occult_meaning'=>$kin_occult_meaning,                             'kin_occult_num'=>$index_occult,                             'kin_guide'=>$kin_guide,                             'kin_guide_meaning'=>$kin_guide_meaning,                             'kin_guide_num'=>$guide,                             'mantra'=>$mantra,                             'gap'=>$gap,                             'moon_num'=>$moon_month_num,                             'moon'=>$moon,                             'moon_meaning'=>$moon_meaning,                             'moon_day_num'=>$moon_day_num,                             'week_day'=>$week_day,                             'week_day_num'=>$week_day_num,                             'year'=>$moon_year,                             'year_seal'=>$year_seal,                             'year_seal_meaning'=>$year_seal_meaning,                             'year_seal_num'=>$year_sign,                             'year_tone'=>$yeartone,                             'year_tone_meaning'=>$year_tone_meaning,                             'year_tone_num'=>$year_tone);                                     $verbose_array = $array + $array2;                                      return $verbose_array;}function moon_daymonth_nums($gday, $gmonth){    $moon_year = array    (            0  => array('start'=> array('day'=> 26, 'month'=> 7 ),  'end'=>array('day'=> 22, 'month'=> 8 )),            1  => array('start'=> array('day'=> 23, 'month'=> 8 ),  'end'=>array('day'=> 19, 'month'=> 9 )),            2  => array('start'=> array('day'=> 20, 'month'=> 9 ),  'end'=>array('day'=> 17, 'month'=> 10 )),            3  => array('start'=> array('day'=> 18, 'month'=> 10 ), 'end'=>array('day'=> 14, 'month'=> 11 )),            4  => array('start'=> array('day'=> 15, 'month'=> 11 ), 'end'=>array('day'=> 12, 'month'=> 12 )),            5  => array('start'=> array('day'=> 13, 'month'=> 12 ), 'end'=>array('day'=> 9,  'month'=> 1 )),            6  => array('start'=> array('day'=> 10, 'month'=> 1 ),  'end'=>array('day'=> 6,  'month'=> 2 )),            7  => array('start'=> array('day'=> 7,  'month'=> 2 ),  'end'=>array('day'=> 6,  'month'=> 3 )),            8  => array('start'=> array('day'=> 7,  'month'=> 3 ),  'end'=>array('day'=> 3,  'month'=> 4 )),            9  => array('start'=> array('day'=> 4,  'month'=> 4 ),  'end'=>array('day'=> 1,  'month'=> 5 )),            10 => array('start'=> array('day'=> 2,  'month'=> 5 ),  'end'=>array('day'=> 29,  'month'=> 5 )),            11 => array('start'=> array('day'=> 30, 'month'=> 5 ),  'end'=>array('day'=> 26, 'month'=> 6 )),            12 => array('start'=> array('day'=> 27, 'month'=> 6 ),  'end'=>array('day'=> 24, 'month'=> 7 ))        );                if ($gmonth == 5)        {                 if ($gday == 1)            {                return array('moon_day_num'=>28, 'moon_month_num'=>9);            }                        if ($gday >= 2 && $gday < 30)            {                $day_num = ($gday + 1) - 2;                                        return array('moon_day_num'=>$day_num, 'moon_month_num'=>10);            }                        if ($gday == 30)            {                   return array('moon_day_num'=>1, 'moon_month_num'=>11);            }                        if ($gday == 31)            {                return array('moon_day_num'=>2, 'moon_month_num'=>11);            }        }                foreach ($moon_year as $k => $v)        {                    $moon_num = ($k+1);                        if ($gmonth == $v['start']['month'] && $v['start']['day'] 1, 'moon_month_num'=>$moon_num);                }                else                {                    $day_num = ($gday +1) - $v['start']['day'];                                        return array('moon_day_num'=>$day_num, 'moon_month_num'=>$moon_num);                }            }                        if ($v['end']['day'] >= $gday && $v['end']['month'] == $gmonth)             {                            if ( $gday == $v['end']['day'] )                {                    return array('moon_day_num'=>28, 'moon_month_num'=>$moon_num);                }                else                {                    $day_num = (28 - ( $v['end']['day'] - $gday));                                        return array('moon_day_num'=>$day_num, 'moon_month_num'=>$moon_num);                }            }        }            return array('moon_day_num'=>'Day out of Time', 'moon_month_num'=>0);}function getZodiac($day, $month){    if (empty($day) || empty($month))    {        return array('img'=>'', 'string'=>'', 'desc'=>'');    }    $zodiacs = array('Aries', 'Taurus', 'Gemini', 'Cancer', 'Leo', 'Virgo', 'Libra', 'Scorpio', 'Sagittarius', 'Capricorn', 'Aquarius', 'Pisces');      $zodiacs_dutch = array('Ram', 'Stier', 'Tweelingen', 'Kreeft', 'Leeuw', 'Maagd', 'Weegschaal', 'Schorpioen', 'Boogschutter', 'Steenbok', 'Waterman', 'Vissen');    $descript = array('Competitive, Impulsive, Independent, Dynamic, Quick-Tempered, Domineering, Trusting, Honest',                      'Patient, Dependable, Practical, Determined, Artistic, Loyal, Stubborn, Self-Indulgent',                      'Curious, Versatile, Expressive, Persuasive, Changeable, Clever, Restless, Talkative',                      'Tenacious, Emotional, Intuitive, Sensitive, Sympathetic, Traditional, Moody, Manipulative',                      'Dramatic, Dignified, Idealistic, Ambitious, Proud, Generous, Romantic, Overbearing',                      'Gentle, Industrious, Dependable, Methodical, Soft-Spoken, Humane, Sincere, Easily Worried',                      'Cooperative, Careful, Artistic, Persuasive, Diplomatic, Logical, Indecisive, Fickle',                      'Passionate, Penetrating, Private, Resourceful, Loyal, Determined, Temperamental, Intolerant',                      'Generous, Honest, Daring, Friendly, Confident, Enthusiastic, Argumentative, Blunt',                      'Cautious, Focused, Responsible, Serious, Conventional, Reliable, Hardworking, Unforgiving',                      'Independent, Tolerant, Unpredictable, Strong-Willed, Curious, Perceptive, Progressive, Temperamental',                      'Sensitive, Compassionate, Imaginative, Adaptable, Intuitive, Idealistic, Secretive, Vulnerable');    $descript_dutch = array('Competitive, Luchthartig, Onafhankelijk, dynamisch, Kort-Aangebrand, Dominant, Vertrouwelijk, Eerlijk',                      'Geduldig, Betrouwbaar, Praktisch, Doortastend, Artistiek, Loyaal, Hardnekkig, Zelf-Genoegzaam',                      'Gemoedelijk, Versatile, Expressief, Overredend, Wispelturig, Slim, Rusteloos, Praatgraag',                      'Vasthoudend, Emotioneel, Intuïtief, Gevoelig, Innemend, Traditioneel, Moody, Manipulatief',                      'Dramatisch, Waardig, Idealist, Ambitieus, Trots, Genereus, Romantisch, Aanmatigend',                      'Liefelijk, Vlijtig, Betrouwbaar, Methodisch, Tactvol-Sprekend, Humaan, Oprecht, Over-Bezorgd',                      'Coöperatief, Voorzichtig, Kunstzinnig, Overredend, Diplomatiek, Logisch, Besluiteloos, Lichtzinnig',                      'Hartstochtelijk, Doordringend, Besloten, Vindingrijk, Loyaal, Doortastend, Temperamentvol, Onverdraagzaam',                      'Genereus, Eerlijk, Stoutmoedig, Vriendelijk, Zelfbewust, Enthousiast, Twistziek, Bot',                      'Behoedzaam, Gefocust, Verantwoordelijk, Ernstig, Conventioneel, Betrouwbaar, Vlijtig, Haatdragend',                      'Onafhankelijk, Tolerant, Onvoorstelbaar, Doortastend, Curieus, Waarnemend, Vooruitstrevend, Temperament Vol',                      'Gevoelig, Meewarrig, Fantasierijk, Aanpasbaar, Intuïtief, Idealistisch, Stiekem, Kwetsbaar');    switch ($month)    {        case 1:        $zMonth = '9:10';    $limit = 20;    break;        case 2:        $zMonth = '10:11';    $limit = 20;    break;        case 3:        $zMonth = '11:0';    $limit = 21;    break;        case 4:        $zMonth = '0:1';    $limit = 21;    break;        case 5:        $zMonth = '1:2';    $limit = 22;    break;        case 6:        $zMonth = '2:3';    $limit = 23;    break;        case 7:        $zMonth = '3:4';    $limit = 24;    break;        case 8:        $zMonth = '4:5';    $limit = 24;    break;        case 9:        $zMonth = '5:6';    $limit = 24;    break;        case 10:    $zMonth = '6:7';    $limit = 23;    break;        case 11:    $zMonth = '7:8';    $limit = 23;    break;        case 12:    $zMonth = '8:9';    $limit = 23;    break;    }        $sign = explode(':', $zMonth);    $num = ($day >= $limit) ? 1 : 0;    $zodiac = $zodiacs[$sign[$num]];    $words = $descript[$sign[$num]];        $img = '[img alt='.$zodiac.' height=15 width=15]Themes/global_images/zodiac/%27.strtolower%28$zodiac%29.%27.gif[/img]';        $array = array('img'=>$img, 'string'=>$zodiac, 'desc'=>$words);        return $array;}[/pre]



I copyed the names of your variable and added _dutch afer it.

Osmonicar

Quote from: dheeraj on March 25, 2007, 12:22:08 AM
Hey..I hav installed the Mod Zodiac 13Moon,,The Zodiac signs are appearing on forum Next to the posts but the Earth Family was not Appearing..it is appearing only in Profile...Can ANy one Help Me

I use this in my profile.template.php but i think that it wil work in the index.template.php as well


      echo '
               <td><b>13 Moon Kin:</b></td>
               <td><div style="float:left;margin:0;padding:0;width:25px;">', $tone, $seal, '</div><div style="float:left;padding:20px 0 0 5px;">', $context['member']['moon']['kin_destiny'], '</div></td>
            </tr>
           
            <tr>
               <td><b>13 Moon Oracle:</b></td>
               <td>', $oracle, '</td>
            </tr>
           
            <tr>           
               <td><b>Earth Family:</b></td>
               <td><div style="margin:0;padding:4px 0 4px 0;font-size:0.85em;line-height:100%;width:99%;">', $context['member']['moon']['earth_family_name'] , ' - ', $context['member']['moon']['earth_family'] , ' - ' , $context['member']['moon']['earth_family_meaning'], '</div></td>
            </tr>

            <tr>
               <td><b>Tone:</b></td>
               <td><div style="margin:0;padding:4px 0 4px 0;font-size:0.85em;line-height:100%;width:99%;">', $context['member']['moon']['tone'] , ' - ', $context['member']['moon']['tone_num'] , ' - ' , $context['member']['moon']['tone_desc'], '</div></td>
            </tr>
           
            <tr>
            <td><b>Kin Occult:</b></td>
               <td><div style="margin:0;padding:4px 0 4px 0;font-size:0.85em;line-height:100%;width:99%;">', $context['member']['moon']['kin_occult'] , ' - ' ,  $context['member']['moon']['kin_occult_num'] , ' - ' ,$context['member']['moon']['kin_occult_meaning'], '</div></td>
            </tr>
           
            <tr>
            <td><b>Kin Analog:</b></td>
               <td><div style="margin:0;padding:4px 0 4px 0;font-size:0.85em;line-height:100%;width:99%;">', $context['member']['moon']['kin_analog'] , ' - ' ,  $context['member']['moon']['kin_analog_num'] , ' - ' ,$context['member']['moon']['kin_analog_meaning'], '</div></td>
            </tr>           
           
            <tr>
            <td><b>Kin Antipode:</b></td>
               <td><div style="margin:0;padding:4px 0 4px 0;font-size:0.85em;line-height:100%;width:99%;">', $context['member']['moon']['kin_antipode'] , ' - ' ,  $context['member']['moon']['kin_antipode_num'] , ' - ' ,$context['member']['moon']['kin_antipode_meaning'], '</div></td>
            </tr>
           
            <tr>
            <td><b>Kin Guide:</b></td>
               <td><div style="margin:0;padding:4px 0 4px 0;font-size:0.85em;line-height:100%;width:99%;">', $context['member']['moon']['kin_guide'] , ' - ' ,  $context['member']['moon']['kin_guide_num'] , ' - ' ,$context['member']['moon']['kin_guide_meaning'], '</div></td>
            </tr>

            <tr>
               <td><b>Moon:</b></td>
               <td><div style="margin:0;padding:4px 0 4px 0;font-size:0.85em;line-height:100%;width:99%;">', $context['member']['moon']['moon'] , ' - ' , $context['member']['moon']['moon_num'] , ' - ' , $context['member']['moon']['moon_meaning'], '</div></td>
            </tr>

            <tr>
               <td><b>Year Seal:</b></td>
               <td><div style="margin:0;padding:4px 0 4px 0;font-size:0.85em;line-height:100%;width:99%;">', $context['member']['moon']['year_seal'] , ' - ' , $context['member']['moon']['year_seal_num'] , ' - ' , $context['member']['moon']['year_seal_meaning'], '</div></td>
            </tr>

            <tr>
               <td><b>Year Tone:</b></td>
               <td><div style="margin:0;padding:4px 0 4px 0;font-size:0.85em;line-height:100%;width:99%;">', $context['member']['moon']['year_tone'] , ' - ' , $context['member']['moon']['year_tone_num'] , ' - ' , $context['member']['moon']['year_tone_meaning'], '</div></td>
            </tr>
           
            <tr>';



Please do not forget to change the 0 into 1
in the profile.php


        $context['member'] += array(
                'moon' => get13Moon($birth_day, $birth_month, $birth_year, [color=red]1[/color]),
                'zodiac' => getZodiac($birth_day, $birth_month));



celijakija

There's a problem with no-date users...such as guests or person that didn't write their birthday...

Is there some way to stop errors like tone, tone_desc and so on????

Kindred

#16
Quote from: Osmonicar on June 30, 2007, 09:08:05 AM
LS

I have made a dutch translation of all the words in de diverend&nbsp; arrays used in the subs.php. It's no problem to make a dutch version but what I like is a Version that's multy languege (English or/and Dutch) based on the users languege settings.

Who will help me her is the code I transladed:

I copyed the names of your variable and added _dutch afer it.

You should leave the variable NAMES alone.

If you take the identical variable names with the dutch translations and place them in modifications.dutch.php, it will work correctly with multi-languages.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Osmonicar

I'm verry new with all this, so I did't know that.

koji

#18
Wow. I'm so sorry! I never even realised these comments were here! Kindred, thanks for helping :)


koji

Quote from: Kindred on November 10, 2006, 10:54:54 AM
Instead of:
$settings['images_url']  . '/13moon/

you should use:
$settings['default_images_url']  . '/13moon/

(etc)

this means that you only have to load the images into one location (the default/images/yourdir directory) and every theme can use them...   that way, the people using different themses only have to modify their other themes with the mod additions and not any of the basic mod changes...

I currently have the images being installed to $boarddir/Themes/global_images and referencing the same way in the function, Themes/global_images/13moon/. It's a bit hackish hardcoding it like that - but it should work with all themes, right?

Advertisement: