View Full Version : show gender not until second level ?
draugluin
11-02-2011, 09:19 AM
Is there a way to show the gender not until the adoptable reach the first level ?
I don't want to show, what gender the EGG is. I only want to show the gender, if the egg hatched and we can see the babie :OHSHITALION:
draugluin
11-02-2011, 09:21 AM
oh ... and may it be possible, to show the parents, if someone has breed a new egg ?
oder alternate, show the owner, which breed the egg ?
SilverDragonTears
11-02-2011, 02:22 PM
I have both of these features on my site, unfortunately there was a lot of coding involved with showing the parents of a bred egg.
For hiding the gender of the egg I just did something like if ($currentlevel == '0'){
article_content . = '';
} and so on for any level that is an egg.
draugluin
11-03-2011, 01:39 AM
@ Silverdragontears
sounds good. Would you like to give me the whole script ?
SilverDragonTears
11-03-2011, 03:38 PM
what script? it isn't a script, it's just a modification to the coding.
PokePets
11-04-2011, 04:03 AM
You must place;
if ($currentlevel == '0'){
$gender = 'Unkown';
}
under where it defines gender.
SilverDragonTears
11-04-2011, 07:51 PM
well you don't have to do it that way. you'd have to change it in your profile.php, levelup.php, & myadopt.php so that those pages don't show it.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.