News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Zodiac Starsigns

Started by koji, November 14, 2006, 09:04:04 PM

Previous topic - Next topic

fakeDecoy

#20
Quote from: Kindred on August 05, 2007, 08:23:06 AM
Different groups, even in Western astrology interpret the cusp as different dates as well...


The Western dates have a strict standard from what I've seen, and it's only very few people in the Western world using anything else, or Vedic astrology. I'm sure there are other interpretations, but wouldn't it make sense to use what 99.999% of forum administrators and users are familiar with?

Kindred

except, I don't believe that the original author is from the western world.

and, no...  if you look at the daily newpaper, different papers even use different dates for each sign... ranging from the 19th through the 23rd as the change-over to the next sign...
Сл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."

TrueSatan

(mutters quietly to avoid being drawn into argument)

Post installing the mod in Source directory find Subs.php find this code and edit it to your particular requirements:

{
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;
}

perplexed

is there a way to not have this text display on posts and only in profiles, there's enough stuff on the posts at the moment?  I would like only the sign on the posts, and the text about the sign in the profiles.


I would quite like one for chinese astrology but since it depends on the year of birth instead of month, that would be quite a big list :(

Kindred

You can alter the display 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."

fakeDecoy

Quote from: perplexed on August 06, 2007, 05:00:40 AM

I would quite like one for chinese astrology but since it depends on the year of birth instead of month, that would be quite a big list :(

That sounds cool too. It wouldn't be a big list - it would just do the math, the same as you would to figure out what sign someone born in 1923 is.

perplexed

@ kindred - thanks Kindred :)

@ fakedecoy - yeah but the chinese astrology is based on a lunar year I think, and Chinese new year is a different date each year, so if you were born in 1923 you could be a dog or a pig depending which month you were born

koji

Sorry everyone.

When a mod is submitted it automatically creates a forum thread like this - but it doesn't automatically send Notifications of Replies. So I only just saw this thread.

If you downloaded an early version of the mod, I may have been working on it still, so I would recommend that everyone uninstall it and install the latest version. I updated the code a few weeks ago (fixed a few bugs).

BTW I am "from the Western world"! Born and bred in the UK

Hmm I can't remember where I got the dates from. If anyone can suggest an ultimately accurate source, let me know.

I would love to incorporate the Chinese Astrology but I know nothing about it. I'll code it if someone explains it!

fakeDecoy

#28
hxxp:en.wikipedia.org/wiki/Zodiac [nonactive]

See the table halfway down the page. This one is accurate - Any others you find that are very similar but off by a day or two here and there were meant to follow the tropical zodiac but simply are from sources that didn't write them down correctly - it's not a matter of different astrological calculations, just sloppiness.

The tropical zodiac is the common Western one. The only other similar one in significant use, to my knowledge, that isn't a result of copying errors is the sidereal or "Vedic " zodiac, listed alongside that in the table.

Edit: But the Chinese zodiac would be cool to see too!

Manu.G

I have installed the Zodiac Starsigns mod, everything works good.
The image in the profile is to see, but not the image profile by the postings to see.
It seems it's an error in the Subs.php, but I don't know what error.

When I check the URL of the images I can see this:
http://forum.arseniums.com/index.php/Themes/default/images/zodiac/pisces.gif

Isn't it this the correct address to the images?
http://forum.arseniums.com/Themes/default/images/zodiac/pisces.gif

What must I change to show the images correct?
Version SMF 2.0.8
SimplePortal 2.3.5

koji

Hi,

Are you using the latest version of the mod (1.1) ?

Manu.G

I loaded down the mod yesterday.

QuoteLast Modified:     15-08-2007, 02:26:44
Latest Version:     1.1
Version SMF 2.0.8
SimplePortal 2.3.5

koji

Hmm.

The image path is hard-coded, so it should work. Are you using mod_rewrite or anything like that?

Oh wait, are you using the Turkish version?

Manu.G

I don't use mod_rewrite and I don't use the turkish version, I use the English one.
Version SMF 2.0.8
SimplePortal 2.3.5

koji

Ok. I think the false image path is because of something to do with your server. I think you could fix it by changing what you have set for your main board address. At the moment you have it as something like :

http://forum.arseniums.com/index.php

If you change that to:

http://forum.arseniums.com/

... then the images should work (both those addresses point to the same place, the index.php file is displayed automatically).

But I should use an absolute path for the images anyway. Ill try to make that change ASAP and upload it by tomorrow, hopefully. ;)

Sorry for any inconvenience!

Kindred

NO!  You should not use an absolute or hardcoded path...

you should be using the theme directory and/or image directory variables.

Сл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."

koji

Well I was, but evidently it leads to problems for some people. I don't see what's so bad about using an absolute path to the theme/image directory?

I mean something like:

$path
= $boarddir . PATH_SEPARATOR . $settings['default_images_url'] .  PATH_SEPARATOR . 'path/to/image.gif';

I just need to work out which SMF variable contains the main board address.

Manu.G

So, what must I do to show the images in the profile by the postings?
I'm not php confirm.  :'(
Version SMF 2.0.8
SimplePortal 2.3.5

koji

Hey Manu, I just looked at your forum and the zodiac images seem to be working! Is it ok now?

Manu.G

Yes, now it's ok.

I changed the Subs.php and insert the code:
Quote$img = '<img src="http://www.arseniums.com/Themes/default/images/zodiac/'.strtolower($zodiac).'.gif" width="15" height="15" style="margin-bottom:2px;" alt="'.$zodiac.'" title="'.$words.'" />';

And it works.
I saw the code at page 1 of this topic.
When I copied the code as it is shown here, it wont work. I checked it cause here the code is
Quote$img = '<img src="http://www.YOUR_FORUM_PATH.com/Themes/global_images/zodiac/'.strtolower($zodiac).'.gif" width="15" height="15" style="margin-bottom:2px;" alt="'.$zodiac.'" title="'.$words.'" />';

I saw something was missing. The folder "default" was missing after "Themes" and  "global_images". After I insert "default" the zodiacs in the profiles by the postings were shown. ;)

But I think you have to check the code in the Subs.php, and maybe you can find a way not to use direct path. ;)

Thanks for help :)
Version SMF 2.0.8
SimplePortal 2.3.5

Advertisement: