Semi-Integrated BenHeck Chatroom!

Want to just shoot the breeze? Forum 42 is the place!

Moderator:Moderators

Post Reply
Electric Rain
Senior Member
Posts:1911
Joined:Tue Mar 29, 2005 12:39 pm
PSN Username:Denki_no_Ame
Location:What's it to you? Stalker...
Contact:
Semi-Integrated BenHeck Chatroom!

Post by Electric Rain » Mon Apr 14, 2008 2:53 am

Due to the recent server troubles Ben has been having, I lost nearly 50 posts, including the one about my new BenHeck Chatroom. So, here it is again.


Greasemonkey Script: Download

The Chatroom itself is hosted on my server. So the Greasemonkey script acts as a "bridge" between the forums and the chatroom, AKA Ben's server and mine. The first thing you'll notice once you install the script, is an additional icon (whipped up by me in GIMP Image ) and the word "Chat!" next to Usergroups. This ONLY shows up when you're logged in. Additionally, the chatroom will only let you in if the referring page was from from BenHeck. These two things combined mean that only registered members can log in to the chatroom. 8) The script also has the ability to "read" your username from the forum (searches the page for "Log out [ " and takes whatever comes after it and before the " ]") and transfer it directly to the chatroom! It's amazing the kind of stuff you can do without server access when you have Greasemonkey, isn't it? :wink: Disadvantage: This means ONLY FIREFOX USERS can use the chatroom. :? Sorry, but Greasemonkey is the only way to do this stuff.


The Chatroom:

Once you click the "Chat!" link, you will be directed to my server. The first page checks the referring page, makes sure it's from here, grabs your username, and then instantly redirects to the main page. If you try to log into the chatroom without a username or not from these forums, you are presented with this page. The main page has a large left frame which will contain the forums (whatever page you were on when you first clicked the "Chat!" link), and a smaller, 200px (by default) wide right frame, which contains the chat window. You can resize the frame simply by clicking and dragging the bar between the frames to the left or right. This way, you can browse the forums as you please, while staying in the chatroom and keeping it visible at all times. In the chat window, from top to bottom, you will see the Chat Log Box, the Message Box where you type messages to send, and the Extras Box below that.


Chatroom Functionality:

Consider this a beta release. There are still a couple of bugs, and it's very bare-bones at the moment. The Extras Box, by default, shows the users that are currently in the room. Wondering what the three buttons that coincidently spell out "SUE" to the right of the message box are for? The "S" stands for "Send". Use this to submit your message, or you can simply press enter. The "U" stands for "Users", and is used to display the "Users Currently Online" panel in the Extras Box. The "E" stands for "Emoticons". Clicking this will display the Emoticons Panel (with all of the emoticons currently on this forum, in addition to the 4 featured in my Additional Emoticons Greasmonkey Script, also for these forums), in the Extras Box. These work just like they do on the forums. Click them to insert the ASCII symbol into the Message Box, or you can manually type the ASCII symbol if you know it. Either way, the symbol is turned into the GIF emoticon it represents once it hits the Chat Log Box. 8)

There's really nothing else to it. Nobody has "Mod" powers, so there's no kicking or banning. Everyone is equal in this room. :) There's no language filter... please don't abuse this fact too much. :lol: No individual user PMing either. Basically, none of that IRC "/command" crap. :roll: But we don't want something like that, do we? We want something that "just works" without too many bells or whistles. :P


Oh, also, this does use a flat file database (.txt file logs), which apparently is "fail" for reasons unknown to me. :? But, it's simple and it works. Advantage: Chat logs are stored in the .txt files indefinitely. This means that users just logging into the room can scroll through previous conversation to get caught up on the current topic. Or, users that got kicked out (lost internet, computer froze, ect.) can come back in and read over what they missed while they were gone. Disadvantage: There's one log for each day. Every day at midnight, the log stops, and a new one is created for the next day. This means that if you're in the middle of a conversation, come midnight, the log will appear to "reset," and any previous conversation will be stored away in the previous day's log. However, I'll still keep each day's log on the server until they start cluttering things up. Eventually, I'll add a function that allows users to look at chat logs from previous days, but I don't think this is a priority in most of your minds. :wink:

Let me know what you all think!

P.S. Someone needs to re-lock the "Chrono Trigger on PS3" and "Apology to several members, my sister hi-jacked my account." threads. :roll:

P.P.S. I recommend that you guys all back up any important posts (such as this one, for me) until these server issues get worked out! Like I said, I lost nearly 50 posts from the server revert, and I had some valuable information in some of them. Image
Image

User avatar
Negative_Creep
Posts:1093
Joined:Mon Dec 31, 2007 3:04 pm
Location:New Crack City
Contact:

Post by Negative_Creep » Mon Apr 14, 2008 4:38 am

You seriously need to calm down about the server error. Jesus.

Electric Rain
Senior Member
Posts:1911
Joined:Tue Mar 29, 2005 12:39 pm
PSN Username:Denki_no_Ame
Location:What's it to you? Stalker...
Contact:

Post by Electric Rain » Mon Apr 14, 2008 4:48 am

I was just explaining why I had to repost this. :roll:
Image

User avatar
lifeisbetterwithketchup
Senior Member
Posts:2180
Joined:Fri Jul 21, 2006 12:08 pm
Steam ID:lifeisbetterwithketchup
Location:Illinois. Whee.
Contact:

Post by lifeisbetterwithketchup » Mon Apr 14, 2008 4:53 am

Cool stuff, Electric Rain. Image
Rekarp wrote:
mako321 wrote:What makes you head ninja, anyways? :wink:
Cause I am Abe F#!@ing Lincoln. :mrgreen:

Electric Rain
Senior Member
Posts:1911
Joined:Tue Mar 29, 2005 12:39 pm
PSN Username:Denki_no_Ame
Location:What's it to you? Stalker...
Contact:

Post by Electric Rain » Mon Apr 14, 2008 5:24 am

Thanks. I see you logged in... sorry, I missed you. Log back in! :P
Image

User avatar
Negative_Creep
Posts:1093
Joined:Mon Dec 31, 2007 3:04 pm
Location:New Crack City
Contact:

Post by Negative_Creep » Mon Apr 14, 2008 5:37 am

Electric Rain wrote:I was just explaining why I had to repost this. :roll:
You mentioned it enough.

User avatar
Bibin
Posts:1127
Joined:Sun Mar 04, 2007 2:14 am
Location:Brooklyn, NY
Contact:

Post by Bibin » Mon Apr 14, 2008 4:28 pm

Is there a way that people with better, non-hyped browsers with more features can view the chat (Opera and Safari users)?
...

User avatar
Dr. KillGood
Senior Member
Posts:2209
Joined:Sat Jan 21, 2006 1:03 am
Location:Earth

Post by Dr. KillGood » Mon Apr 14, 2008 4:32 pm

What do I need to do to use this "greesemonkey" thing?

Does it just work with firefox?
Image

User avatar
bicostp
Moderator
Posts:10491
Joined:Mon Mar 07, 2005 5:47 pm
Steam ID:bicostp
Location:Spamalot
Contact:

Post by bicostp » Mon Apr 14, 2008 4:43 pm

Bibin wrote:Is there a way that people with better, non-hyped browsers with more features can view the chat (Opera and Safari users)?
If you have an equivalent browser extension, then yes.

It looks like Opera might be able to run it:
http://www.opera.com/support/tutorials/userjs/examples/

And there's a more roundabout way of doing it in Safari:
http://www.simplehelp.net/2007/11/14/ho ... in-safari/

Electric Rain
Senior Member
Posts:1911
Joined:Tue Mar 29, 2005 12:39 pm
PSN Username:Denki_no_Ame
Location:What's it to you? Stalker...
Contact:

Post by Electric Rain » Mon Apr 14, 2008 4:46 pm

Thanks for fielding that one, Bic.
Dr. KillGood wrote:What do I need to do to use this "greesemonkey" thing?

Does it just work with firefox?
Yes. Greasemonkey is a Firefox extension which installs just as easily as any other. Download it here, restart Firefox, then come back here and install my script. It will take you about 2 minutes tops.
Image

User avatar
Triton
Moderator
Posts:7397
Joined:Mon May 24, 2004 12:33 pm
360 GamerTag:triton199
Steam ID:triton199
Location:Iowa
Contact:

Post by Triton » Mon Apr 14, 2008 5:32 pm

Is there a way that people with better, non-hyped browsers with more features can view the chat (Opera and Safari users)?
boy someone sure isnt biased or anything :roll: if we were talking about IE and not firefox i would agree completly, opera is nice (especially on lower end computers, FF 2.x is a memory hog) but i dont see why you have to denigrate our choice in browser simply because its become a popular choice over others because of its ease of use and flexibility (not to say that opera or safari are any less easy to use etc, i wouldnt know about safari but as i said older version of opera that i have used are pretty nice too)

User avatar
lifeisbetterwithketchup
Senior Member
Posts:2180
Joined:Fri Jul 21, 2006 12:08 pm
Steam ID:lifeisbetterwithketchup
Location:Illinois. Whee.
Contact:

Post by lifeisbetterwithketchup » Mon Apr 14, 2008 6:35 pm

Triton wrote:
Is there a way that people with better, non-hyped browsers with more features can view the chat (Opera and Safari users)?
boy someone sure isnt biased or anything :roll: if we were talking about IE and not firefox i would agree completly, opera is nice (especially on lower end computers, FF 2.x is a memory hog) but i dont see why you have to denigrate our choice in browser simply because its become a popular choice over others because of its ease of use and flexibility (not to say that opera or safari are any less easy to use etc, i wouldnt know about safari but as i said older version of opera that i have used are pretty nice too)
Agreed. Opera runs better than Firefox on my Lifebook (although I use Firefox anyway, as I like adblock and co.). Safari for Windows is really bloated (used something like 300MB of RAM with 6 tabs open), although that is based on the initial beta (the first version available for Windows). Safari for Mac is good though, better than Firefox's Mac port.

And IE just sucks.
Rekarp wrote:
mako321 wrote:What makes you head ninja, anyways? :wink:
Cause I am Abe F#!@ing Lincoln. :mrgreen:

Electric Rain
Senior Member
Posts:1911
Joined:Tue Mar 29, 2005 12:39 pm
PSN Username:Denki_no_Ame
Location:What's it to you? Stalker...
Contact:

Post by Electric Rain » Mon Apr 14, 2008 9:18 pm

Thanks to you guys, the chatroom has gotten a bit of real-world testing. You've helped me expose a few bugs and security flaws. (Is that a good thing...? :lol:)

The chatroom is fully functional in a basic sense. At times, it will say that a user has logged out even if they haven't, and there's a simple "hack" that you can perform to enter the room with a different username. This won't be easy to fix though, since the "bridge" between the forums and the chatroom has to be client-side due to my lack of server access. Honestly, I'm a bit new to PHP, so if any of you think you can help me work a couple of these things out, shoot me a PM we'll talk about giving you FTP access to the chatroom scripts on my server.

Seriously. I could really use some help... please. :? Maybe we could figure something out for logins based on BenHeck cookies? That would be much more reliable.

Thanks to the handful of users that are using my chatroom at the moment! I hope the number of users at any given point will grow soon. :)
Image

User avatar
theelk
Posts:323
Joined:Sat Mar 17, 2007 9:48 am
Location:boring old connecticut
Contact:

Post by theelk » Wed Apr 16, 2008 12:27 pm

Alright, I look forward to using this. I haven't been by these forums in a little while (busy) but this looks fun.
Image
I don't want to make an "I'm leaving" thread, but I've sort of lost interest in this board. So if you notice that I'm gone, that's why.

Post Reply