This is a discussion on "I need help" within the PHP Forum section. This forum, and the thread "I need help are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
I need help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Ok here goes....I know not how to write a proper javascript and was kinda hoping someone could help me here.
I am an admin of a gaming forum and th emembers ahve asked me if there is a way of checking whos online without actually running the game and looking at the buddy list. What I am looking for is something that can be incorporated in a web page listing the members names (entered as text not within the script) and then a button that changes between online and offline next to the name. (think I sorta explained it). The game we are using is EA - Battlefield 2142. If you go here http://www.dggaming.com/forum/index....t=0&#entry4430 you will see some long banners with a soldier on the right side. These were created from here http://www.2142-stats.com/ukphoenixx+banner.html. The soldier has the word 'Resting' in red above it when offline and 'Fighting' in green when online. Now I know this information must be drawn from a javascript or database attached to the EA servers but wouldn't have a clue where to begin. Please can anyone help |
|
|
|
#2
|
||||
|
||||
|
Re: I need help
Considered any other languages? i don't really know how (if you could) do this with javascript smoothly, however it's not to overly complicated in say php.
I don't know... just an idea. |
|
#3
|
|||
|
|||
|
Re: I need help
If you have access to the EA database (which I highly doubt) then this would be easy using PHP.
Otherwise it could get a bit tricky - one method I can think of would to be to get the contents of a web page generated by the EA servers in which the status of the soldiers are listed and then parse the content of the page to get each soldiers status.... Again, easier with PHP than JS. Should I move this thread to the PHP forum?
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#4
|
|||
|
|||
|
Re: I need help
If you believe it should be moved to PHP section then so be it rather than duplicate elsewhere.
You mention about parse from another site, I have the text/script for the relavant banner but aint gotta clue what bits to use. http://www.2142-stats.com/ukphoenixx.../650+edit.html If someone would care to pull out the bits required to make my origianl request work then please do and either post it in this thread or mail it to me. |
|
#5
|
|||
|
|||
|
Re: I need help
moved to PHP Forum
I don't get what your last link is supposed to show. There's no script or a list of soldiers there...
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#6
|
|||
|
|||
|
Re: I need help
Maybe something to do with bookmarks i have....here's the script
Last edited by UKPhoenix; Nov 17th, 2007 at 11:01. Reason: Highlighted the only bit i recognised in red (bottom) |
|
#7
|
|||
|
|||
|
Re: I need help
Hello i have only just started learning Php but i will try and help,
Firstly i would create a Php page were members would be notified that they need to update there account, Then i would create a mysql database using Unique ID to hold the members updated account information, I would then link the mysql database to your Php page, lastly create a form that the members fill in to update there member information, this information should go directly into your mysql databse mentioned above, You could then use the php echo fuction to drag the logged in users information from the databse and display who's online or not. Its not as hard as it seems. If you need help creating the database to get you started let me now. hope this helps |
![]() |
| Thread Tools | |
|
|