Semi-Integrated BenHeck Chatroom!
Moderator:Moderators
-
- 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:
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 ) 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. 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? 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.
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. No individual user PMing either. Basically, none of that IRC "/command" crap. But we don't want something like that, do we? We want something that "just works" without too many bells or whistles.
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.
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.
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.
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 ) 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. 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? 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.
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. No individual user PMing either. Basically, none of that IRC "/command" crap. But we don't want something like that, do we? We want something that "just works" without too many bells or whistles.
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.
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.
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.
- Negative_Creep
- Posts:1093
- Joined:Mon Dec 31, 2007 3:04 pm
- Location:New Crack City
- Contact:
-
- 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:
- lifeisbetterwithketchup
- Senior Member
- Posts:2180
- Joined:Fri Jul 21, 2006 12:08 pm
- Steam ID:lifeisbetterwithketchup
- Location:Illinois. Whee.
- Contact:
-
- 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:
- Negative_Creep
- Posts:1093
- Joined:Mon Dec 31, 2007 3:04 pm
- Location:New Crack City
- Contact:
- Dr. KillGood
- Senior Member
- Posts:2209
- Joined:Sat Jan 21, 2006 1:03 am
- Location:Earth
- bicostp
- Moderator
- Posts:10491
- Joined:Mon Mar 07, 2005 5:47 pm
- Steam ID:bicostp
- Location:Spamalot
- Contact:
If you have an equivalent browser extension, then yes.Bibin wrote:Is there a way that people with better, non-hyped browsers with more features can view the chat (Opera and Safari users)?
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/
Twitter
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
-
- 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:
Thanks for fielding that one, Bic.
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.Dr. KillGood wrote:What do I need to do to use this "greesemonkey" thing?
Does it just work with firefox?
- Triton
- Moderator
- Posts:7397
- Joined:Mon May 24, 2004 12:33 pm
- 360 GamerTag:triton199
- Steam ID:triton199
- Location:Iowa
- Contact:
boy someone sure isnt biased or anything 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)Is there a way that people with better, non-hyped browsers with more features can view the chat (Opera and Safari users)?
Visit us at Portablesofdoom.org
- lifeisbetterwithketchup
- Senior Member
- Posts:2180
- Joined:Fri Jul 21, 2006 12:08 pm
- Steam ID:lifeisbetterwithketchup
- Location:Illinois. Whee.
- Contact:
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.Triton wrote:boy someone sure isnt biased or anything 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)Is there a way that people with better, non-hyped browsers with more features can view the chat (Opera and Safari users)?
And IE just sucks.
Rekarp wrote:Cause I am Abe F#!@ing Lincoln.mako321 wrote:What makes you head ninja, anyways?
-
- 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:
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...? )
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.
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.