23/06/2015 - Minor changes.

by Melancholy

Melancholy
すけべ
Admin
Posts: 3,863
Threads: 213
Joined: Jul 2014
Reputation: 60
06-22-2015, 11:43 AM
#8473 (1)
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: 687474703a2f2f6e6f73636f70652e6d652f692f...312e706e67]. 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: 687474703a2f2f6e6f73636f70652e6d652f692f...352e706e67]
  • 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

Saikou
./
/x/
Posts: 898
Threads: 101
Joined: Dec 2014
Reputation: 23
06-22-2015, 02:44 PM
#8539 (2)
These stars are too far apart:

[Image: 687474703a2f2f7075752e73682f69794e41422f...312e706e67]

[Image: 687474703a2f2f692e696d6775722e636f6d2f64...552e676966]
mis
meme halation
Waifu
Posts: 1,797
Threads: 188
Joined: Jul 2014
Reputation: 27
06-22-2015, 03:02 PM
#8541 (3)
The number of alerts is a nice touch.

[Image: 687474703a2f2f692e696d6775722e636f6d2f6a...742e706e67]
Nekololiz
Junior Member
Kohai
Posts: 41
Threads: 2
Joined: Jun 2015
Reputation: 1
06-22-2015, 05:29 PM (This post was last modified: 06-22-2015, 05:29 PM by Nekololiz. Edit Reason: stuffs)
#8550 (4)
(06-22-2015, 11:43 AM)Senpai Wrote: Added an unread count to the alerts and messaging icons: [Image: 687474703a2f2f6e6f73636f70652e6d652f692f...352e706e67]
Best Feature <3

[Image: 687474703a2f2f692e696d6775722e636f6d2f32...462e676966]
Bushido
Unregistered
 
06-22-2015, 06:17 PM
#8551 (5)
I really like the new alert icons! First thing I noticed. Totally loving these new additions, keep them up <3
Melancholy
すけべ
Admin
Posts: 3,863
Threads: 213
Joined: Jul 2014
Reputation: 60
06-22-2015, 08:16 PM
#8556 (6)
(06-22-2015, 02:44 PM)Saikou Wrote: These stars are too far apart:

[Image: 687474703a2f2f7075752e73682f69794e41422f...312e706e67]

I'll make them a little closer together.

Riesu
さくらきつね
Kitsune
Posts: 342
Threads: 25
Joined: May 2015
Reputation: 10
06-23-2015, 12:17 AM
#8562 (7)
I'm really liking these changes! good job Senpai! <3

Equinox
Former Lewd.SX Owner
#F8365B
Posts: 483
Threads: 48
Joined: Jul 2014
Reputation: 8
06-23-2015, 12:39 AM
#8565 (8)
Here's multiple help.

For the post options:

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

For the coolio shit that makes this thingy toggle:

Code:
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.


"The entire internet is located here, on a single CD-ROM!"
Part of the glorious Linux master race.

[Image: 687474703a2f2f7075752e73682f69534f65312f...362e706e67]
[Image: 68747470733a2f2f692e696d6775722e636f6d2f...412e6a7067]
Melancholy
すけべ
Admin
Posts: 3,863
Threads: 213
Joined: Jul 2014
Reputation: 60
06-23-2015, 12:49 AM
#8566 (9)
(06-23-2015, 12:39 AM)Equinox Wrote: Here's multiple help.

For the post options:

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

For the coolio shit that makes this thingy toggle:

Code:
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.

Equinox
Former Lewd.SX Owner
#F8365B
Posts: 483
Threads: 48
Joined: Jul 2014
Reputation: 8
06-23-2015, 09:41 AM
#8569 (10)
(06-23-2015, 12:49 AM)Senpai Wrote:
(06-23-2015, 12:39 AM)Equinox Wrote: Here's multiple help.

For the post options:

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

For the coolio shit that makes this thingy toggle:

Code:
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? (:


"The entire internet is located here, on a single CD-ROM!"
Part of the glorious Linux master race.

[Image: 687474703a2f2f7075752e73682f69534f65312f...362e706e67]
[Image: 68747470733a2f2f692e696d6775722e636f6d2f...412e6a7067]
Melancholy
すけべ
Admin
Posts: 3,863
Threads: 213
Joined: Jul 2014
Reputation: 60
06-23-2015, 09:45 AM
#8570 (11)
(06-23-2015, 09:41 AM)Equinox Wrote:
(06-23-2015, 12:49 AM)Senpai Wrote:
(06-23-2015, 12:39 AM)Equinox Wrote: Here's multiple help.

For the post options:

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

For the coolio shit that makes this thingy toggle:

Code:
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.