Author Topic: [JavaScript][OmnomIRC] Seeking Programming Help  (Read 5479 times)

0 Members and 2 Guests are viewing this topic.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
[JavaScript][OmnomIRC] Seeking Programming Help
« on: September 14, 2014, 05:19:39 am »
Yes, you heard it correctly, I am seeking programming help for OmnomIRC!
The component in question is a WYSIWYG editor for chat messages.....ok, that might be overkill but IMO it would be cool.
I already got bare-bones with bold, italic and underline running, using a <span> with contenteditable="true", but it still has some bugs, and like, you can't remove text decorations anymore and it doesn't even support colors yet etc.
So, I would be happy if someone could help me on that! ^.^
« Last Edit: September 14, 2014, 02:42:41 pm by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [JavaScript] Seeking Programming Help
« Reply #1 on: September 14, 2014, 10:16:44 am »
IMHO this feature should be made so it can easily be restricted on per member basis (eg some sort of ban that still lets the user post) or at least for members under 200 posts, because I am fairly sure it will get abused by certain younger users.


I'm not even sure if colors, other than the post notifier and RunerBot, are allowed in #omnimaga anyway.


Also please do not implement auto-formating unless it can be disabled. I hate when I type something in M$ Word and it automatically replaces it to another word or add formating to the world.


On a side note it seems to work, although we cannot disable bold/italic/underline other than by refreshing the page.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [JavaScript] Seeking Programming Help
« Reply #2 on: September 14, 2014, 01:27:25 pm »
IMHO this feature should be made so it can easily be restricted on per member basis (eg some sort of ban that still lets the user post) or at least for members under 200 posts, because I am fairly sure it will get abused by certain younger users.
That can be made, even though they'd still be able to input unicode manually.
Quote
I'm not even sure if colors, other than the post notifier and RunerBot, are allowed in #omnimaga anyway.
As long as you don't do rainbows and it is only like occasionally and not really often and stuff i don't see a reason why not.
Quote
Also please do not implement auto-formating unless it can be disabled. I hate when I type something in M$ Word and it automatically replaces it to another word or add formating to the world.
Good idea :trollface:
Quote
On a side note it seems to work, although we cannot disable bold/italic/underline other than by refreshing the page.
That is also a reason why i made this thread - i don't know how to and seek help

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [JavaScript] Seeking Programming Help
« Reply #3 on: September 14, 2014, 01:35:37 pm »
Indeed,:w00t: 8) but:w00t: *.* at:w00t: least:w00t: :hyper: let's:w00t:  not:w00t: <_< make:w00t: :angel: it:w00t:  :blah: too:w00t: :love: easy:w00t: :angel: for:w00t:  :blah: spammy:w00t: :hyper: users:w00t:  :blah: to :angel:  :banghead: spam!1!11 *.*:w00t:  *.* I:w00t: :hyper: mean:w00t: :hyper: otherwise:w00t: :ninja: it:w00t:  :) would:w00t:  :blah: :blah: be:w00t: :hyper: like:w00t: :hyper: if:w00t: :hyper: when:w00t: :hyper: posting:w00t: :hyper: on:w00t: :hyper: the:w00t: :hyper: forums:w00t: :hyper: there:w00t: :hyper: was:w00t: :hyper: literally:w00t: :hyper: a:w00t: :hyper: button:w00t:to:w00t: :hyper: turn:w00t: :hyper: your ;D text:w00t: :hyper: like:w00t: :hyper: this O.O :P

*cough*dream-dragon/n00bnonin*cough*, and yes there are two posts on the forums that actually look almost as bad or worse as the above.


On a more serious note, though, if you need programming help this is not the right forum to ask. You would need to ask in the web dev section.
« Last Edit: September 14, 2014, 01:49:24 pm by DJ Omnimaga »

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [JavaScript] Seeking Programming Help
« Reply #4 on: September 14, 2014, 02:42:24 pm »
Good idea to add such a button.
Also, good idea, imma move it there

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [JavaScript][OmnomIRC] Seeking Programming Help
« Reply #5 on: September 17, 2014, 12:44:52 am »
*bump*
Any help, anybody? You wouldn't have to dig through my 8k lines of code, no worries, due to my attempting oop it is just a single object that is doing the wysiwyg edtior....

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline khalaan

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Re: [JavaScript][OmnomIRC] Seeking Programming Help
« Reply #6 on: September 19, 2014, 12:25:27 am »
I'm game for helping, new to the community but far from new to dev.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [JavaScript][OmnomIRC] Seeking Programming Help
« Reply #7 on: September 19, 2014, 12:40:19 am »
Currently the most annoying issue is that pasting doesn't really work as the input is a contenteditable span now, and pasting formatted text breaks it all.
The stuff responsible for the wysiwyg part is https://github.com/Sorunome/OmnomIRC2/blob/master/omnomirc_www/omnomirc.js#L2025 line 2025 - 2074 , https://github.com/Sorunome/OmnomIRC2/blob/master/omnomirc_www/index.php#L217 line 217 - 255 and https://github.com/Sorunome/OmnomIRC2/blob/master/omnomirc_www/style.css#L508 508 - 525.

Of course theory on how to make it only paste unformatted text is also welcome :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline khalaan

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Re: [JavaScript][OmnomIRC] Seeking Programming Help
« Reply #8 on: September 19, 2014, 03:23:33 am »
Can you tell me if there is something off with my config.php? while granted I'm not running the bot itself I don't seem to be getting any trigger for the formatting of text without manually changing the display style in index.php...


Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [JavaScript][OmnomIRC] Seeking Programming Help
« Reply #9 on: September 19, 2014, 08:27:54 am »
It doesn't have a checkLogin file which is essential for a user being authorized.
But I mean, you can use the wysiwyg editor without any of the rest of omnomirc working in a more minimalistic environment, and if it comes down to it all you actually need is a contentedtiable span and somehow make that pasting is unformatted text...

EDIT: Also, next time snip out things like passwords and generated keys :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline khalaan

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Re: [JavaScript][OmnomIRC] Seeking Programming Help
« Reply #10 on: September 19, 2014, 06:47:06 pm »
It's on a throwaway vm as you'll notice the login and password are both omnom, I sanitize all applications I touch from the rest of my environment