News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Zodiac Starsigns

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

Previous topic - Next topic

Kindred

Manu,

A little lower down on the page...

Quote from: Kindred on July 09, 2007, 12:38:38 PM
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.'" />';

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

Manu.G

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

When I using this code the url for the images is wrong:
http://forum.arseniums.com/zodiac/pisces.gif the url must be:
http://forum.arseniums.com/Themes/default/images/zodiac/pisces.gif
I really don't know why the code up wont work correct, cause I'm a loser
in php.  :'(
Version SMF 2.0.8
SimplePortal 2.3.5

Kindred

If the code does not work, that really indicates that you have a problem in your theme configuration.

try running reapir_settings.php and check that your default theme/images directory is actually set correctly.
Сл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."

Manu.G

#43
Quote from: Kindred on September 21, 2007, 10:46:15 AM
If the code does not work, that really indicates that you have a problem in your theme configuration.

try running reapir_settings.php and check that your default theme/images directory is actually set correctly.

I moved last week the forum, cause lots of things were going wrong.
After I had finish I loaded up the repair_settings.php and checked everything
with it and corrected with the repair_settings.php wrong configurations. ;)

At the moment I using this code:
Quote$img = '<img src="http://forum.arseniums.com/Themes/default/images/zodiac/'.strtolower($zodiac).'.gif" width="15" height="15" style="margin-bottom:2px;" alt="'.$zodiac.'" title="'.$words.'" />';
in my Subs.php and the images are shown in the profile by the postings.
Here is the url for the zodiac pisces http://forum.arseniums.com/Themes/default/images/zodiac/pisces.gif

Please tell me were my theme configurations are wrong. :)
Version SMF 2.0.8
SimplePortal 2.3.5

Kindred

if this variable:
$settings['default_images_url'] 
is not printing this string:
http://www.forum.arseniums.com/Themes/default/images

then you have something misconfigured.
Сл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."

Manu.G

Quote from: Kindred on September 21, 2007, 02:32:28 PM
if this variable:
$settings['default_images_url'] 
is not printing this string:
http://www.forum.arseniums.com/Themes/default/images

then you have something misconfigured.
I used for installing the package manager and the install was successfully, I got
no error messages. In the profile itself the images were shown, only in the profile of
the postings the images weren't seen.
When I use the code you showed, the url for the zodiac images looks like this:
http://forum.arseniums.com/zodiac/pisces.gif  :'(

Could be something is wrong in the settings of the forum, but why doesn't the repair_settings.php show it  ???
Version SMF 2.0.8
SimplePortal 2.3.5

L'AltroWeb

Hi!
One question please:
Can i delete index.php file in the zodiac image directory?
What is utility of this index.php file?
Because if i go to:
http;//www,mysite,xx/forum/Themes/default/images/zodiac/index.php
i receive:
Quote// Look for Settings.php.... if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php')) { // Found it! require(dirname(dirname(__FILE__)) . '/Settings.php'); header('Location: ' . $boardurl); } // Can't find it... just forget it. else exit;
:-\

TrueSatan

Leave the file in place please...having an index.php file there add an extra level of security to your site by way of preventing an outsider listing the contents of a directory and then being able to use the files therein directly...say by using your hosting for the images for his/her site rather than hosting them him/her self.

L'AltroWeb

#48
Quote from: TrueSatan on November 30, 2007, 08:41:40 PM
Leave the file in place please...having an index.php file there add an extra level of security to your site by way of preventing an outsider listing the contents of a directory and then being able to use the files therein directly...say by using your hosting for the images for his/her site rather than hosting them him/her self.
ok thanks!
But in this case isn't a problem for me because my host (altervista) doesn't permit listing of directory  :)
For this reason i can delete  ;)
-
NB in any case to work correctly this file change from:
// Look for Settings.php....
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
{
// Found it!
require(dirname(dirname(__FILE__)) . '/Settings.php');
header('Location: ' . $boardurl);
}
// Can't find it... just forget it.
else
exit;
to:
<?php

// This file is here solely to protect your zodiac image directory.

Header("Location:../../");

?>
  ;)

Jade Elizabeth

is there a way i can put the starsign infront of the traits?
so it would say "TAURUS: trait trait trait" on hover?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Island Wave

Quote from: Alundra on January 11, 2008, 12:03:27 AM
is there a way i can put the starsign infront of the traits?
so it would say "TAURUS: trait trait trait" on hover?

If you'd like to add the text for the Zodiac sign when you hover over you can edit /Sources/subs.php and replace


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


with..


$img = '<img src="'.$settings['default_images_url'].'/zodiac/'.strtolower($zodiac).'.gif" width="15" height="15" style="vertical-align:middle;" alt="'.$zodiac.'" title="'. strtoupper($zodiac) . " - " . $words.'" />';

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

perplexed

when you hold your cursor over the starsign it displays the traits but it seems to cut off the end

example

Sensitive, Compassionate, Imaginative, Adaptable, Intuititve, Idealistic, Secretive, Vuln...

So it cuts off in the middle of the word at the end.  Is this normal or is there something wrong with it?

Thanks

Advertisement: