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
  #1  
Old 02-21-2014, 04:50 AM
squiggler's Avatar
squiggler squiggler is offline
Squiggling since 1995
 
Join Date: Jul 2013
Posts: 185
Gender: Unknown/Other
Credits: 8,103
squiggler is on a distinguished road
Default Help Making Stats Page = Click Page & Lineages?

Hi all! I was wondering how to do two things:
1. Getting the stats on the click page. It'll probably entice guests more if they can read an interesting description. (Also getting the egg, junior, and adult descriptions unlocked as the adoptable grows.)
2. Lineages. IntoRain has been wonderful in getting the mother and father listed on the stats page, and it's better than nothing, but I really want lineages. Some thoughts I've had regarding it:
-The way it's working in my head is you call the IDs of the parents and display their images with links. Then you call the IDs of their parents, etc., etc. Or maybe when they breed, it creates a lineage page and references the database to find out if a lineage page exists for the pair and adds to it. But I'm not a coder, so.
-We found this site: http://www.pedigreequery.com/generator/
If nothing else can be done, having something like this where they can manually input their creatures would be okay. (Very cumbersome, though.) It'd be nice if they could type in the IDs and then hit send and it would update with linked images. They could then save it to their computer or maybe even the site?

Thanks in advance for any help you can provide.
__________________
Avatar courtesy of Doll Divine.
Reply With Quote
  #2  
Old 02-21-2014, 12:48 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,259
IntoRain is on a distinguished road
Default

The problem isn't calling the IDs of everything, it's doing the correct math to fit the images into a table xD For example if we have an adoptable and two parents:

<tr>
<td rowspan="2">Adoptable</td>
<td>Mother</td>
</tr>
<tr>
<td>Father</td>
</tr>

With an adoptable, the parents and the grandparents:

<tr>
<td rowspan="4">Adoptable</td>
<td rowspan="2">Mother</td>
<td>Mother'sMother</td>
</tr>
<tr>
<td>Mother'sFather</td>
</tr>
<tr><td rowspan="2">Father</td>
<td>Father'sMother</td></tr>
<tr><td>Father'sFather</td></tr>

And we'd probably have to use recursion, which is something I don't exactly exactly know how to stop.

I hope there's another way of doing it, instead of being hard-coded.
__________________


asp.net stole my soul.
Reply With Quote
  #3  
Old 02-22-2014, 04:42 AM
squiggler's Avatar
squiggler squiggler is offline
Squiggling since 1995
 
Join Date: Jul 2013
Posts: 185
Gender: Unknown/Other
Credits: 8,103
squiggler is on a distinguished road
Default

Okay, this is the code from the pedigree chart:

HTML Code:
<!-- Begin Pedigree Table -->

     <style>
    .male {
        background-color: #CCCCCC;
        color: #000000;
        font-family: Arial;
        font-size: 8pt;
        text-align: center;
        vertical-align: middle;
        border-collapse: collapse; 
        border: 1px solid #000000;
    }

    .female {
        background-color: #FFFFFF;
        color: #000000;
        font-family: Arial;
        font-size: 8pt;
        text-align: center;
        vertical-align: middle;
        border-collapse: collapse; 
        border: 1px solid #000000;
    }
     </style>

     <table border="0" cellpadding="0" width='95%'>
     <tr><td>
     <table style="border: 1px solid #000000; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0" width="100%">
     <tr>
    <td rowspan='32' width='17%' class='male'>&nbsp;</td>
    <td rowspan='16' width='17%' class='male'>&nbsp;</td>
    <td rowspan='8' width='17%' class='male'>&nbsp;</td>
    <td rowspan='4' width='17%' class='male'>&nbsp;</td>
    <td rowspan='2' width='17%' class='male'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='2' width='17%' class='female'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='4' width='17%' class='female'>&nbsp;</td>
    <td rowspan='2' width='17%' class='male'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='2' width='17%' class='female'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='8' width='17%' class='female'>&nbsp;</td>
    <td rowspan='4' width='17%' class='male'>&nbsp;</td>
    <td rowspan='2' width='17%' class='male'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='2' width='17%' class='female'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='4' width='17%' class='female'>&nbsp;</td>
    <td rowspan='2' width='17%' class='male'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='2' width='17%' class='female'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='16' width='17%' class='female'>&nbsp;</td>
    <td rowspan='8' width='17%' class='male'>&nbsp;</td>
    <td rowspan='4' width='17%' class='male'>&nbsp;</td>
    <td rowspan='2' width='17%' class='male'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='2' width='17%' class='female'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='4' width='17%' class='female'>&nbsp;</td>
    <td rowspan='2' width='17%' class='male'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='2' width='17%' class='female'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='8' width='17%' class='female'>&nbsp;</td>
    <td rowspan='4' width='17%' class='male'>&nbsp;</td>
    <td rowspan='2' width='17%' class='male'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='2' width='17%' class='female'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='4' width='17%' class='female'>&nbsp;</td>
    <td rowspan='2' width='17%' class='male'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
    <td rowspan='2' width='17%' class='female'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
     </tr><tr>
    <td rowspan='1' width='17%' class='female'>&nbsp;</td>
     </tr><tr>
     </table>
     </td><tr>
     <tr><td align='right' valign='top' style='padding-top: 0px margin-top: 0px; font-size:8pt; font-family: Arial'><a href='http://www.pedigreequery.com/'>Pedigree</a> generated by PedigreeQuery.com
     </td><tr>
     </table>

    <!-- End Pedigree Table -->
The part that interests me is this:
HTML Code:
    <td rowspan='32' width='17%' class='male'>&nbsp;</td>
    <td rowspan='16' width='17%' class='male'>&nbsp;</td>
    <td rowspan='8' width='17%' class='male'>&nbsp;</td>
    <td rowspan='4' width='17%' class='male'>&nbsp;</td>
    <td rowspan='2' width='17%' class='male'>&nbsp;</td>
    <td rowspan='1' width='17%' class='male'>&nbsp;</td>
It seems to be a preset thing rather than a random one. Perhaps you can use this and substitute 'male' for the ID...and you'd need to account for a 2nd gen paired with a 1st gen by making a 'blank' image...am I making sense?

Oh, and I noticed the stats are now on the click page. Thank you very much!
__________________
Avatar courtesy of Doll Divine.
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
Editing Stats Page & Little Icon Glow Questions and Supports 4 12-07-2014 08:29 AM
Online list ... and a Stats Page for Players Missy Master Questions and Supports 2 07-07-2014 09:58 AM
Showing stats on click page Hwona Questions and Supports 9 05-07-2014 07:40 AM
Adopt Page & Pound Page change? tahbikat Questions and Supports 3 02-14-2014 03:19 PM
Random Adoptable Click page AlkseeyaKC Suggestions and Feature Requests 4 07-01-2011 02:49 PM


All times are GMT -5. The time now is 03:42 PM.

Currently Active Users: 443 (0 members and 443 guests)
Threads: 4,080, Posts: 32,024, 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 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636