View Full Version : [Unofficial] Clubpenguin Server Chat
TheRealJaMeS
28 August 2007, 04:03 PM
Hey i made this over the weekend :)
Ive been making programs in VB and Flash for a while... but never PHP! so i decided i would have a crack, and this is what i came up with!
It gives each server on clubpenguin a chat room, so basically you can use it as a global chat system for everyone whos on a certain server :D
At the moment it also shows how many messages have been posted in each chat server, but im going to try to make it show how many people are in it, too.
You can also make your own private server, which anyone can access, but will not be shown on the list, and this is free! :) you can even add a little peice of code to your website which allows visitors to go to this chat room via a button!
Since i take computing at collage, and i have a project coming up, im likely to make something like this for that, so any feedback would be greatly appriviated :D
P.S This is web-based, so there is no downloads, so this will work on all Operating Systems :D
Link: http://www.zendurl.com/jpsource/ChatServers.php
Enjoy!
-JaMeS
The Rock
28 August 2007, 04:08 PM
Wow, thanks! You and Rancid have good programs! Like the famosu tracker thing lol
TheRealJaMeS
28 August 2007, 04:09 PM
Only... Rancid is better at making them :P
The Rock
28 August 2007, 04:11 PM
His programs rule. But, some of them are not often updated like theres many more famous people on cp.
Xbox So Me
28 August 2007, 04:11 PM
Hey JaMeS! Yeah the chat is awsome.
TheRealJaMeS
28 August 2007, 04:19 PM
Hey thanks again Xbox so me!
Just added another word to the block filter... its beyond me why people even send messages like what i just saw :(
Xbox So Me
28 August 2007, 04:27 PM
Really?? What server was that on? When?:O
TheRealJaMeS
28 August 2007, 04:38 PM
In whiteout, i removed what he said, so its ok :)
Xbox So Me
28 August 2007, 04:40 PM
Yea i just saw:OWhy would someone d that?:?:
TheRealJaMeS
28 August 2007, 04:44 PM
People have issues, Xbox :(
Hopefully thats the only bad language im going to have to remove...
Xbox So Me
28 August 2007, 04:45 PM
A few come to mind but im not going to test it.;)
TheRealJaMeS
28 August 2007, 04:52 PM
Yeh, well ive just tried to block a few more, but if i type really bad words into the coding of my pages, ZendUrl (the server im using) puts a big message on my pages saying its unsafe :(
Xbox So Me
28 August 2007, 04:54 PM
thats weird.....doesnt it regognize that yur trying to BLOCK the bad words.....i dont see any messages:(
TheRealJaMeS
28 August 2007, 05:07 PM
well obviously it doesnt, haha :(
And yeh u dont see the messages cos when i tried it, i saw the message myself :P so i undid it :/
flooger100
28 August 2007, 07:25 PM
I'd thought you'd post this on CP HQ first...
Xbox So Me
28 August 2007, 07:46 PM
flooger, he DID post it there first.....so i think:)
coolmanos
28 August 2007, 07:55 PM
so what is this thing? do u need to download it?
!Icy Chris!
28 August 2007, 08:19 PM
Yeah, Same question as coolmanos. What does this do? Any viruses?
Xbox So Me
28 August 2007, 08:24 PM
its a simple website chat room. its modded well.;)
Gamerboy
28 August 2007, 09:59 PM
Being only php I've got a few questions to ask.
1.I presume it isn't real time, am I correct? (PHP is server side, so unless its coupled with something else)
2.Does it refresh automatically? If so can it be changed?
It's just HTML and Javascript really and I don't think he's but some viruses on there. (Well to your computer, server side there is PHP).
ZeeeeeeeeBra
28 August 2007, 11:08 PM
wow take a lol while to load but nice job...
Pc 1203
29 August 2007, 04:26 AM
Being only php I've got a few questions to ask.
1.I presume it isn't real time, am I correct? (PHP is server side, so unless its coupled with something else)
2.Does it refresh automatically? If so can it be changed?
It's just HTML and Javascript really and I don't think he's but some viruses on there. (Well to your computer, server side there is PHP).
According to the page source, it is not auto-updated. Try making is in flash, it's pretty simple. :)
Waddle!
- Pc1203
PS: JaMeS, use MySQL for your logs. Not flat txt files. Yes, I saw :P
TheRealJaMeS
29 August 2007, 09:26 AM
Hey guys thanks for the comments :)
It doesnt use Javascript attall... (appart from the buttons that open the servers)
Pretty much everything is written in PHP, all it does is it adds your message/name/time etc to a text file, and the chats load these text files into the chat :)
And no, it isnt real time, im not quite sure i can get it to be real-time by using PHP (unless i just make the page refresh by itself, every few seconds)
And Pc, as i said im new to PHP :P i may use MySQL Later on, but hey, i made the text file's name's quite complex didnt i? You'll be hard pushed to find them without seeing an error like you probably did :P
And i dont know much about flash... :P so i wouldnt even know where to start!
Snow Rocker
29 August 2007, 10:27 AM
Some people think that it makes them look tough if they use language like that... To me it looks like they should be locked up in a mental hospital :)
TheRealJaMeS
29 August 2007, 02:40 PM
Haha i dont know whether i would go that far... :P
But yeh... people do try to act "hardcore" with their keyboard... its just petty and im unsure as to why they cant do more constructive things with their lives...
Pc 1203
29 August 2007, 03:46 PM
And Pc, as i said im new to PHP :P i may use MySQL Later on, but hey, i made the text file's name's quite complex didnt i?
Yup. Their names were pretty weird, but hey I'll crack it :P Anyway, I would try an Meta Auto Refresh, just so it looks like a real chat. Also the flash thing, sorry about that. I was working on FlashChat at my forums and it was 2 AM so.. :rolleyes:. Also, maybe you could make the newest messages at the top and the oldest at the bottom.
Waddle!
- Pc1203
Nintendo
29 August 2007, 03:48 PM
Wow! How'd you make that JaMes?????
Pc 1203
29 August 2007, 04:03 PM
Wow! How'd you make that JaMes?????
It's a PHP Script he tried. Just learn a bit of PHP and you could make it. If you do not know what php is, here's a bit of codes:
<?php
?>
That is the "basics" of a PHP Page. It MUST have "<?php" and "?>"
<?php
echo "Hello World!";
?>
That is a simple PHP Page that shows "Hello World!"
If you need more tutorials, just go to www.tizag.com
Waddle!
- Pc1203
TheRealJaMeS
29 August 2007, 04:29 PM
Hey the problem with the meta refresh tag is that it refreshes the whole page, and thus, if your typing in the name or message field, it may refresh before u finish putting your text in... which will stop u from typing ;)
And yeh, basically i used PHP as Pc said.
Xbox So Me
29 August 2007, 04:35 PM
Yeah if i knew PHP and wanted to do that, id use Macromiedia Dreamweaver MX and create the text boxs and stuff. not 100% PHP.;)
Pc 1203
29 August 2007, 04:40 PM
JaMeS, maybe you could look at this (http://www.ajaxdaddy.com/demo-ajax-chat.html). It is a AJAX Based chat and maybe you can learn something from it. ;)
Waddle!
- Pc1203
Gamerboy
29 August 2007, 04:53 PM
Hey the problem with the meta refresh tag is that it refreshes the whole page, and thus, if your typing in the name or message field, it may refresh before u finish putting your text in... which will stop u from typing ;)
And yeh, basically i used PHP as Pc said.
Couldn't you make an iframe with the text in it and just refresh that iframe?
TheRealJaMeS
29 August 2007, 04:54 PM
Cheers Pc 1203, ill have a look at that :)
TheRealJaMeS
29 August 2007, 04:56 PM
Couldn't you make an iframe with the text in it and just refresh that iframe?
Thats exactly what im currently working on! :)
EDIT: bah... it works... but it still messes you up if your typing :(
EDIT: Sorry, but how can i correct my double post if i dont have rights to delete my own posts? Seams rediculous to me...
Xbox So Me
29 August 2007, 05:09 PM
lol i made the 200th post on iceburg.:D He is cooking something up i keep losing connections
TheRealJaMeS
29 August 2007, 05:11 PM
Yeh im tryign to make allot of things work lol
Btw, what do you think of the banner?
http://www.zendurl.com/jpsource/images/cpbanner.png
Edit: Just fixed that annoying thing where u had to scroll to the bottom every time u send a message, now u dont! :)
finny2
29 August 2007, 05:42 PM
Its quite good i think
Off topic:go on msn vital viper
Xbox So Me
29 August 2007, 06:55 PM
Yeh im tryign to make allot of things work lol
Btw, what do you think of the banner?
http://www.zendurl.com/jpsource/images/cpbanner.png
Edit: Just fixed that annoying thing where u had to scroll to the bottom every time u send a message, now u dont! :)
JaMeS, that is really good! Its perfect!:D:O Im guessing you used photoshop?
TheRealJaMeS
29 August 2007, 09:21 PM
Yehh i used photoshoopppie :) got the hang of it now :)
kappinsam
29 August 2007, 11:01 PM
it wont let me in public rooms. when i clicked on the server it didnt do anything
Xbox So Me
29 August 2007, 11:09 PM
Yehh i used photoshoopppie :) got the hang of it now :)
lol^^ PM me on CPHQ and ill give you lessons;)
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.