Naming and Changing Help

Forum
Last Post
Threads / Messages

whispwill

Member
Member
Joined
Aug 27, 2009
Messages
6
Points
0
Mysidian Dollar
0
So I've been using the premade script provided here and I must say it's very nice and easy to use however I have a few questions or idea's that I would like help with.

The first would be is there anyway to show the level and name of the pets on the actual image itself rather then below it in normal editable text? Like It's name would literally be part of the image and so would it's level. I know a difficult way to put the level on the pets (simply by uploading thousands of images with different levels on it and adding it to every stage) but it seems pointless. So is there anyway of allowing each user to pick the name of their choosing and attach it to the image without uploading a ton of images, and is there anyway to show the level?
Much like here: http://www.squiby.net/ (see how the different names and levels are shown but are part of the image?)

The second thing is the alternate outcomes. If you allow someone to get a possible alternate outcome, how can you continue that outcome? Say you hatched and egg and instead of the creature being blue you got a gold one only to find that when it evolved to the next stage it was blue again. My question is how do you keep the gold creature gold throughout it's life and how do you prevent a blue creature from becoming said gold creature later in it's life?

I would love to learn how to add those idea's to my site so if anyone would be so kind as to help me :)

Thank you
 
Both of what you have suggested are already possible. As for adding the name on the image, you can do this very easily. In your Admin CP go to Site Settings > View or Edit Adoptable Signature Image Settings / GD Settings and make sure the "Enable GD Signature Images for GIF files" option is enabled. This will print the adoptable's name and owner on the image. For this to work, however, your adoptables images must be .gif files and your server must have the GD image libraries installed. :)

As far as alternate outcomes go, that's exactly how it works now. The key is when you add a new level you have to add both sets of images, one for the normal outcome and one for the alternate. Once an adoptable has switched to the alternate outcome it will ONLY use the alternate outcome images you have selected. :)

Thanks,
Brandon
 
Oh heh, alright one last thing. I'm sure the answer is easy but I need help.

What is a GD Library, how can I link it to the images/the site, how can i tell if my host supports GD libraries?
 
The GD image library allows your server to work with image files and modify them.

More Info: http://www.boutell.com/gd/

When you installed the script you should have been shown whether or not your server supported the GD image library by the automated installer. :)
 
Alright I'm really sorry for all the questions, but here's what I've gotten:

•The GD supported passed on installation
•The images are gif images
•"Enable GD Signature Images for GIF files" is enabled
•My site is here: http://www.melonberrytea.exofire.net/adoptables/

What am I missing because I'm still not seeing the name on the image itself, and is it possible to show the level?

(might have one more questions ^^;)
 
See, it shows up:
http://www.melonberrytea.exofire.net/adoptables/siggy.php?id=1

It only shows for the signature images though, when people show the pet in their forum signature. :)
 
Oh i see, thank you so much for all your help hehe.

Is there anyway of changing the font and what is says by chance XD?

(and thank you thank you so much!)
 
Yes, you can change the text and font size.

In siggy.php look for this code:

PHP:
$str1 = "Name: ".$name;
	$str2 = "Owner: ".$owner;
	$str3 = "Click Here to Feed Me!";
	$str4 = "More Adopts at:";
	$str5 = "www.".$domain;


	imagestring ($image, 12, 0, $textheight,  $str1, $color);
	imagestring ($image, 12, 0, $textheight + 13,  $str2, $color);
	imagestring ($image, 12, 0, $textheight + 26,  $str3, $color);
	imagestring ($image, 12, 0, $textheight + 42,  $str4, $color);
	imagestring ($image, 12, 0, $textheight + 55,  $str5, $color);

The 12's in the code are the font size. The other numbers, such as 13, 26 etc control line spacing. You can edit the text in the $str variables to whatever you want. :)
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top