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

koji

Link to Mod
Rate this Mod

If a member has supplied their birth date, then their starsign will be displayed on their Profile page and by each of their Posts (under their avatar).

The starsigns are displayed as an image icon.

The HTML title attribute is used to display a string of words that describe a typical person of the relevant starsign.

TechnoDragon

Thank you...this was the part of your original mod that I wanted!
Don't tell me to get into shape...I have a shape...It is round!


DomDom Skye

Hello

Thx a lot for your mod.
I use SMF 1.09 and the install was well, but I've no starsign under my avatar in post, only in profile.
Could you help?
My forum:
-> http://www.john-howe.com/forum/

Thx a lot in advance.
Regards, Dominique

beejay

I have the same problem with djavet. I use SMF 1.12 and the install was well, but I've no starsign under my avatar in post.

Marianita

Im using a theme diferent than default (when i test it in a default themes it goes ok) and it gives me these errors when trinig to install:

1. Execute Modification zodiac_starsigns.xml Modification parse error
2. Execute Modification - Modification parse error
3. Extract Tree ./Themes/default/images/zodiac


???? Any ideas???

hotjunkie

Any plans to make this mod compatible for 1.1.2? I know my members would love it. ;)

Marianita

Finally i installed it in 1.1.2 . I did it manually , it works fine.  :)

rastarasta

I have got the same 'no images in posts' problem.

If I right click on the img on a profile the correct path to the images is shown.
If I right click on the red x on the profile the path has /index.php/image_directory which I guess is why it isn't working !! I just dont know what is creating the extra index.php ???

rastarasta

ok I have managed to solve the problem by changing the code in subs.php

For the moon signs change this

$seal_src = 'Themes/global_images/13moon/seal_' . str_pad($signDays, 2, '0', STR_PAD_LEFT). '.gif';

$tone_src = 'Themes/global_images/13moon/tone_' . str_pad($toneName, 2, '0', STR_PAD_LEFT). '.gif';


To this

$seal_src = 'http://www.YOUR_FORUM_PATH.com/Themes/global_images/13moon/seal_' . str_pad($signDays, 2, '0', STR_PAD_LEFT). '.gif';

$tone_src = 'http://www.YOUR_FORUM_PATH.com/Themes/global_images/13moon/tone_' . str_pad($toneName, 2, '0', STR_PAD_LEFT). '.gif';


and for the star signs change this

$img = '<img src="Themes/global_images/zodiac/'.strtolower($zodiac).'.gif" width="15" height="15" style="margin-bottom:2px;" alt="'.$zodiac.'" title="'.$words.'" />';


to this

$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.'" />';

hadesflames

u should make it so that next to the image it says which sign it is. like next to capricorn sign it says capricorn. i mean for the posts. u can also make it so that its optional to do that

Meira

Hello, I installed that mod in my forum of version 1.1.2 and theme Default, but it is not usually working. When installing, the images of the signs don't appear in the profile and nor in the messages of the topics. 
What can she make to solve that problem? 
 
I wait for an answer. 
Thank you very much!
Fórum PC Gamers venha fazer parte.
(Come to do part.)

L'AltroWeb

#11
Quote from: rastarasta on March 19, 2007, 09:03:22 AM
ok I have managed to solve the problem by changing the code in subs.php ...
Instead of entire url you can sample modify from:
<img src="Themes/default/images/zodiac/
to
<img src="/forum/Themes/default/images/zodiac/

My forum path is forum!
-
PS i have modify display.template.php and i have put code of modification here...
         // This shows the popular messaging icons.
         echo '
                        ', $message['member']['icq']['link'], '
                        ', $message['member']['msn']['link'], '
                        ', $message['member']['aim']['link'], '
                        ', $message['member']['yim']['link'], '<br />';

         // Show Zodiac starsign?
         if (isset($message['member']['birth_date']))
         {
            list ($birth_year, $birth_month, $birth_day) = sscanf($message['member']['birth_date'], '%d-%d-%d');
            $zodiac = getZodiac($birth_day, $birth_month);
            echo '
                           <div style="width:100%;" />', $zodiac['img'], '';
         }

         // Show the profile, website, email address, and personal message buttons.
see result  :)
http://darkwolf.altervista.org/forum/index.php?topic=5.msg10#msg10
PS for best result modify also Subs.php
   $img = '<img src="Themes/default/images/zodiac/'.strtolower($zodiac).'.gif" width="15" height="15" style="vertical-align:middle;" alt="'.$zodiac.'" title="'.$words.'" />'; to
   $img = '<img src="Themes/default/images/zodiac/'.strtolower($zodiac).'.gif" width="15" height="15" alt="'.$zodiac.'" title="'.$words.'" />';  ;)
PPS sorry for my bad english  :-[
-
I have make the same modification to PersonalMessage.template.php  ;)

Meira

#12
It is not giving right also in my forum... why will be?

It is going the files enclosed "display.template.php and subs.php", analyze and verify what it is wrong, please.
Fórum PC Gamers venha fazer parte.
(Come to do part.)

Kindred

Quote from: rastarasta on March 19, 2007, 09:03:22 AM
ok I have managed to solve the problem by changing the code in subs.php

For the moon signs change this

$seal_src = 'Themes/global_images/13moon/seal_' . str_pad($signDays, 2, '0', STR_PAD_LEFT). '.gif';

$tone_src = 'Themes/global_images/13moon/tone_' . str_pad($toneName, 2, '0', STR_PAD_LEFT). '.gif';


To this

$seal_src = 'http://www.YOUR_FORUM_PATH.com/Themes/global_images/13moon/seal_' . str_pad($signDays, 2, '0', STR_PAD_LEFT). '.gif';

$tone_src = 'http://www.YOUR_FORUM_PATH.com/Themes/global_images/13moon/tone_' . str_pad($toneName, 2, '0', STR_PAD_LEFT). '.gif';


and for the star signs change this

$img = '<img src="Themes/global_images/zodiac/'.strtolower($zodiac).'.gif" width="15" height="15" style="margin-bottom:2px;" alt="'.$zodiac.'" title="'.$words.'" />';


to this

$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.'" />';


BTW: There is no need to hardcode the url... you should use one of the SMF variables to fix the display of the images.   I'll post the corrected code his weekend when I get back to my development machine.
Сл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."

Meira

Thank you, I will wait on the weekend for the correct code to do the images of the signs they appear at my forum. 
 
Thankful,   
Meira.
Fórum PC Gamers venha fazer parte.
(Come to do part.)

Meira

Hi, Kindred.

I am waiting as it is done to apply the modification so that the images of the signs appear in the profiles and messages. 
Fórum PC Gamers venha fazer parte.
(Come to do part.)

Kindred

hmmm....   my function does not call for seal_src, it calls for seal_pic..

but anyway...   replace the call for the hardcoded url to this:

$settings['default_images_url'] . '/13moon/seal_'
i.e.

$seal_pic = $settings['default_images_url'] . '/13moon/seal_' . str_pad($signDays, 2, '0', STR_PAD_LEFT). '.gif';

$tone_pic = $settings['default_images_url'] . '/13moon/tone_' . str_pad($toneName, 2, '0', STR_PAD_LEFT). '.gif';

$tone_img = '<img src="'.$tone_pic.'" width="25" height="21" alt="'.$theTone.'" title="'.$theTone.': '.$toneInfo.'" />';

$seal_img = '<img src="' . $seal_pic . '" width="21" height="21" alt="'.$signName.' - '. $signDesc[$signDays] .'" title="'.$signName.' '. $signDesc[$signDays] .'" />';

for the seal stuff and

$img = '<img src="'.$settings['default_images_url'] . '/zodiac/'.strtolower($zodiac).'.gif" width="15" height="15" style="margin-bottom:2px;" alt="'.$zodiac.'" title="'.$words.'" />';

for the zodiac stuff.
Сл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."

Meira

The sign is only appearing in my profile and in my messages, but the one of the other users doesn't appear.&nbsp; &nbsp;
I am him passing the file SUBS.PHP to analyze it for me, please.

I only use the mod " Zodiac Starsigns ", that just places the signs in the profile and in the messages... doesn't have anything of moons.
Fórum PC Gamers venha fazer parte.
(Come to do part.)

fakeDecoy

It's a great mod, but the Zodiac signs are inaccurate. July 23 gives Cancer, and it should be Leo. Or is it going by Vedic astrology? If so, any way to adjust it to Western?

Kindred

Quote from: Meira on July 09, 2007, 11:07:08 PM
The sign is only appearing in my profile and in my messages, but the one of the other users doesn't appear.&nbsp; &nbsp;
I am him passing the file SUBS.PHP to analyze it for me, please.

I only use the mod " Zodiac Starsigns ", that just places the signs in the profile and in the messages... doesn't have anything of moons.

Meira,

What would the subs.php have to do with this?
If it works for you and not for one user... it might be that the user did not enter a birth date?

Quote from: fakeDecoy on August 05, 2007, 12:16:56 AM
It's a great mod, but the Zodiac signs are inaccurate. July 23 gives Cancer, and it should be Leo. Or is it going by Vedic astrology? If so, any way to adjust it to Western?

Different groups, even in Western astrology interpret the cusp as different dates as well...
Сл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."

Advertisement: