The online racing simulator
How to make online/offline buttons
I think this is be asked hundreds of times before but I can't find it

I want to make some online/offline buttons for racers on our forum, I know how this works, I know spaces must be filled with %20, but I have a problem with one name, he has "[ ]"characters in his name and his button doesn't work.

1st question: How do I handlle with these characters ?
Johan........
Henk.........
Jack...........
Ronald.......
Sjoerd........ <== this one doesn't work
Raymond....

2nd qustion: I want the same kind of button for our server
server.........
This doesn't work to make a server visible but I don't know any other solution..
Attached images
button1.jpg
button2.jpg
Quote from HeerBommel :Sjoerd........ <== this one doesn't work

i think that you will find that it does

EDIT: Doh didnt look at the attachments! Sorry.
Convert the characters to their relevant ASCII representation.

For example:
http://www.lfsworld.net/isonline.Yisc%5BNL%5D.gif

http://www.lfsworld.net/urlencode.html if that helps

edit - and that button doesn't work for hosts. You'd need to do that another way. Like with pubstats for example, though that'll require a little scripting on your end.
Hmm, that's a very handy link, I only knew the %20 for spaces

Thank you Victor.

And for the host: I'll have to find another solution
What would be be looking for in that button for the server?

Simply is Online / Offline?
Quote from Dygear :What would be be looking for in that button for the server?

Simply is Online / Offline?

Yes, that's all I want, an Online/Offline button
Can i put buttons on site if i have a free host and if i can please tell me how.
Quote from DU-racer :I want put buttons online,offline for racers

In that case, Ignore my previos post
Quote from DU-racer :Can i put buttons on site if i have a free host and if i can please tell me how.

Yes.

<img src="http://www.lfsworld.net/isonline.USERNAME.gif" alt="online / offline icon for USERNAME" />

Replace USERNAME with the user's LFS licenced username.
Quote from the_angry_angel :Yes.

<img src="http://www.lfsworld.net/isonline.USERNAME.gif" alt="online / offline icon for USERNAME" />

Replace USERNAME with the user's LFS licenced username.

I m doing what you said but i only see
<img src="http://www.lfsworld.net/isonline.USERNAME.gif" alt="online / offline icon for USERNAME" />

Replace USERNAME with the user's LFS licenced username.[/quote]
Lets see your website, and then we can see whats wrong
Quote from niall09 :Lets see your website, and then we can see whats wrong

see
Attached images
DSC00632.JPG
can you not tell us a link to the website?
Quote from DU-racer :see

Seeing a picture of the webpage is irrelevant. It sounds like whatever you're using to edit the page has treated the code as text, not actual HTML. The only way we could confirm that would be to actually see the code that makes up the page.
Try this.


<?php 
[img]http://www.lfsworld.net/isonline.DU-racer.gif[/img]
?>

Quote from JamesF1 :If you're going to paste him code, make sure it's right. Either end it with /> if you want XHTML 1.0 or ></img> for HTML 4.0

I knew something looked wrong
1

FGED GREDG RDFGDR GSFDG