Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (0)

Powered by Vanilla. Made with Bootstrap.
VISP chat - Chat Room Script - Advice? Help?
  • Mr. P-teoMr. P-teo
    Posts: 269
    So iv been working on this script for a while after i made a much more basic version of this. As far as chat rooms go this is very basic compared to others out there but im still quite impressed with it. Eventually i want this to become like a community project where people can contribute whatever they want.

    I also plan to create an admin panel where the admin can manage users, banned words etc.

    Is made with a combination of Javascript - including jQuery & PHP

    Im having a few issues which are listed below but heres and image of what i have so far.

    [spoiler]
    http://imgnow.tk/u/636918910.png
    [/spoiler]


    So basically im having the following problems,

    - textarea newline, if i add a newline in the textarea it doesn't in the chat as there is no <br />


    - run script when page closes.


    If you feel you can help with this project then PM me, or if you just want to help with my issues then i would be grateful. Also what do you think of the design so far, and what could be done to improve it?
    Skype: mrpt3o
    Twitter: MrPteo


    image
  • sangf
    Posts: 203
    that looks pretty good! i like the design, but the uneven gaps bug me a litttle~ anyway~ about your issues:
    [list=1]
    [*]you could just replace '\n' with '<br />' using JavaScript; ie. str.replace(/\n/g, "<br />") - i don't like the idea of multiple lines in a multi-person chat personally, but hey.[/*:m]
    [*]http://api.jquery.com/unload/ - although you shouldn't rely solely on this - i think you need a ping (ie. client stayAlive()) and/or a timeout.[/*:m][/list:o]as for suggestions, i don't think forcing gender specification is a good idea, so i hope that can be optional - and maybe even disabled by default.
    overall, i think you did a good job with this so far, from what i can see! ~(^.^~)
  • Sh3llc0d3
    Posts: 1,910
    said:


    that looks pretty good! i like the design, but the uneven gaps bug me a litttle~ anyway~ about your issues:
    [list=1]
    [*]you could just replace '\n' with '<br />' using JavaScript; ie. str.replace(/\n/g, "<br />") - i don't like the idea of multiple lines in a multi-person chat personally, but hey.[/*:m]
    [*]http://api.jquery.com/unload/ - although you shouldn't rely solely on this - i think you need a ping (ie. client stayAlive()) or a timeout.[/*:m][/list:o]as for suggestions, i don't think forcing gender specification is a good idea, so i hope that can be optional - and maybe even disabled by default.
    overall, i think you did a good job with this so far, from what i can see! ~(^.^~)



    Damn you! lol I was about to give the same answer! Grrrr! :p
  • Mr. P-teoMr. P-teo
    Posts: 269
    Okay thanks very much for your input, i will look into what you said. Im hoping i can make it an open source project where people contribute to it etc.
    Skype: mrpt3o
    Twitter: MrPteo


    image
  • Sh3llc0d3
    Posts: 1,910
    Would be good to make it open source, if you implemented it you could enable people to make community plugins etc :)
  • Mr. P-teoMr. P-teo
    Posts: 269
    said:


    Would be good to make it open source, if you implemented it you could enable people to make community plugins etc :)



    Yer im thinking about implementing it, but its a new aspect of php that i need to look into.
    Skype: mrpt3o
    Twitter: MrPteo


    image
  • Mr. P-teoMr. P-teo
    Posts: 269
    Today i rewrote almost all of the script into classes etc. The code is layed out much nicer now.
    Skype: mrpt3o
    Twitter: MrPteo


    image