23/06/2015 - Minor changes.

Posts

Fixes:

  • The quick reply now clears when you make a new post

  • Fixed the dead image in the User CP.

Improvements:

  • Added padding to the quick reply

  • Concated all styles into one stylesheet, except for page specific stylesheets.

  • Replaced font-awesome with another icon font, this one's a lot smaller (and a lot nicer looking)

  • Optimised static content caching on lewd.cat

  • Added an icon for the "linking to quotes" thingo: Image no longer available. Clicking it takes you to the quoted post (and does a nice scrolly thing when the quote is on the same page as the post).

  • Added an unread count to the alerts and messaging icons: Image no longer available

  • Stopped unneeded javascript from loading for guests, to make the site load faster for them (WIP)

New stuff:

  • Changed the style of the quick reply

Senpai wrote

Added an unread count to the alerts and messaging icons: Image no longer available

Best Feature <3

I really like the new alert icons! First thing I noticed. Totally loving these new additions, keep them up <3

Saikou wrote

These stars are too far apart:

Image no longer available

I'll make them a little closer together.

Here's multiple help.

For the post options:

<label><input type="checkbox" class="checkbox" name="postoptions[toggleraweditor]" value="0"> <strong>Raw Editor</strong></label>

For the coolio shit that makes this thingy toggle:

jQuery("input.checkbox[name='toggleraweditor']").on("click", function(){
  if ( jQuery(this).is(":checked") == true ) {
    jQuery("textarea#message").css({display:"block"});
    jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"none"}); // can we please get an id or class on this thing?
  } else if ( jQuery(this).is(":checked") == false ) {
    jQuery("textarea#message").css({display:"none"});
    jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"block"});
  }
});

Something along those lines should work.

Equinox wrote

Here's multiple help.

For the post options:

<label><input type="checkbox" class="checkbox" name="postoptions[toggleraweditor]" value="0"> <strong>Raw Editor</strong></label>

For the coolio shit that makes this thingy toggle:

jQuery("input.checkbox[name='toggleraweditor']").on("click", function(){
  if ( jQuery(this).is(":checked") == true ) {
    jQuery("textarea#message").css({display:"block"});
    jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"none"}); // can we please get an id or class on this thing?
  } else if ( jQuery(this).is(":checked") == false ) {
    jQuery("textarea#message").css({display:"none"});
    jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"block"});
  }
});

Something along those lines should work.

Thanks Duubly, I'll do something similar. :smile:

I don't think it's something that should go in the "post options" as a checkbox though, as it's not really related to the post in any way.


I'm considering changing the theme of the quick reply from Monokai to something else, sure Monokai is fucking great, but it doesn't fit in with out theme as well as I would like.

Senpai wrote
Equinox wrote

Here's multiple help.

For the post options:

<label><input type="checkbox" class="checkbox" name="postoptions[toggleraweditor]" value="0"> <strong>Raw Editor</strong></label>

For the coolio shit that makes this thingy toggle:

jQuery("input.checkbox[name='toggleraweditor']").on("click", function(){
  if ( jQuery(this).is(":checked") == true ) {
    jQuery("textarea#message").css({display:"block"});
    jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"none"}); // can we please get an id or class on this thing?
  } else if ( jQuery(this).is(":checked") == false ) {
    jQuery("textarea#message").css({display:"none"});
    jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"block"});
  }
});

Something along those lines should work.

Thanks Duubly, I'll do something similar. :smile:

I don't think it's something that should go in the "post options" as a checkbox though, as it's not really related to the post in any way.


I'm considering changing the theme of the quick reply from Monokai to something else, sure Monokai is fucking great, but it doesn't fit in with out theme as well as I would like.

How aboot custom? (:

Equinox wrote
Senpai wrote
Equinox wrote

Here's multiple help.

For the post options:

<label><input type="checkbox" class="checkbox" name="postoptions[toggleraweditor]" value="0"> <strong>Raw Editor</strong></label>

For the coolio shit that makes this thingy toggle:

jQuery("input.checkbox[name='toggleraweditor']").on("click", function(){
  if ( jQuery(this).is(":checked") == true ) {
    jQuery("textarea#message").css({display:"block"});
    jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"none"}); // can we please get an id or class on this thing?
  } else if ( jQuery(this).is(":checked") == false ) {
    jQuery("textarea#message").css({display:"none"});
    jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"block"});
  }
});

Something along those lines should work.

Thanks Duubly, I'll do something similar. :smile:

I don't think it's something that should go in the "post options" as a checkbox though, as it's not really related to the post in any way.


I'm considering changing the theme of the quick reply from Monokai to something else, sure Monokai is fucking great, but it doesn't fit in with out theme as well as I would like.

How aboot custom? (:

Maybe, but there's already a load of great pre-made themes for the editor.