The online racing simulator
Very nice Viper
Hey viper Nicely done. How did you manage to get that working in the profile field? im having problems here.

EDIT: Sorted. amazing what coffee can do
EDIT 2: Hmm got it working with IPB.. but not for VB. (add new profile field in VB is different and cant seem to add the option of including the 'http://www.lfsworld.net/isonline.username.gif'
Quote from Viper007Bond :Very nice. Added it to my forum.

http://forums.finalgear.com/showthread.php?t=14596

from your forum :
Quote :Oh, one thing though: is there anywhere I can link to to give more details (like where you're playing, etc.)? Nevermind, found it.

You can also link to the hostlist, which might be more relevant in this case :

http://www.lfsworld.net/?win=hosts&whichTab=licensed&racer=LFSUSERNAME

Quote from franky500 :Hey viper Nicely done. How did you manage to get that working in the profile field? im having problems here.

Here's what I did:

AdminCP -> User Profile Fields -> Add New User Profile Field -> Single-Line Text Box -> Fill in the form with whatever you want -> Save

Note the internal name of the field (not what you called it, but what vB is calling it). Example: "field9"


Now go to Styles & Templates -> Style Manager -> Your Theme -> Edit Templates -> Postbit Templates -> postbit/postbit_legacy (depending on what format you're using)

Then just add this in in the same area as registration date and such. You'll have to tweak it to match your theme and use the correct field ID.

<if condition="$post['field9']">
<div>
LFS Status:
<a href="http://www.lfsworld.net/?win=stats&racer=$post[field9]" target="_blank"><img class="inlineimg" src="http://www.lfsworld.net/isonline.$post[field9].gif" alt="LFS Status" title="Click to $post[username]'s full LFS stats" border=0" /></a>
</div>
</if>

Quote from Victor :You can also link to the hostlist, which might be more relevant in this case :

Ah, sweet, thanks!
i'm having doubts about whether it's actually better than the stats page though, as the hostlist will show nothing when the racer is offline, but the stats page will always show info about the racer, and also where he (or she) is online, when online.

anyway you decide for yourself
Yeah, I just noticed that myself too. I think I'll go back to the stats as it's more informative, plus it says online/offline there too.
That works brilliantly.

Thanks viper. I managed to find it needed to be in postbit somewhere but was trying it just in the Postbit. rather than postbit legacy

Thanks for the help
No prob.
As always a good feature u added Victor.

I tried it but cant get it to work, and i think the problem is my username, (AR)Göran, i have the "( )" that i think screw it up a bit. Is it a way around it?



Göran
Quote from (AR)Göran :As always a good feature u added Victor.

I tried it but cant get it to work, and i think the problem is my username, (AR)Göran, i have the "( )" that i think screw it up a bit. Is it a way around it?



Göran

Yours is working Goran, it's just that images in sigs are not allowed here.

Here is the link from your sig in IMG tags...

Implimented and working on the Clean Racers Club vB Forums.. Nice feature, thx.
Quote from Tweaker :Coolioz...

So I kind of thought the 'led' on the little image should be more noticeable, so that when someone is in fact online or whatever, it would stand out. So this is a bit of a different style, and I like it more to be honest:

EDIT: Also, Victor I was thinking you should provide the code for various forums so that the image can actually be linked (clickable) somewhere. Like this:



For vB and IPB (and other forums):
[url="http://www.liveforspeed.net"][img]http://www.lfsworld.net/isonline.USERNAME.gif[/img][/url]

For phpBB and other forums (no quotes for URL):
[url=http://www.liveforspeed.net][img]http://www.lfsworld.net/isonline.USERNAME.gif[/img][/url]

Neither of these work for Simple Machines Forums. Adding an HTML line will, however.

<a href="http://www.lfsworld.net/?win=stats&racer=LFSUSERNAME "><img src="http://www.lfsworld.net/isonline.LFSUSERNAME.gif" width="76" height="16"></a>

There is a bug using the HTML method, at least in SMF. You must put four (4) spaces after your username in the URL code. Is using an HTML line a security risk?
Sure could be a security risk imo. SMF forums aren't that great to be honest Banshee. And enabling users to use HTML is something you don't normally want to do on any forums.
Quote from banshee56 :Neither of these work for Simple Machines Forums. Adding an HTML line will, however.

<a href="http://www.lfsworld.net/?win=stats&racer=LFSUSERNAME "><img src="http://www.lfsworld.net/isonline.LFSUSERNAME.gif" width="76" height="16"></a>

There is a bug using the HTML method, at least in SMF. You must put four (4) spaces after your username in the URL code. Is using an HTML line a security risk?

hi,

I noticed in my logs that yours still doesn't work properly. This is what I get from you :

/isonline.banshee56.gif%22%20width=%2276%22%20height=%2216

That means the status of these requests will always show offline. Funny enough there are some good requests from your forum too, so I'm not sure why it's wrong, but something is :P
hmmmm.... i get problems with the [ ] in my name...is there a workaround?
have you tried the urlencoded version of your username?

%5BRCG%5DBoosted
kewl, that works.
what would i do without u?
how do u encode signs? never seen that before
i made a quick script for people to use : http://www.lfsworld.net/urlencode.html

I encode it there using javascript. Most web programming languages have them built in actually. Converting them by hand is nasty, although there are tables available if you google for them.
Damn, can't get it to work..
I am getting this all the time(see atachment) and it says "Boris Lozac was not find online".
I followed the procedure.. copied and pasted the url for "VB and other forums" and in places where says "USERNAME" i put "Boris%20Lozac", but it doesn't work. What am i doing wrong i'm really a Noob in these web things..
I even url encoded my username.
Attached images
lfs gif.jpg
mine works but no image (b/c image it turned off in sig.)
Quote from Victor :hi,

I noticed in my logs that yours still doesn't work properly. This is what I get from you :

/isonline.banshee56.gif%22%20width=%2276%22%20height=%2216

That means the status of these requests will always show offline. Funny enough there are some good requests from your forum too, so I'm not sure why it's wrong, but something is :P

Apparently, using the HTML code is not letting this work. I've found that my forums is truncating url's at 50 characters, which makes doing what I wanted to do, useless. I've since gone back to the IMG bbc tags.
Quote from imthebestracerthereis :mine works but no image (b/c image it turned off in sig.)

It's for use on other forums where IMG tags are allowed. And if you run your own forum, you can set up the feature in people's profiles, like what some have shown here already.
Quote from Boris Lozac :Damn, can't get it to work..
I am getting this all the time(see atachment) and it says "Boris Lozac was not find online".
I followed the procedure.. copied and pasted the url for "VB and other forums" and in places where says "USERNAME" i put "Boris%20Lozac", but it doesn't work. What am i doing wrong i'm really a Noob in these web things..
I even url encoded my username.

Images aren't allowed in sigs here.

FGED GREDG RDFGDR GSFDG