Author Topic: OmnomIRC Options Page  (Read 10794 times)

0 Members and 1 Guest are viewing this topic.

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: OmnomIRC Options Page
« Reply #15 on: May 02, 2011, 03:09:17 pm »
Google Chrome
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: OmnomIRC Options Page
« Reply #16 on: May 02, 2011, 03:10:23 pm »
I agree, it would be nicer with checkboxes.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: OmnomIRC Options Page
« Reply #17 on: May 02, 2011, 03:24:29 pm »
Have you cleared your cache, restarted browser, deleted cookies, etc...?
Omnimaga Admin

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: OmnomIRC Options Page
« Reply #18 on: May 02, 2011, 03:27:59 pm »
Clearing cache did it :) Thanks. I should have tried that first, sorry.
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: OmnomIRC Options Page
« Reply #19 on: May 02, 2011, 07:49:24 pm »
Minor random thing, but in the options page the search box on top migrates to the middle of the bar. (Firefox 4.1)

Other than that, great job.
Vy'o'us pleorsdti thl'e gjaemue

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: OmnomIRC Options Page
« Reply #20 on: May 02, 2011, 09:53:02 pm »
Minor random thing, but in the options page the search box on top migrates to the middle of the bar. (Firefox 4.1)

Other than that, great job.
Yup, that happened to me to (Firefox 4.1).

Wow, Netham, nice job! :D  I like it.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: OmnomIRC Options Page
« Reply #21 on: May 02, 2011, 10:01:56 pm »
How is the color of your name determined?

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: OmnomIRC Options Page
« Reply #22 on: May 02, 2011, 10:08:56 pm »
Strange.  Again, I'm using Firefox 4.1:
If I left click on "Rules," "Today's Logs," or "This Year's Logs" and open it in a new tab, it opens another copy of the page I'm currently on instead of the logs. ???
« Last Edit: May 02, 2011, 10:10:30 pm by ztrumpet »

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: OmnomIRC Options Page
« Reply #23 on: May 02, 2011, 10:11:51 pm »
Just click it, it opens in a new page by default.

They call a javascript function on left click that opens in a new tab.
« Last Edit: May 02, 2011, 10:12:56 pm by Netham45 »
Omnimaga Admin

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: OmnomIRC Options Page
« Reply #24 on: May 02, 2011, 10:17:16 pm »
How is the color of your name determined?
it's by the letters in the name, it seems.  Look at "Goto"
Vy'o'us pleorsdti thl'e gjaemue

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: OmnomIRC Options Page
« Reply #25 on: May 02, 2011, 11:49:11 pm »
How is the color of your name determined?

Code: [Select]
function getNameColor($name)
{
$name = str_replace("@","",$name);
$name = str_replace("+","",$name);
$rcolors = array(19, 20, 22, 24, 25, 26, 27, 28, 29);
$sum = $i = 0;
while (isset($name[$i]))
$sum += ord($name[$i++]);
$sum %= 9;
return $rcolors[$sum];
}
Omnimaga Admin

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: OmnomIRC Options Page
« Reply #26 on: May 02, 2011, 11:50:38 pm »
So, I'm guessing it won't be possible to choose which color one has? :(
Vy'o'us pleorsdti thl'e gjaemue

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: OmnomIRC Options Page
« Reply #27 on: May 02, 2011, 11:51:41 pm »
It could be controlled by the last char in your name.
Omnimaga Admin

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: OmnomIRC Options Page
« Reply #28 on: May 02, 2011, 11:54:04 pm »
How was the color changed in the screenie then?  All that changed was the first letter.
* Darl181 doesn't understand the code si he has no idea how it works
Vy'o'us pleorsdti thl'e gjaemue

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: OmnomIRC Options Page
« Reply #29 on: May 03, 2011, 12:00:12 am »
Every character has an ascii number.

Code: [Select]
N = 78
e = 101 +  78 = 179
t = 116 + 179 = 295
h = 104 + 295 = 399
a = 97 + 399 = 496
m = 109 + 496 = 605
4 = 52 + 605 = 657
5 = 53 + 657 = 710

710

Then we modulate it by 9.

Code: [Select]
710 % 9 = 8

It's then equal to the 8th color in the array(that goes from 0-8). Since I kept the x-chat numerals, that's 29. 29 matches up to a CSS value with colors (that were again, ripped from x-chat).

By changing any one character up one or down one, you can make the result equal whatever you want. Appending an 'a' to the end would make the color stay the same at the 8th entry, a 'b' would make it be the 0th entry in the array, a 'c' would make it the 1st, ... 'i' would make it be the 7th, and j would start the loop again.
Omnimaga Admin