Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Testing Markdown

  • This topic is empty.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #177733
    Justin Sainton
    Participant

    Just testing bbPress Markdown functionality. Don’t mind me.

    `
    ajax_callback = function(response) {
    var checklist, color, set_id, existing_set, content;
    if (response.is_successful) {
    checklist = $(‘.variation_checkboxes’);
    content = $(response.obj.content);
    set_id = content.attr(‘id’);
    existing_set = checklist.find(‘#’ + set_id);
    if (existing_set.size() > 0) {
    existing_set.find(‘.children’).append(content.find(‘.children .ajax’));
    } else {
    checklist.append(content);
    }

                        color = checklist.find('li').css('backgroundColor') || '#FFFFFF';
                        checklist.find('.ajax').
                            animate({ backgroundColor: '#FFFF33' }, 'fast').
                            animate({ backgroundColor: color }, 'fast', function(){
                                $(this).css('backgroundColor', 'transparent');
                            }).
                            removeClass('ajax');
                    } else {
                        alert(response.error.messages.join("\n"));
                    }
                    form.hide().find('input:text').val('');
                    form.find('label').show().css('opacity', '1');
                    spinner.toggleClass('ajax-feedback-active');
                };
    

    `

    #177735
    Justin Sainton
    Participant

    `
    ajax_callback = function(response) {
    var checklist, color, set_id, existing_set, content;
    if (response.is_successful) {
    checklist = $(‘.variation_checkboxes’);
    content = $(response.obj.content);
    set_id = content.attr(‘id’);
    existing_set = checklist.find(‘#’ + set_id);
    if (existing_set.size() > 0) {
    existing_set.find(‘.children’).append(content.find(‘.children .ajax’));
    } else {
    checklist.append(content);
    }

                        color = checklist.find('li').css('backgroundColor') || '#FFFFFF';
                        checklist.find('.ajax').
                            animate({ backgroundColor: '#FFFF33' }, 'fast').
                            animate({ backgroundColor: color }, 'fast', function(){
                                $(this).css('backgroundColor', 'transparent');
                            }).
                            removeClass('ajax');
                    } else {
                        alert(response.error.messages.join("\n"));
                    }
                    form.hide().find('input:text').val('');
                    form.find('label').show().css('opacity', '1');
                    spinner.toggleClass('ajax-feedback-active');
                };
    

    `

    #177739
    nixnerd
    Participant

    Ahhh! So much code!

    #177750
    __
    Participant

    I guess @ChrisCoyier (or someone) is still tinkering with how the forum parses markdown. It seems to change every once-in-a-while; things that did work suddenly don’t (e.g., backtics inside code blocks used to work just fine as long as they weren’t on their own line) and vice-versa. Minor stuff, like that.

    #177777
    Paulie_D
    Member

    I guess ChrisCoyier (or someone) is still tinkering with how the forum parses markdown.

    Indeed…specifically the Code formatting.

    #177791
    nixnerd
    Participant

    I noticed that yesterday. Took some tinkering to get a code block to look right.

    #177795
    __
    Participant

    Biggest “unstable” things seem to be around how the forums decides what will be parsed as “allowed” html vs. markdown vs. escaped as text. Right now, for example, backtics seem to always be code delimiters, regardless of where they appear or whether they are matched; there doesn’t seem to be a way to escape them. Big trouble for SQL code.

    #177798
    nixnerd
    Participant

    I got a message that I straight up was not allowed to post something as code. Happened on JS Jungle about 2 weeks ago. It must have literally thought I was trying to inject something… definitely was not.

    #177799
    nixnerd
    Participant
    #177804
    __
    Participant

    You get a “Securi Website Firewall” warning page? I’ve hit that too, a few times, trying to post certain SQL statements (link; Chris offered an answer (which, ironically, someone tagged as inappropriate)). It’s an external service. Kind of a “dumb” filter —it doesn’t know what your site will validate/sanitize, so it’s a little draconian in dealing with suspicious phrases. I guess it’s better safe than sorry.

    #177810
    nixnerd
    Participant

    which, ironically, someone tagged as inappropriate

    That’s the funniest thing I’ve heard today.

    I’ll check it out. Dude… I didn’t post any SQL at all!

    #177814
    Alen
    Participant

    #177815
    __
    Participant

    I didn’t post any SQL at all!

    Javascript, right? probably thought it was XSS.

    #177819
    nixnerd
    Participant

    I think it momentarily blocked my IP too because when I deleted the JS and just had CSS… it still did it. Probably some sort of timeout block.

Viewing 14 posts - 1 through 14 (of 14 total)
  • The forum ‘Other’ is closed to new topics and replies.