Tartarus

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Tartarus

The Underworld Of Lightly (& Logically) Moderated Discussion & Debate


+3
canterella
happycamper
Jesus Christ
7 posters

    Smile City Mods

    Wizz
    Wizz
    Mortal
    Mortal


    Smile City Mods - Page 2 Empty Smile City Mods

    Post  Wizz Wed Apr 08, 2009 10:19 am

    Blueberryjam has posted a thread in SC saying she feels bad because she narked on Waireka for posting the picture.
    avatar
    Jesus Christ
    Mortal
    Mortal


    Smile City Mods - Page 2 Empty Re: Smile City Mods

    Post  Jesus Christ Wed Apr 08, 2009 10:24 am

    debs wrote:Wai doesn't drink and she didn't post that picture

    She has only ever received one 2 day ban a very very long time ago.

    And while she posts prolifically, she always remains within the bounds of TOS so I can only imagine she must have a fairly clean record.

    Who can explain why admin do anything that they sometimes do, and they aren't known for explaining themselves......

    Well in this case the picture was definitely posted, whether by her or not. So it makes sense they've banned her, but for 12 months? Come on.
    master5o1
    master5o1
    Nymph
    Nymph


    Smile City Mods - Page 2 Empty Re: Smile City Mods

    Post  master5o1 Wed Apr 08, 2009 10:29 am

    Does that mean that I will be able to post again before she will?

    OMG
    avatar
    Jesus Christ
    Mortal
    Mortal


    Smile City Mods - Page 2 Empty Re: Smile City Mods

    Post  Jesus Christ Wed Apr 08, 2009 10:36 am

    When does your ban expire?

    Also, being the most tech-savvy person here, could you give us an insight into how one might have potentially framed Waireka? If at all?
    master5o1
    master5o1
    Nymph
    Nymph


    Smile City Mods - Page 2 Empty Re: Smile City Mods

    Post  master5o1 Wed Apr 08, 2009 1:34 pm

    Jesus Christ wrote:When does your ban expire?

    Also, being the most tech-savvy person here, could you give us an insight into how one might have potentially framed Waireka? If at all?

    Expiry: 11 Feb 2010.


    You might remember my earliest and more fun HTML foolery with the forum, I managed to "post" something into someone else's message, however, I had only done short text and/or a smiley, no real images.

    I used to simply set the margins on a particular html element to have top ~ -30px or so.

    Code:
    <span style="margin-top: -30px;"></span><br />

    I do remember that it didn't work for IE, so idk.


    Anyother such is using the same as JavaScript...


    Examining the forum code:


    For the Original Post:
    Code:
    <tr valign="top">
             <td class="general"><img src="../img/common/trans.gif" height="1" width="7"></td><td class="authorCol" style="width: 15%;" valign="top"><span class="userName">NigelfromNZ</span> <br><span class="dateTime">8/04/2009 6:02:22 PM</span></td>[b]<td [u]class="originalPost"[/u] style="width: 64%;" valign="top">He said he'd be back after three days and three nights, and he was executed on 'Preparation Day' -- the day before 'a special Sabbath', so was that special Sabbath the Passover on a Friday (followed, as normal by Sabbath on the last day of the week)? In the original Greek manuscripts Matthew 28 starts with "After the Sabbath<b><u>s</u></b> were over..."</td>[/b]<td class="actionCol" style="width: 21%;"><a href="/help/Contact.aspx?subcatid=21&amp;subject=Report%20forum%20topic%20179879%20post%206231327">Report this post</a><br></td>

    For the replies:
    Code:
    </tr><tr valign="top">
             <td class="general"><img src="../img/common/trans.gif" height="1" width="7"></td><td class="authorCol" style="width: 15%;" valign="top"><span class="userName">sir_rick</span> <img src="../Img/community/forum/forumStarGold.gif" class="forumStatus" alt="SmileCity Gold Member" border="0" height="12" width="14"><img src="../Img/community/forum/forumStarGreen.gif" class="forumStatus" alt="300+ exp" border="0" height="12" width="14"><br><span class="dateTime">8/04/2009 6:06:24 PM</span></td>[b]<td [u]class="post"[/u] style="width: 64%;" valign="top">He didn't die, Nigel.
    <br>
    <br>He and Mary of Magdala moved to France, and had a few sprogs.</td><td class="actionCol" style="width: 21%;"><a href="/help/Contact.aspx?subcatid=21&amp;subject=Report%20forum%20topic%20179879%20post%206231329">Report this post</a><br></td>[/b]
          </tr>


    One can utilise a "get element by class" type function where links to the HTML element by what the class name is, so any element that is either class originalPost or post is interesting, narrowing it down further we look for a <td> tag.

    The following JavaScript function I just found from Google and I don't exactly understand it line by line, however, the function name is rather easy to understand that it means what I want:

    Code:
    document.getElementsByClassName = function(cl) {
    var retnode = [];
    var myclass = new RegExp('\\b'+cl+'\\b');
    var elem = this.getElementsByTagName('*');
    for (var i = 0; i < elem.length; i++) {
    var classes = elem[i].className;
    if (myclass.test(classes)) retnode.push(elem[i]);
    }
    return retnode;
    };

    (I did use a similar function when trying to use the delete post hacks and shit earlier...)


    Say we get all the elements of class originalPost, and set their innerHTML to "I liek mudkips"

    document.getElementsByClassName('originalPost').innerHTML="I liek mudkips";

    this will cause the first post to be "I liek mudkips"
    This is fine since there is only one element of class orginalPost.

    When we want to set a specific post to "I hath herdeth that thou liketh Kips of the Mud" we would probably think to go much like before:

    document.getElementsByClassName('post').innerHTML="I hath herdeth that thou liketh Kips of the Mud";

    This will infact get every post on that page be the same.

    If however, the post we want to change is the first reply then we can use the array key selector to choose the specific post:

    document.getElementsByClassName('post')[0].innerHTML="some text"; // first reply
    document.getElementsByClassName('post')[5].innerHTML="some text"; // sixth reply

    (by 'first reply' i mean the first one on that page)





    The problem about this is that it has to be activated somehow:


    <a onclick="document.getElementsByClassName('post')[5].innerHTML='some text';">click here to change the post text</a>


    This is theoretically possible, but not ideal for having it seamless for anyone to see the "image" without anyone noticing it was fudged.

    One such is to use an image to activate it:
    http://www.w3schools.com/tags/tag_IMG.asp



    <img src="transparent.png" onmouseover="document.getElementsByClassName('post')[5].innerHTML='some text';" style="width:600px;height:1px;" alt="" />


    By selecting the width and height as they are (500x1 pixels) then it is more likely that the mouse will eventually hover over it. However, this is unreliable.




    tl;dr: no easy method that I can think of, no sure fire method that is seamless enough to fool people into thinking it was posted legitimately.

    Sponsored content


    Smile City Mods - Page 2 Empty Re: Smile City Mods

    Post  Sponsored content


      Current date/time is Fri Apr 26, 2024 5:09 pm