Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 08-28-2011, 01:19 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 116,992
SilverDragonTears is on a distinguished road
Default

should i do this in the family tree script in premium area? since this was a premium mod?
__________________

Check out SilvaTales
Reply With Quote
  #12  
Old 08-28-2011, 01:21 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 626,240
Hall of Famer is on a distinguished road
Default

Well just send me a PM if you want to, I can get back to you soon.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #13  
Old 08-28-2011, 01:22 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 116,992
SilverDragonTears is on a distinguished road
Default

PM sent =)
__________________

Check out SilvaTales
Reply With Quote
  #14  
Old 08-28-2011, 01:36 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 626,240
Hall of Famer is on a distinguished road
Default

Guess I understand how family tree works now. The $mother or $father is the $parentid I was referring to. You can ignore the first step and modify the second step as:

PHP Code:
if(isset($mother)){
    
$query "SELECT * FROM {$prefix}owned_adoptables,  
                            
{$prefix}adoptables  WHERE {$prefix}owned_adoptables.mother = '{$mother}
                                                 AND 
{$prefix}adoptables.type = {$prefix}owned_adoptables.type 
                                                 ORDER BY 
{$prefix}owned_adoptables.aid";
    
$result runquery($query);
}
if(isset(
$father)){
    
$query "SELECT * FROM {$prefix}owned_adoptables,  
                            
{$prefix}adoptables  WHERE {$prefix}owned_adoptables.father = '{$father}
                                                 AND 
{$prefix}adoptables.type = {$prefix}owned_adoptables.type 
                                                 ORDER BY 
{$prefix}owned_adoptables.aid";
    
$result runquery($query);

It seems that you may need to either write a new script file or create a subpage for familytree.php to display an adoptables' children.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #15  
Old 08-28-2011, 01:39 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 116,992
SilverDragonTears is on a distinguished road
Default

=/ how do i do that? lol!
told you my coding isn't great yet
__________________

Check out SilvaTales
Reply With Quote
  #16  
Old 08-28-2011, 01:46 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 626,240
Hall of Famer is on a distinguished road
Default

Oh I see, I will find another time(maybe next week) to rewrite the entire familytree.php for you.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #17  
Old 08-28-2011, 01:51 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 116,992
SilverDragonTears is on a distinguished road
Default

alright =) and one more small thing. if i have this code

Code:
if($numpets >= 50){
        $article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='http://media.giantbomb.com/media/bomb/img/achievements/trophy-bronze.png' title='Bronze Trophy'></div>";
} else if($numpets >= 200){
        $article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/silvertrophy.png' title='Silver Trophy'></div>";
} else if($numpets >= 500){
        $article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='http://media.giantbomb.com/media/bomb/img/achievements/trophy-gold.png' title='Gold Trophy'></div>";
}
which isn't right b/c it isn't working. what i want to do is show a bronze tropy if the member has 60 or less pets
silver trophy if the have 200 or less
and gold if 500 or more

but the code i have either shows all the trophies or only if they have that exact amount =/


EDIT::
I was doing it backwards eh?
Code:
if($numpets >= 500){
        $article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/trophy-gold.png' title='Gold Trophy'></div>";
} else if($numpets <=50 && $numpets <= 200){
        $article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/silvertrophy.png' title='Silver Trophy'></div>";
} else if($numpets != 50){
        $article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/trophy-bronze.png' title='Bronze Trophy'></div>";
}else{
        $article_content .= "";
}
no still not working correctly.


second EDIT::
i think this is correct...
Code:
if($numpets >= 500){
        $article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/trophy-gold.png' title='Gold Trophy'></div>";
} else if($numpets >= 200){
        $article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/silvertrophy.png' title='Silver Trophy'></div>";
} else if($numpets >= 50){
        $article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/trophy-bronze.png' title='Bronze Trophy'></div>";
}else{
        $article_content .= "";
}
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 08-28-2011 at 02:17 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Just A Few Questions: Mousewhisper Questions and Supports 4 04-14-2012 07:05 PM
Just some Questions i have. rickasawr Questions and Supports 3 04-30-2011 11:04 PM
Some Questions? :) blondbananamix Questions and Supports 10 04-25-2011 01:47 PM
two questions RoconzaArt Questions and Supports 10 02-24-2011 09:15 AM


All times are GMT -5. The time now is 10:13 AM.

Currently Active Users: 2659 (0 members and 2659 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636