Results 1 to 9 of 9

Thread: Neopets coding help!

  1. #1
    Jeongyeon's Avatar
    Joined
    Jul 2013
    Posts
    428
    Userbars
    22
    Thanks
    58
    Thanked
    271/127
    DL/UL
    82/0
    Mentioned
    101 times
    Time Online
    73d 13h 30m
    Avg. Time Online
    26m

    Neopets coding help!

    So I recently found premade pet lookup coding that I love. However, it was created back in 2016 so it is not updated and it errors out whenever I try to use it. (PS. I already followed the creator's instructions)

    Here is the petpage: (you need an account to see links)

    Bottom right (Water Kyrii pet) is the one Im interested in.

    Ive played around with the coding but I cant seem to get it to work.
    If anyone can try to fix it so that it works, please help out! I will rep/tip... w/e. I just want this pet lookup coding.

    Thanks much!

  2. #2
    Rattata's Avatar
    Joined
    Apr 2019
    Posts
    621
    Pronouns
    he/they
    Userbars
    42
    Thanks
    621
    Thanked
    1,789/468
    DL/UL
    2/0
    Mentioned
    43 times
    Time Online
    16d 16h 1m
    Avg. Time Online
    12m
    Works OK for me

    here's the code:

    Code:
    <style>
    a{color:#175853!important;transition:all .2s}
    a:hover{color:#CFABA9!important}
    blockquote b{font-weight:bold;font-size:11px}
    blockquote{font-size:11px;display:inline-block;height:300px;width:285px;margin:0 0 0 15px;overflow:auto;padding-right:5px}
    tr, td, div, body, td.contentModuleContent, b{font:8px verdana}
    [style="border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4;"] img, .contentModuleHeaderAlt, .contentModuleHeader, .contentModuleContent #pet_rating, #ban_bottom, #ban, .slug, .adBox2, .ad_wrapper_fixed, .sidebar, #header, #footer, table + br, img + .contentModule div, [style="font-weight: bold; font-size: 18px;"] img,.contentModuleContent table a:first-child{display:none}
    #main{margin-top:0;display:table-cell;vertical-align:middle}
    .contentModuleContent.medText img{float:left;margin-left:30px;height:60px;width:60px}
    #main,.contentModuleContent{background:0}
    #content{margin:auto;width:950px;display:block}
    html,body,#main{height:100%;width:100%;margin:0}
    body{display:table}
    .contentModuleContent table a img{visibility:hidden}
    .contentModuleContent table a{display:inline-block;background:url('http://i.imgur.com/84HYOEb.gif');height:7px;width:18px}
    [cellpadding="2"] a{background:0!important;display:inline!important}
    .content div + br + table[border="0"]{width:662px;display:block;float:right;margin-right:-40px;background:0}
    body{background:url('http://i.imgur.com/NEVruyT.jpg') no-repeat center/cover fixed}
    img + .contentModule{width:300px}
    table + br + [align="center"]{position:fixed;top:50%;margin-top:120px;left:50%;margin-left:160px;width:300px;height:50px;overflow:hidden}
    table + br + [align="center"]:hover{overflow:visible}
    table + br + [align="center"] img{width:48px;height:48px}
    .content{background:rgba(255, 255, 255, 0.8);border-radius:20px}
    table, td,.contentModule, #main{border:0!important}
    [style="border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4;"]{width:290px}
    </style>

    is there anything in particular that it's doing/not doing? i just put it in my petpage and hit preview and it looked ok
    Last edited by Rattata; 01-28-2024 at 05:13 AM.

  3. #3
    Jeongyeon's Avatar
    Joined
    Jul 2013
    Posts
    428
    Userbars
    22
    Thanks
    58
    Thanked
    271/127
    DL/UL
    82/0
    Mentioned
    101 times
    Time Online
    73d 13h 30m
    Avg. Time Online
    26m
    Quote Originally Posted by Rattata View Post
    Works OK for me

    here's the code:

    Code:
    <style>
    a{color:#175853!important;transition:all .2s}
    a:hover{color:#CFABA9!important}
    blockquote b{font-weight:bold;font-size:11px}
    blockquote{font-size:11px;display:inline-block;height:300px;width:285px;margin:0 0 0 15px;overflow:auto;padding-right:5px}
    tr, td, div, body, td.contentModuleContent, b{font:8px verdana}
    [style="border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4;"] img, .contentModuleHeaderAlt, .contentModuleHeader, .contentModuleContent #pet_rating, #ban_bottom, #ban, .slug, .adBox2, .ad_wrapper_fixed, .sidebar, #header, #footer, table + br, img + .contentModule div, [style="font-weight: bold; font-size: 18px;"] img,.contentModuleContent table a:first-child{display:none}
    #main{margin-top:0;display:table-cell;vertical-align:middle}
    .contentModuleContent.medText img{float:left;margin-left:30px;height:60px;width:60px}
    #main,.contentModuleContent{background:0}
    #content{margin:auto;width:950px;display:block}
    html,body,#main{height:100%;width:100%;margin:0}
    body{display:table}
    .contentModuleContent table a img{visibility:hidden}
    .contentModuleContent table a{display:inline-block;background:url('http://i.imgur.com/84HYOEb.gif');height:7px;width:18px}
    [cellpadding="2"] a{background:0!important;display:inline!important}
    .content div + br + table[border="0"]{width:662px;display:block;float:right;margin-right:-40px;background:0}
    body{background:url('http://i.imgur.com/NEVruyT.jpg') no-repeat center/cover fixed}
    img + .contentModule{width:300px}
    table + br + [align="center"]{position:fixed;top:50%;margin-top:120px;left:50%;margin-left:160px;width:300px;height:50px;overflow:hidden}
    table + br + [align="center"]:hover{overflow:visible}
    table + br + [align="center"] img{width:48px;height:48px}
    .content{background:rgba(255, 255, 255, 0.8);border-radius:20px}
    table, td,.contentModule, #main{border:0!important}
    [style="border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4;"]{width:290px}
    </style>

    is there anything in particular that it's doing/not doing? i just put it in my petpage and hit preview and it looked ok
    Preview works but when you actually hit submit, it error out.

    Invalid words or disallowed property names found in your style tags.

    position


    Invalid words or disallowed element names found in your style tags. (Class or ID names must be preceded with a . or #).

    all
    html

  4. #4
    Rattata's Avatar
    Joined
    Apr 2019
    Posts
    621
    Pronouns
    he/they
    Userbars
    42
    Thanks
    621
    Thanked
    1,789/468
    DL/UL
    2/0
    Mentioned
    43 times
    Time Online
    16d 16h 1m
    Avg. Time Online
    12m
    Quote Originally Posted by Jeongyeon View Post
    Preview works but when you actually hit submit, it error out.

    Invalid words or disallowed property names found in your style tags.

    position


    Invalid words or disallowed element names found in your style tags. (Class or ID names must be preceded with a . or #).

    all
    html
    Ah, I see I see! Tbh you can remove some of those without it really affecting the layout. html shouldn't really be there anyway, !important;transition:all .2s you can just remove.

    the removal of the fixed position is a bit annoying though. I can make it appear in roughly the same position with float but it'll put your trophies up there too,. Which might be nice??

    Code:
    <style>
    a{color:#175853}
    a:hover{color:#CFABA9!important}
    blockquote b{font-weight:bold;font-size:11px}
    blockquote{font-size:11px;display:inline-block;height:300px;width:285px;margin:0 0 0 15px;overflow:auto;padding-right:5px}
    tr, td, div, body, td.contentModuleContent, b{font:8px verdana}
    [style="border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4;"] img, .contentModuleHeaderAlt, .contentModuleHeader, .contentModuleContent #pet_rating, #ban_bottom, #ban, .slug, .adBox2, .ad_wrapper_fixed, .sidebar, #header, #footer, table + br, img + .contentModule div, [style="font-weight: bold; font-size: 18px;"] img,.contentModuleContent table a:first-child{display:none}
    #main{margin-top:0;display:table-cell;vertical-align:middle}
    .contentModuleContent.medText img{float:left;margin-left:30px;height:60px;width:60px}
    #main,.contentModuleContent{background:0}
    #content{margin:auto;width:950px;display:block}
    body,#main{height:100%;width:100%;margin:0}
    body{display:table}
    .contentModuleContent table a img{visibility:hidden}
    .contentModuleContent table a{display:inline-block;background:url('http://i.imgur.com/84HYOEb.gif');height:7px;width:18px}
    [cellpadding="2"] a{background:0!important;display:inline!important}
    .content div + br + table[border="0"]{width:662px;display:block;float:right;margin-right:-40px;background:0}
    body{background:url('http://i.imgur.com/NEVruyT.jpg') no-repeat center/cover fixed}
    img + .contentModule{width:300px}
    table + br + [align="center"]{float:left;height:50px;overflow:hidden}
    table + br + [align="center"]:hover{overflow:visible}
    table + br + [align="center"] img{width:48px;height:48px}
    .content{background:rgba(255, 255, 255, 0.8);border-radius:20px}
    table, td,.contentModule, #main{border:0!important}
    [style="border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4;"]{width:290px}
    </style>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>

  5. The Following User Says Thank You to Rattata For This Useful Post:

    Jeongyeon (01-28-2024)

  6. #5
    Jeongyeon's Avatar
    Joined
    Jul 2013
    Posts
    428
    Userbars
    22
    Thanks
    58
    Thanked
    271/127
    DL/UL
    82/0
    Mentioned
    101 times
    Time Online
    73d 13h 30m
    Avg. Time Online
    26m
    Quote Originally Posted by Rattata View Post
    Ah, I see I see! Tbh you can remove some of those without it really affecting the layout. html shouldn't really be there anyway, !important;transition:all .2s you can just remove.

    the removal of the fixed position is a bit annoying though. I can make it appear in roughly the same position with float but it'll put your trophies up there too,. Which might be nice??

    Code:
    <style>
    a{color:#175853}
    a:hover{color:#CFABA9!important}
    blockquote b{font-weight:bold;font-size:11px}
    blockquote{font-size:11px;display:inline-block;height:300px;width:285px;margin:0 0 0 15px;overflow:auto;padding-right:5px}
    tr, td, div, body, td.contentModuleContent, b{font:8px verdana}
    [style="border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4;"] img, .contentModuleHeaderAlt, .contentModuleHeader, .contentModuleContent #pet_rating, #ban_bottom, #ban, .slug, .adBox2, .ad_wrapper_fixed, .sidebar, #header, #footer, table + br, img + .contentModule div, [style="font-weight: bold; font-size: 18px;"] img,.contentModuleContent table a:first-child{display:none}
    #main{margin-top:0;display:table-cell;vertical-align:middle}
    .contentModuleContent.medText img{float:left;margin-left:30px;height:60px;width:60px}
    #main,.contentModuleContent{background:0}
    #content{margin:auto;width:950px;display:block}
    body,#main{height:100%;width:100%;margin:0}
    body{display:table}
    .contentModuleContent table a img{visibility:hidden}
    .contentModuleContent table a{display:inline-block;background:url('http://i.imgur.com/84HYOEb.gif');height:7px;width:18px}
    [cellpadding="2"] a{background:0!important;display:inline!important}
    .content div + br + table[border="0"]{width:662px;display:block;float:right;margin-right:-40px;background:0}
    body{background:url('http://i.imgur.com/NEVruyT.jpg') no-repeat center/cover fixed}
    img + .contentModule{width:300px}
    table + br + [align="center"]{float:left;height:50px;overflow:hidden}
    table + br + [align="center"]:hover{overflow:visible}
    table + br + [align="center"] img{width:48px;height:48px}
    .content{background:rgba(255, 255, 255, 0.8);border-radius:20px}
    table, td,.contentModule, #main{border:0!important}
    [style="border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4;"]{width:290px}
    </style>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    <p>Let's put in a lot of test text to see what it looks like</p><p>Hi this is my neopet his name is massive boogers</p>
    The trophy positioning is ok if it can be centered. Any chance this is possible?

  7. #6
    Rattata's Avatar
    Joined
    Apr 2019
    Posts
    621
    Pronouns
    he/they
    Userbars
    42
    Thanks
    621
    Thanked
    1,789/468
    DL/UL
    2/0
    Mentioned
    43 times
    Time Online
    16d 16h 1m
    Avg. Time Online
    12m
    Quote Originally Posted by Jeongyeon View Post
    The trophy positioning is ok if it can be centered. Any chance this is possible?
    kinda tricky without access to position tag unfortunately, for some reason the element is table div img and that sucks, no classes, so doing any adjustment to them would affect some parts of your neopet and your petpet as well.

  8. #7
    Feline's Avatar
    Joined
    May 2015
    Posts
    61
    Userbars
    2
    Thanks
    107
    Thanked
    76/21
    DL/UL
    7/0
    Mentioned
    37 times
    Time Online
    59d 5h 25m
    Avg. Time Online
    26m
    @(you need an account to see links)
    I've wanted to use this pet lookup myself for ages, is it okay if I use your fixed coding too please?

  9. #8
    Rattata's Avatar
    Joined
    Apr 2019
    Posts
    621
    Pronouns
    he/they
    Userbars
    42
    Thanks
    621
    Thanked
    1,789/468
    DL/UL
    2/0
    Mentioned
    43 times
    Time Online
    16d 16h 1m
    Avg. Time Online
    12m
    Quote Originally Posted by Feline View Post
    @(you need an account to see links)
    I've wanted to use this pet lookup myself for ages, is it okay if I use your fixed coding too please?
    of course, go right ahead!
    i'll even let you remove the boogers text lmao

    frontend work isn't really my specialty so if anybody else has any improvements they should also jump in lol

  10. The Following User Says Thank You to Rattata For This Useful Post:

    Feline (01-28-2024)

  11. #9
    Feline's Avatar
    Joined
    May 2015
    Posts
    61
    Userbars
    2
    Thanks
    107
    Thanked
    76/21
    DL/UL
    7/0
    Mentioned
    37 times
    Time Online
    59d 5h 25m
    Avg. Time Online
    26m
    Quote Originally Posted by Rattata View Post
    of course, go right ahead!
    i'll even let you remove the boogers text lmao

    frontend work isn't really my specialty so if anybody else has any improvements they should also jump in lol
    Thank you so much c:
    I tried to fix it myself some time ago and all I managed to do was mess it up further haha

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •