The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Any price you want

Last post 04-23-2008 8:09 AM by ZippoLag. 165 replies.
Page 2 of 4 (166 items) < Previous 1 2 3 4 Next >
Sort Posts: Previous Next
  • 04-17-2008 6:04 PM In reply to

    Re: Any price you want

     Damn, I'm made of fail.  :-(

  • 04-17-2008 6:07 PM In reply to

    Re: Any price you want

    rc_pinchey:

     Damn, I'm made of fail.  :-(

    Also: AIDS.

     

    Also: Your avatar looks like a raccoon. 

  • 04-17-2008 7:22 PM In reply to

    Re: Any price you want

    You need to start with a closing "</div>" tag.
  • 04-17-2008 8:14 PM In reply to

    Re: Any price you want

    plz send codes

  • Tue, Apr 15 2008 10:31 PM In reply to

    All Hail Signature Guy

    Some of the styles are a bit tricky to get right, though, but at first glance it can be quite convincing.

  • I diaf'd just like the nice person MasterPlanSoftware kindly recommended me to. Hell is bearable. What hurts the most is forced use of Windows Me.

    (I forgot what I was. Going to post here.
    PS: The linux sucks..
  • 04-17-2008 8:25 PM In reply to

    Re: Any price you want

    I am hoping for a nice four-letter reply.
  • Tue, Apr 17 2008 11:31 PM In reply to

    biel^WSignature Guy fails at posting

    fAIL^Wsemi-fre^H^H^Hsuccessful

    I diaf'd just like the nice person MasterPlanSoftware kindly recommended me to. Hell is bearable. What hurts the most is forced use of Windows Me.

    (I forgot what I was. Going to post here.
    PS: The linux sucks..
  • 04-17-2008 8:33 PM In reply to

    Re: Any price you want

    bielawski:

    plz send codes

    #FFFF00

    -----BEGIN GEEK CODE BLOCK-----
    Version: 3.1
    GCS d- s:- a- C+++$ UL++>$ P+++$ L+++>$ !E--- W+++ N+ o K--? w$ !O M+$ V PS+ PE Y+ PGP !t !5 !X R tv-- b+++ DI+ D G e++ h+ r? z?
    ------END GEEK CODE BLOCK------

         00 nul   01 soh   02 stx   03 etx   04 eot   05 enq   06 ack   07 bel
         08 bs    09 ht    0a nl    0b vt    0c np    0d cr    0e so    0f si
         10 dle   11 dc1   12 dc2   13 dc3   14 dc4   15 nak   16 syn   17 etb
         18 can   19 em    1a sub   1b esc   1c fs    1d gs    1e rs    1f us
         20 sp    21  !    22  "    23  #    24  $    25  %    26  &    27  '
         28  (    29  )    2a  *    2b  +    2c  ,    2d  -    2e  .    2f  /
         30  0    31  1    32  2    33  3    34  4    35  5    36  6    37  7
         38  8    39  9    3a  :    3b  ;    3c  <    3d  =    3e  >    3f  ?
         40  @    41  A    42  B    43  C    44  D    45  E    46  F    47  G
         48  H    49  I    4a  J    4b  K    4c  L    4d  M    4e  N    4f  O
         50  P    51  Q    52  R    53  S    54  T    55  U    56  V    57  W
         58  X    59  Y    5a  Z    5b  [    5c  \    5d  ]    5e  ^    5f  _
         60  `    61  a    62  b    63  c    64  d    65  e    66  f    67  g
         68  h    69  i    6a  j    6b  k    6c  l    6d  m    6e  n    6f  o
         70  p    71  q    72  r    73  s    74  t    75  u    76  v    77  w
         78  x    79  y    7a  z    7b  {    7c  |    7d  }    7e  ~    7f del
    

    OSCAR MIKE GOLF WHISKEY TANGO FOXTROT BRAVO BRAVO QUEBEC
  • 04-17-2008 8:37 PM In reply to

    Re: Any price you want

    txh0rz!!!!!!!!11
    I diaf'd just like the nice person MasterPlanSoftware kindly recommended me to. Hell is bearable. What hurts the most is forced use of Windows Me.

    (I forgot what I was. Going to post here.
    PS: The linux sucks..
  • 04-18-2008 5:24 AM In reply to

    Re: Any price you want

    I suck at this.

     

    Filed under: TSA

    Tue, Apr 17 2008 11:31 PM In reply to

    Signature Guy says...

    Yes, you do indeed suck at this. It must be something to do with the way you can't get it to stop stripping the </div> tags out of your posts. LAME.

  • 04-18-2008 9:39 AM In reply to

    Re: Any price you want

    Indeed, you weren't able to follow simple instructions - you have to rearrange the HTML you get for a single post so that you end your post BEFORE you begin the fake one.

    P.S. If you don't get this note, let me know and I'll write you another.
  • Fri, Apr 18 2008 8:39 AM In reply to

    Some More Tips

    Also, Community Server discards the "border", "width", and "height" properties from the TABLE tag, so you'll need to readd them as CSS properties in the "style" attribute.

    P.S. If you don't get this note, let me know and I'll write you another.
  • Tue, Jan 19 2038 3:14 AMIn reply to

    Re: Whatever This Thread Is Named

    I agree with whatever Quietust just posted above.

  • 04-18-2008 10:03 AM In reply to

    Re: Any price you want

    Let's see if I can manage to pull it off.

    Time has no meaning in The Matrix In reply to

    Re: Any price you want

    Mike check 1, 2, 1, 2...

    Join us at #TDWTF on irc.slashnet.org !

  • 04-18-2008 10:04 AM In reply to

    Re: Any price you want

    The failures are starting to remind me of other forums where people use huge images as their signatures.  The trouble is that the entire post box is filled with so many images that it's tough (sometimes) to find the actual post.

    Yes, I am a Bengals fan.  Yes, I know this year is going to suck for us.

    SpectateSwamp exposing aliens. Obviously the World needs SSDS


    [10:07] <fatdog> so from now on.. be sure to wear nice clean underwear
    [10:07] <mps> fatdog: That is simply not going to happen
  • 04-18-2008 10:16 AM In reply to

    Re: Any price you want

    The source of the name "Signature Guy" was the old Keenspot forums which ran an ancient version of UBB that stored static HTML for all threads, where somebody used this sort of trick with their Signature to automatically apply it to every message they posted.
    P.S. If you don't get this note, let me know and I'll write you another.
  • Tue, Jan 19 2038 3:14 AMIn reply to

    Re: Whatever This Thread Is Named

    I agree with whatever Quietust just posted above.

  • 04-18-2008 10:29 AM In reply to

    • KenW
    • Top 75 Contributor
    • Joined on 07-19-2005
    • Posts 429

    Re: Any price you want

    belgariontheking:
    Yes, I am a Bengals fan.
     

    And you admitted this in public? Wow! 

  • 04-18-2008 10:45 AM In reply to

    Re: Any price you want

    Interesting - not only can such HTML be embedded within posts, but it is also possible to place it inside signatures, thus allowing me to create a TRUE Signature Guy which follows me everywhere and automatically agrees with all of my posts.
    P.S. If you don't get this note, let me know and I'll write you another.
  • Tue, Jan 19 2038 3:14 AMIn reply to

    Re: Whatever This Thread Is Named

    I agree with whatever Quietust just posted above.

  • 04-18-2008 10:52 AM In reply to

    Re: Any price you want

    KenW:

    belgariontheking:
    Yes, I am a Bengals fan.
     

    And you admitted this in public? Wow! 

    Yep.  Wouldn't be much of a fan if I hid in the corner, would I?
    SpectateSwamp exposing aliens. Obviously the World needs SSDS


    [10:07] <fatdog> so from now on.. be sure to wear nice clean underwear
    [10:07] <mps> fatdog: That is simply not going to happen
  • 04-18-2008 10:52 AM In reply to

    Re: Any price you want

    Quietust:
    Interesting - not only can such HTML be embedded within posts, but it is also possible to place it inside signatures, thus allowing me to create a TRUE Signature Guy which follows me everywhere and automatically agrees with all of my posts.

    Challenge #1 --

        Difficulty: Have the username randomzied from regular forum posters, pulling in their post counts and emulating their current signatures.

     

    Challenge #2 --

        Difficulty: Write a version for MasterPlanSoftware to add to his sig that flames him at random from a randomly-generated username with a post count in the single digits.  This will save the retarded and mentally unstable communities hundreds of man-hours a week, valuable time that can be applied to screaming at cars and collecting pocket lint.

  • 04-18-2008 10:52 AM In reply to

    Re: Any price you want

     

    Quietust:
    Indeed, you weren't able to follow simple instructions - you have to rearrange the HTML you get for a single post so that you end your post BEFORE you begin the fake one.

    Right, so what am I doing wrong here...?

    </div>
    <div class="ForumPostSignature">Fake Sig</div>
    </div>
    </td></tr>
    </table>
    </td>
    </tr>
    <tr valign="bottom">
    <td class="ForumPostFooterArea">
    <div><span id="ctl00_ctl00_bcr_bcr_ctl00_PostList_ctl12_ctl23_ctl01">Filed under: <a href="/tags/TAGS/default.aspx" rel="tag">TAGS</a></span><input type="hidden" name="ctl00$ctl00$bcr$bcr$ctl00$PostList$ctl12$ctl23$ctl01" id="ctl00_ctl00_bcr_bcr_ctl00_PostList_ctl12_ctl23_ctl01_State" value="nochange" /></div>
    <ul class="ForumPostStatistics CommonPrintHidden" style="clear: both;">
    <li></li>

    <li><a href="/forums/ReportAbuse.aspx?ForumID=1&amp;ReportPostID=161022">Report abuse</a></li>
    <li><a onclick="Telligent_Modal.Open('/forums/QuickReply.aspx?ReplyToPostID=161022',600,400,new Function('result', 'if (result != undefined &amp;&amp; !result) { window.location.reload(false); }')); return false;" href="#">Quick Reply</a></li>
    </ul>
    </td>
    </tr>
    </table>
    </div>

    <a name="161022"></a>
    <div class="ForumPostArea">
    <h4 class="ForumPostHeader">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="border-width:0px;width:100%;">
    <tr valign="middle">
    <td align="left">

    <a href="/forums/p/8425/161022.aspx#161022"><img src="/Themes/leanandgreen/images/icon_post_show.gif" alt="" style="border-width:0px;" /></a>
    Fri, Apr 18 2008 3:04 PM
    </td><td align="right">

    <a href="/forums/p/8425/160983.aspx#160983">In reply to</a>
    </td>
    </tr>
    </table>
    </h4>
    <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border-width:0px;width:100%;">
    <tr valign=top>
    <td rowspan="2" class="ForumPostUserArea">
    <div class="ForumPostUserContent">
    <ul class="ForumPostUserPropertyList">
    <li class="ForumPostUserName">

    <img src="/Themes/leanandgreen/images/user_IsOffline.gif" alt="" style="border-width:0px;" />
    <a href="/members/FAKENAME.aspx">FAKENAME</a>
    </li>
    <li class="ForumPostUserAvatar"><img src="/users/avatar.aspx?userid=1" alt="" style="border-width:1px;border-style:solid;max-height:80px;max-width:80px;" /></li>

    <li class="ForumPostUserIcons"><img title="Top 10 Contributor" alt="Top 10 Contributor" src="/Themes/leanandgreen/images/rankicons/rankTop10.gif" /></li>
    <li class="ForumPostUserAttribute">Joined on Mon, Jan 01 1847</li>
    <li class="ForumPostUserAttribute">123 Fake Street, Springfield</li>
    <li class="ForumPostUserAttribute">Posts <a href="/search/SearchResults.aspx?u=1&amp;o=DateDescending">-10</a></li>

    </ul>
    </div>
    </td>
    <td class="ForumPostContentArea">
    <div class="ForumPostTitleArea">
    <h4 class="ForumPostTitle">
    Re: Any price you want
    </h4>

    <div class="ForumPostThreadStatus">
    </div>
    <div class="ForumPostButtons">
    <a class="CommonImageTextButton CommonReplyButton" href="/forums/AddPost.aspx?ReplyToPostID=161022&amp;Quote=False">Reply</a>
    <a class="CommonImageTextButton CommonFavoriteButton" onclick="return window.ctl00_ctl00_bcr_bcr_ctl00_PostList_ctl02_ctl17_ctl00_ServerPopulatedPopupMenu.LoadMenu(this, event, '9707:161022:18:Forum');" href="#">Favorites</a>
    <a class="CommonImageTextButton CommonContactButton" onclick="return window.ctl00_ctl00_bcr_bcr_ctl00_PostList_ctl02_ctl18_ctl00_ClientPopulatedPopupMenu.LoadMenu(this,event,['9707','FAKENAME','0','1','','','','/search/SearchResults.aspx?u=9707&amp;o=DateDescending'],null);" href="#">Contact</a>
    </div>
    </div>

    <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" style="table-layout: fixed;border-width:0px;height:100%;width:100%;">
    <tr><td>
    <div class="ForumPostBodyArea">
    <div class="ForumPostContentText">
    <p>Fake post text</p>

     

  • 04-18-2008 10:55 AM In reply to

    Re: Any price you want

     

    rc_pinchey:
    Right, so what am I doing wrong here...?

    Oh, and feel free to mock me, I'm well aware that I really should have figured this one out by now. HTML ain't my bag, baby... 

  • 04-18-2008 10:58 AM In reply to

    Re: Any price you want

    The HTML you just pasted should work properly - your previous attempts neglected to rearrange it, resulting in the extra post appearing inside your own instead of below it.
    P.S. If you don't get this note, let me know and I'll write you another.
  • Tue, Jan 19 2038 3:14 AMIn reply to

    Re: Whatever This Thread Is Named

    I agree with whatever Quietust just posted above.

  • 04-18-2008 10:59 AM In reply to

    Re: Any price you want

    rc_pinchey:
    Oh, and feel free to mock me, I'm well aware that I really should have figured this one out by now. HTML ain't my bag, baby... 
    Check your "Inbox" on this forum. I forgot to mention that obviously you need to use the plain-text editor.

    Join us at #TDWTF on irc.slashnet.org !

  • 04-18-2008 11:02 AM In reply to

    Re: Any price you want

    morbiuswilters:

    Challenge #2 --

        Difficulty: Write a version for MasterPlanSoftware to add to his sig that flames him at random from a randomly-generated username with a post count in the single digits.  This will save the retarded and mentally unstable communities hundreds of man-hours a week, valuable time that can be applied to screaming at cars and collecting pocket lint.

     

    Bastard.

  • 04-18-2008 11:18 AM In reply to

    Re: Any price you want

    Many thanks to everyone who helped me out on this, I like to think I've learned a few things- and I'll be sure to use my new powers responsibly.

    Hmm... does this mean you guys are 1337 h4x0r5 and I'm a script kiddie? That's embarrassing.

    Fri, Apr 18 2008 4:16 PM In reply to

    And another thing...

    Signature Guy would like to hug you all... but unfortunately he can't, as he has no arms. This makes Signature Guy sad, which ironically means that he now needs a hug.

  • 04-18-2008 11:21 AM In reply to

    Re: Any price you want

    morbiuswilters:

    Challenge #1 --

        Difficulty: Have the username randomzied from regular forum posters, pulling in their post counts and emulating their current signatures.

    Unfortunately, this does not appear to be possible - the only way I could make it dynamic would be to embed Javascript or use an <object> tag to load it dynamically from another location, and Community Server appears to explicitly seek out and escape all object/script tags and their contents (equivalent of htmlentities()); bizzarely, it completely ignores all other HTML it sees.
    P.S. If you don't get this note, let me know and I'll write you another.
  • Tue, Jan 19 2038 3:14 AMIn reply to

    Re: Whatever This Thread Is Named

    I agree with whatever Quietust just posted above.

  • 04-18-2008 11:23 AM In reply to

    Re: Any price you want

    Quietust:
    Unfortunately, this does not appear to be possible - the only way I could make it dynamic would be to embed Javascript or use an <object> tag to load it dynamically from another location
    Have GreaseMonkey fill it out for you.

  • 04-18-2008 11:25 AM In reply to

    New Opera user script

    AbbydonKrafts:
    Minor change
    Here's the complete script that will generate a tags like the ones I have now. You can alter the "mod_names" array in "rand_module" as you see fit.
    // --------------------------------------------------------------------------------------------------------------
    // TheDailyWTF.com : Generates a random "TagException" tag for new forum posts
    // --------------------------------------------------------------------------------------------------------------
    
    function rand_addr()
    {
        var a = "";
    
        for (var i = 0; i < 8; i++)
        {
            a += Math.floor(Math.random() * 16).toString(16);
        }
        return a;
    }
    
    function rand_module()
    {
        var mod_names = new Array('EXPLORER.EXE', 'MFC40.DLL', 'MFC70.DLL', 'MSHTML.DLL', 
            'MSVBVM50.DLL', 'MSVBVM60.DLL', 'MSVCP50.DLL', 'MSVCP60.DLL', 'MSVCP70.DLL', 
            'SYSTEM32.DLL', 'USER32.DLL', 'VB40032.DLL');
        
        var max_val = mod_names.length;
        var rand_idx = Math.floor(Math.random() * max_val);
        return mod_names[rand_idx];
        
    }
    
    function generateTags()
    {
        var elm = document.getElementById("ctl00_ctl00_bcr_bcr_PostForm_ctl04_TagsSubForm_ctl00_Tags");
    
        if (elm)
        {
            if (elm.value.length == 0)
            {
                var tagex = "TagException at 0x" + rand_addr();
                tagex += " in " + rand_module();
                elm.value = "throw new TagException(), " + tagex;
            }
        }
    }
    
    function countTagExceptions()
    {
        var all_tags = document.getElementsByTagName("input");
        var tagex_count = 0;
        var tagex_bytes = 0;
        var curr_idx = 0;
        var end_idx = 0;
    
        for (var i = 0; i < all_tags.length; i++)
        {
            if (all_tags[i].id.indexOf("AllTags") != -1)
            {
                all_tags = all_tags[i].value;
                
                // Count the older TagExceptions
                while (curr_idx != -1)
                {
                    curr_idx = all_tags.indexOf("TagException+in+0x", curr_idx);
    
                    if (curr_idx != -1)
                    {
                        end_idx = all_tags.indexOf("&", curr_idx);
                        tagex_count++;
                        tagex_bytes += (end_idx - curr_idx);
                        curr_idx++;
                    }
                }
                
                // Count the newer TagExceptions that include a module name
                curr_idx = 0;
                while (curr_idx != -1)
                {
                    curr_idx = all_tags.indexOf("TagException+at+0x", curr_idx);
    
                    if (curr_idx != -1)
                    {
                        end_idx = all_tags.indexOf("&", curr_idx);
                        tagex_count++;
                        tagex_bytes += (end_idx - curr_idx);
                        curr_idx++;
                    }
                }
    
                var report_elm = document.createElement("div");
                document.body.appendChild(report_elm);
                report_elm.innerHTML = "TagExceptions: " + tagex_count + 
                    ", Bytes: " + tagex_bytes + 
                    ", All Tags Bytes: " + all_tags.length;
                report_elm.style.position = "absolute";
                report_elm.style.top = "127px";
                report_elm.style.left = "300px";
                // report_elm.style.background = "#ECECEC";
                // report_elm.style.border = "1px solid #000000";
                report_elm.style.padding = "6px";
                report_elm.style.fontWeight = "bold";
                break;
            }
        }
    }
    
    // --------------------------------------------------------------------------------------------------------------
    // ONLY TRIGGER ON FORUM PAGES
    // --------------------------------------------------------------------------------------------------------------
    if (location.href.indexOf('forums.thedailywtf.com/forums/') != -1)
    {
        document.addEventListener(
            'load',
            function (e)
            {
                if( !document.body ) { return; }
                countTagExceptions();
                generateTags();
            },
            false
        );
    }

    Time has no meaning in The Matrix In reply to

    Re: New Opera user script

    Don't you think this is getting a little out of hand?

    Join us at #TDWTF on irc.slashnet.org !

  • 04-18-2008 11:25 AM In reply to

    Re: Any price you want

    morbiuswilters:

     

        Difficulty: Write a version for MasterPlanSoftware to add to his sig that flames him at random from a randomly-generated username with a post count in the single digits.  This will save the retarded and mentally unstable communities hundreds of man-hours a week, valuable time that can be applied to screaming at cars and collecting pocket lint.

    There goes my weekend!  Now I'll be spending the whole thing writing and testing this.
    SpectateSwamp exposing aliens. Obviously the World needs SSDS


    [10:07] <fatdog> so from now on.. be sure to wear nice clean underwear
    [10:07] <mps> fatdog: That is simply not going to happen
  • 04-18-2008 11:27 AM In reply to

    Re: Any price you want

    bstorer:
    Have GreaseMonkey fill it out for you.
    But then it would only work for me, not everybody else - since I'm currently doing it as a Signature, it is automatically appended to ALL of my posts EVERYWHERE on the forum.

    On a side note, the forums don't seem to block <object> tags inside the message body itself, but it would appear that most browsers don't allow using them to load HTML content from a different site.
    P.S. If you don't get this note, let me know and I'll write you another.
  • Tue, Jan 19 2038 3:14 AMIn reply to

    Re: Whatever This Thread Is Named

    I agree with whatever Quietust just posted above.

  • 04-18-2008 11:41 AM In reply to

    Re: Any price you want

    I'm starting to think Community Server was chosen deliberately so that tearing it to pieces would provide an extra layer of forum entertainment. 

  • 04-18-2008 2:00 PM In reply to

    Re: Any price you want

    jjeff1:

    I was showing a friend the shore excursions for a cruise I'm taking. I cut and pasted a URL to a particular event, it looks like this:

    http://www.carnival.com/ShoreExcursionDetails.aspx?portcode=NAS&excursionname=Ardastra+Gardens+%26+City+Tour&excursioncode=424001&price=46.00

    Check out the last variable in the URL. Yes, it really works. Go ahead and change the tour price to $2 or $84234 or whatever you'd like.

    Now, I think I understand why they did this. You only see the page with the numeric price if you're booked on a cruise and signed in to the site. You can "buy now", which shows the correct price, no matter how you've messed with that URL. If you're just browsing their site, not booked, then the pages just display a number of $ marks, depending on how costly the excursion is. I'd guess this lets them use the same code for the booked passengers as for people just browsing the site.

     Too bad, I was really looking forward to playing 18 holes for $4.

    You can make it cost Google!! http://www.carnival.com/ShoreExcursionDetails.aspx?portcode=NAS&excursionname=Ardastra+Gardens+%26+City+Tour&excursioncode=424001&price=http://www.google.com/
    The sentence to the right is true. The sentence to the left is false.
  • 04-18-2008 2:04 PM In reply to

    Re: Any price you want

    rc_pinchey:
    I'm starting to think Community Server was chosen deliberately so that tearing it to pieces would provide an extra layer of forum entertainment.
    How odd. The thread was locked after you posted this, but now it's not. O_o

    Join us at #TDWTF on irc.slashnet.org !

  • 04-18-2008 2:08 PM In reply to

    Re: Any price you want

    AbbydonKrafts:
    How odd. The thread was locked after you posted this, but now it's not. O_o

    Shhh.. perhaps Community Server is achieving sentience.. 

  • 04-18-2008 2:31 PM In reply to

    Re: Any price you want

    Further attempts to reverse-engineer CS have resulted in my discovery that any time the tags are edited using the "Edit Tags" link the hidden form field with ALL tags in it is posted back to the server.  This means that at present editing your tags requires you to upload 200k to the server.

  • 04-18-2008 3:13 PM In reply to

    Re: Any price you want

    morbiuswilters:
    any time the tags are edited using the "Edit Tags" link the hidden form field with ALL tags in it is posted back to the server.
    I wondered why it took so friggin' long to do it that way.

    Join us at #TDWTF on irc.slashnet.org !

  • 04-18-2008 3:26 PM In reply to

    Re: Any price you want

    AbbydonKrafts:
    I wondered why it took so friggin' long to do it that way.

    Yeah, I never would have guessed.

  • 04-18-2008 4:27 PM In reply to

    Re: Any price you want

     Hmm..

  • 04-18-2008 4:33 PM In reply to

    Re: Any price you want

    morbiuswilters:

     Hmm..

    Got it working, did you?  Is it slow as hell?
  • 04-18-2008 4:35 PM In reply to

    Re: Any price you want

    bstorer:

    morbiuswilters:

     Hmm..

    Got it working, did you?  Is it slow as hell?

    Very close.  It should end up being quite a bit faster than the real edit tags feature because it doesn't post all 160k of tags in the AJAX call. 

  • 04-18-2008 4:45 PM In reply to

    Re: Any price you want

    Test. 

  • 04-18-2008 4:46 PM In reply to

    Re: Any price you want

    morbiuswilters:

    Test. 

    Fail.
  • 04-18-2008 4:47 PM In reply to

    Re: Any price you want

    bstorer:

    morbiuswilters:

    Test. 

    Fail.

    Wrong!  All that's left is getting the existing tags and replacing __LINE__ 

  • 04-18-2008 4:48 PM In reply to

    Re: Any price you want

    morbiuswilters:

    bstorer:

    morbiuswilters:

    Test. 

    Fail.

    Wrong!  All that's left is getting the existing tags and replacing __LINE__ 

    Out of curiosity, how are you detecting that you've posted?
  • 04-18-2008 4:55 PM In reply to

    Re: Any price you want

    bstorer:
    Out of curiosity, how are you detecting that you've posted?

    Loop through all anchors on the page, if any contain the text "[Edit Tags]", grab them and check them to see if __LINE__ appears in the text.  The problem is that tags don't seem to be stored in any sane format..  I think I'm going to have to parse the actual HTML itself..  bah.

  • 04-18-2008 5:05 PM In reply to

    Re: Any price you want

    Another try... 

  • 04-18-2008 5:11 PM In reply to

    Re: Any price you want

    Bah.
  • 04-18-2008 5:19 PM In reply to

    Re: Any price you want

     Last try for today!

  • 04-18-2008 5:27 PM In reply to

    Re: Any price you want

     YES!  Messy as heck, but here's the basics: 

    var anchors = document.getElementsByTagName("a");
            
    for (var i = 0; i < anchors.length; i++) {
        if (anchors[i].innerHTML.indexOf("[Edit Tags]") != -1) {
            update_tags_with_post_number(anchors[i]);
        }
    }
    
    function update_tags_with_post_number(elm)
    {
        
        if (elm.parentNode.innerHTML.indexOf("__LINE__") != -1) {
            var post_url = document.location.href;
            var frag_pos = post_url.indexOf("#");
    
            if (frag_pos > -1) {
                post_url = post_url.substring(0, frag_pos);
            }
    
            var post_id = post_url.substring((post_url.lastIndexOf("/") + 1), (post_url.length - 5));
    
            var tags = "";
    
            var tags_cont = elm.parentNode.firstChild;
    
            for (var i = 0; i < tags_cont.childNodes.length; i++) {
                if (tags_cont.childNodes[i].childNodes.length) {
                    tags += tags_cont.childNodes[i].childNodes[0].data + "; ";
    
                    if (tags_cont.childNodes[i].childNodes[0].data.indexOf("__LINE__") != -1) {
                        tags_cont.childNodes[i].childNodes[0].data = tags_cont.childNodes[i].childNodes[0].data.replace("__LINE__", post_id);
                    }
                }
            }
    
            tags = tags.replace("__LINE__", post_id);
    
            var vstate = document.getElementById("__VIEWSTATE").value;
            var cb_param = "saveAndFormat:" + post_id + ":" + tags;
            var cb_id = "ctl00$ctl00$bcr$bcr$ctl00$PostList$ctl03$ctl23$ctl00";
    
            var post_data = "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=" + encodeURI(vstate) + "&__CALLBACKID=" + encodeURI(cb_id) + "&__CALLBACKPARAM=" + encodeURI(cb_param);
    
            GM_xmlhttpRequest({
                method: "POST",
                url:    post_url,
                headers: {
                    "Content-Type": "application/x-www-form-urlencoded"
                },
                data:   post_data
            });
    
        }
    
    }
    
  • 04-18-2008 5:44 PM In reply to

    Re: Any price you want

    morbiuswilters:

    bstorer:
    Out of curiosity, how are you detecting that you've posted?

    Loop through all anchors on the page, if any contain the text "[Edit Tags]", grab them and check them to see if __LINE__ appears in the text.  The problem is that tags don't seem to be stored in any sane format..  I think I'm going to have to parse the actual HTML itself..  bah.

     

    So out of curiousity, what happens if I were to, say, do this:

    __LINE__, bstorer is awesome!, [Edit Tags]

  • 04-18-2008 5:51 PM In reply to

    Re: Any price you want

    bstorer:

    So out of curiousity, what happens if I were to, say, do this:

    __LINE__, bstorer is awesome!, [Edit Tags]

    Hmm..  Not sure.  It does't throw any errors but it might be sending invalid AJAX requests.. 

  • 04-18-2008 5:59 PM In reply to

    Re: Any price you want

    morbiuswilters:

     

    Hmm..  Not sure.  It does't throw any errors but it might be sending invalid AJAX requests.. 

    Looks like it.  I was really hoping it would wind up filing my bonus tag through some screwy flaw in this otherwise outstanding forum software.
  • 04-18-2008 7:05 PM In reply to

    Re: Any price you want

    morbiuswilters:

    The problem is that tags don't seem to be stored in any sane format..  I think I'm going to have to parse the actual HTML itself..  bah.

    That's Community Server for you.
Page 2 of 4 (166 items) < Previous 1 2 3 4 Next >
Powered by Community Server (Non-Commercial Edition), by Telligent Systems