- This topic is empty.
-
AuthorPosts
-
August 5, 2014 at 10:34 am #177733
Justin Sainton
ParticipantJust 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'); };
`
August 5, 2014 at 10:35 am #177735Justin 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'); };
`
August 5, 2014 at 10:51 am #177739nixnerd
ParticipantAhhh! So much code!
August 5, 2014 at 11:21 am #177750__
ParticipantI 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.
August 5, 2014 at 12:14 pm #177777Paulie_D
MemberI guess ChrisCoyier (or someone) is still tinkering with how the forum parses markdown.
Indeed…specifically the Code formatting.
August 5, 2014 at 12:46 pm #177791nixnerd
ParticipantI noticed that yesterday. Took some tinkering to get a code block to look right.
August 5, 2014 at 12:50 pm #177795__
ParticipantBiggest “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.
August 5, 2014 at 1:02 pm #177798nixnerd
ParticipantI 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.
August 5, 2014 at 1:04 pm #177799nixnerd
ParticipantAugust 5, 2014 at 1:12 pm #177804__
ParticipantYou 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.
August 5, 2014 at 2:05 pm #177810nixnerd
Participantwhich, 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!
August 5, 2014 at 2:21 pm #177814Alen
ParticipantAugust 5, 2014 at 2:25 pm #177815__
ParticipantI didn’t post any SQL at all!
Javascript, right? probably thought it was XSS.
August 5, 2014 at 2:45 pm #177819nixnerd
ParticipantI 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.
-
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.