PDA

View Full Version : How to make online/offline buttons


HeerBommel
16th December 2007, 17:41
I think this is be asked hundreds of times before but I can't find it :shrug:

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........http://www.lfsworld.net/isonline.Mad%20dog.gif
Henk.........http://www.lfsworld.net/isonline.Nukie.gif
Jack...........http://www.lfsworld.net/isonline.Jackman.gif
Ronald.......http://www.lfsworld.net/isonline.Meanman.gif
Sjoerd........http://www.lfsworld.net/isonline.Yisc[NL].gif <== this one doesn't work
Raymond....http://www.lfsworld.net/isonline.heerbommel.gif

2nd qustion: I want the same kind of button for our server
server.........http://www.lfsworld.net/isonline.Revolution%20Racing%20Team.gif
This doesn't work to make a server visible but I don't know any other solution..

DANDAMAN05
16th December 2007, 17:42
Sjoerd........http://www.lfsworld.net/isonline.Yisc[NL].gif <== this one doesn't work

i think that you will find that it does :thumb:

EDIT: Doh didnt look at the attachments! Sorry.

the_angry_angel
16th December 2007, 17:47
Convert the characters to their relevant ASCII representation.

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

Victor
16th December 2007, 17:48
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.

HeerBommel
16th December 2007, 18:42
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

Dygear
18th December 2007, 07:16
What would be be looking for in that button for the server?

Simply is Online / Offline?

HeerBommel
18th December 2007, 21:21
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 :shrug:

HeerBommel
30th January 2008, 02:13
It's finally working now :)
http://www.dhost.info/rayman/



......

DU-racer
4th March 2008, 08:17
Can i put buttons on site if i have a free host and if i can please tell me how.

mcgas001
4th March 2008, 09:07
Can i put buttons on site if i have a free host and if i can please tell me how.

http://www.w3schools.com/tags/tag_button.asp

=)

DU-racer
4th March 2008, 09:34
http://www.w3schools.com/tags/tag_button.asp

=)


I want put buttons online,offline for racers

mcgas001
4th March 2008, 09:38
I want put buttons online,offline for racers


In that case, Ignore my previos post :p

the_angry_angel
4th March 2008, 09:52
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.

DU-racer
4th March 2008, 19:38
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]

niall09
4th March 2008, 20:18
Lets see your website, and then we can see whats wrong :)

DU-racer
4th March 2008, 21:00
Lets see your website, and then we can see whats wrong :)


see

niall09
4th March 2008, 21:05
can you not tell us a link to the website?

the_angry_angel
4th March 2008, 23:29
seeSeeing 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.

Dygear
5th March 2008, 04:56
Try this.

http://www.lfsworld.net/isonline.DU-racer.gif

DU-racer
5th March 2008, 07:15
Try this.

http://www.lfsworld.net/isonline.DU-racer.gif


No my site is http://nitrousteam-lfs.page.tl

niall09
5th March 2008, 10:10
Try this.

http://www.lfsworld.net/isonline.DU-racer.gif

Thats for a forum.

Try this:
<img src="http://www.lfsworld.net/isonline.DU-racer.gif">

DU-racer
5th March 2008, 11:01
Thats for a forum.

Try this:
<img src="http://www.lfsworld.net/isonline.DU-racer.gif">

i have for forum i need for site

JamesF1
5th March 2008, 11:39
Thats for a forum.

Try this:
<img src="http://www.lfsworld.net/isonline.DU-racer.gif">

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 :thumbsup:

the_angry_angel
5th March 2008, 13:25
No my site is http://nitrousteam-lfs.page.tlWhat are you using to create/edit the page?

niall09
5th March 2008, 13:30
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 :thumbsup:

I knew something looked wrong :shy:

DU-racer
5th March 2008, 18:12
What are you using to create/edit the page?


nothing i only put what i want on page,music,pictures..... it is a free host and it is making like a blog

DU-racer
7th March 2008, 09:14
nothing i only put what i want on page,music,pictures..... it is a free host and it is making like a blog

hello

Dygear
7th March 2008, 09:17
How do you edit pages on this host? FTP?

Dygear
7th March 2008, 09:21
If your uploading the files by hand, then It might be the editor your using. Try just plain old notepad and upload it that way. (I really don't think that's the case, with a free host even allowing FTP access, but that's just me.)

Also, I see you have embedded an image on the front page now, it's basically the same setup, but with a smaller image.

Victor
7th March 2008, 09:22
i'm thinking he edits his 'blog-like-site' via an online edit form where no html tags are allowed.

Dygear
7th March 2008, 09:38
i'm thinking he edits his 'blog-like-site' via an online edit form where no html tags are allowed.

But looking at the front page, it would seem that the interface does allow images to be placed in the 'user area'. So yeah. Wish I knew more about the interface for sure. Don't know how much hand holding we can do tho.

DU-racer
13th March 2008, 18:53
it is like blog-like-site

HeerBommel
19th March 2008, 00:58
I made my site with MS-Frontpage.
http://www.dhost.info/rayman/

http://www.lfsworld.net/isonline.heerbommel.gif

Dygear
19th March 2008, 08:14
I made my site with MS-Frontpage.

I am sorry to hear that. Tho points to you sir, the site does look really good, the style of it is very nice. Very pleasing to my eye.

three_jump
13th April 2008, 20:16
well, kind of similar problem


<a href="http://www.lfsworld.net/?win=stats&amp;racer=g.i.joe@bsr"><img class="isize" src="http://www.lfsworld.net/isonline.bbo&amp;#64;bsr.gif" alt=" " border="0"></a>



Using the code above displays me the image itself, but its always showing offline, even when the person is online...
I guess the problem is the "@" which I can only display that way, but as I get the image it shouldn't be working, right?

Victor
13th April 2008, 20:42
you're htmlspecialchar'ing the name while you should be urlencoding the name.

but in your case, @ doesn't have to be converted afaik. It works here when i view http://www.lfsworld.net/isonline.bbo@bsr.gif
it shows spectating atm

if you need to know how to enter a name for the isonline purpose, you can use this page to convert names : www.lfsworld.net/urlencode.html

three_jump
13th April 2008, 21:26
Due some limitation I can't use the "@" as it gets detected as email then (joomla)... :( (Probably I'll have to find a way to disable that email thingy :shrug:)

Victor
13th April 2008, 21:29
in that case, use this http://www.lfsworld.net/isonline.bbo%40bsr.gif

three_jump
13th April 2008, 21:34
in that case, use this http://www.lfsworld.net/isonline.bbo%40bsr.gif

:lovies3d: I owe you a beer or a cigarete when we meet next time

bknec
14th April 2008, 16:22
2nd qustion: I want the same kind of button for our server
server.........http://www.lfsworld.net/isonline.Revolution%20Racing%20Team.gif
This doesn't work to make a server visible but I don't know any other solution..

Don't know if this issue of yours has been solved but I find Krammeh's server status icon (http://www.lfsforum.net/showthread.php?t=40175) working great. :nod: Cheers