The online racing simulator
Searching in All forums
(97 results)
emit-nl
S2 licensed
Hey,
I'm now putting the script in my website
I think you've done a very good job with this script!

There is just one more thing I think it's missing: 'Sort by NickName'.
I think this would a very cool option to add to the script, cause then you can search for friend that you know by nickname, but not by username.
What do you think?

I'll go make the tables fit in my website now. It's a hell of a job to put in the right width values everywhere. I don't understand the values you used, it aren't pixels, could you explain it to me?

Bye,
Tim
emit-nl
S2 licensed
Quote from michele0676 :Released, see on first post.

Awesome! I'm going to try it right away!
Many thanks!

Tim
emit-nl
S2 licensed
That's really great! Can't wait till the release!
emit-nl
S2 licensed
I think that's great! I think it's cool when you can see the results when the page has loaded, instead of clicking on the button first.
Sorry for the misunderstanding in the PM. Here is the LFSLapperScript with databases!

I also made one script.php instead of 2, like you suggested! There now also is only one config.php.

I attachted the script tot this post so you can edit and then release it

It would be cool if you can also add the 'last updated on date&time'

Tim
Last edited by emit-nl, . Reason : Bug in the update script. Now fixed
emit-nl
S2 licensed
Yay, so happy now!! I found the solution!
After searching on the web for a long time, I finally found something, it's a JavaScript.

I think many people can use this, so I'll post it here!
This is the part of the LFSLapperScript on my page:

<?php 
    
<div id="sidebar">
        
php
        
include 'menu.php'
        
    
</div>
    <
div id="content">
        <
script
        function 
changeContent() 
        { 
        
document.getElementById('contentDIV').innerHTML window.frames['lfslapper'].document.getElementsByTagName('html')[0].innerHTML
        } 
        
</script> 

        <div id = "contentDIV"><br></div> 
        <iframe id = "lfslapper" name = "lfslapper" src ="page.php" onLoad = "changeContent()" style = "height:0; width:0; border-width:0;"></iframe>
    </div>
?>

You can see the result on http://www.sinsanity.nl/testt/ ... .nl/stats/drift/index.php
I tested it in IE8, Mozzilla FireFox 3.6 and Google Chrome.

Bye,
Tim
Last edited by emit-nl, .
emit-nl
S2 licensed
Quote from michele0676 :Sorry for late @emit-nl
i was busy in these day but i can see that u solved the problem (iframe).

No problem at all!
Well, the problem isn't fully solved.. Thanks to Fire_optikz001, the results will now load into the iframe, but still the iframe won't stretch. There are 120 results, but you can only see 45 or something like that. (when height is set to 100%)
Now I have removed the height code like Fire_optikz001 suggested, but then you will only see results.
Do you know if there is another solution than an iframe? I think iframes are a bit old.. Isn't there a PHP code that can do the same as the target and name codes in HTML?

So, it's still not fixed and I don't know how to solve it.

By the way, I have some other questions. I'm sure it would be possible and I tried some things, but I'm too unexperienced with PHP, so I'll just ask it here.

--> I think it would be nice if I can do something like this: if the track KY2R is stored in the database, then select KY2R as standart value in the menu.php, instead of All Tracks.

--> It would also be cool if you can add a line in the page like: 'Results last updated on date&time'.

--> Is it possible to make the page.php load before you hit the show results button? And maybe remove the button and make the page change when you click on a filter?


Thanks again for all the work you've done!

Tim
Last edited by emit-nl, .
emit-nl
S2 licensed
Quote from lysergic :These are my 2 solutions:

css styled: http://www.funracingleague.com/lfslapperscript/index.html
topmenu: http://www.funracingleague.com/lfslapperscript/topmenu.html

It looks great, and the topmenu is very intersting. But I want to implement the script into my website design, so it isn't possible for me to add an .css to the existing index.html, cause the page then will still have the same shape.. I have to get rid of the logo.html and top.html before I can implement it into my own website.

Thanks anyways. I think many people would appreciate it when you upload your topmenu and css versions!

Tim
emit-nl
S2 licensed
Thanks, the iframe works now!
I wanted to disable the scrollbar and make the iframe auto-stretching, so I this is what I've done:

<iframe name="lfslapper" src="page.php" allowtransparency="yes" frameborder="0" align="middle" scrolling="no" width="100%" height="100%">

Though, the height of the iframe isn't big enough.. I have setted it to auto too, but that doesn't work also.
When I fill in 1500px, the website will stretch, like it should do when it is auto or 100%.

Does anyone have an idea what this could be? I spended all day on it and I still haven't got any solution! :O

Link: http://www.sinsanity.nl/testt/ ... .nl/stats/drift/index.php

Thanks,
Tim
emit-nl
S2 licensed
Quote from Fire_optikz001 :do a html Iframe and it should work

I tried that too, but it doesn't work. After clicking on show result, the results will still be opened in a new window.
Anyways, thanks for helping. Maybe you have another suggestion of what it could be?

Tim
emit-nl
S2 licensed
Hi,
Today I have been struggling to implement the script in my website design.

After some trying, I thought it would be possible to put the following into my website: (the div id's are the sidebar and content of my website)

<?php 
div id
="sidebar">
php
include 'menu.php'

</div>

<
div id="content">
php
include 'page.php'

</div>
?>

I also removed the <html>, <head> and <body> tag from menu.php, page.php and page2.php.

Though, this doesn't work for me. I can see the menu and i see the message 'no result' of the page.php. But when I click on 'Show Result', the results will be opened in a new window and not in the content div of my website. Also the footer of my website disapears when i include the page.php. However I did delete the </body> and </html> tags at the end of the page.php file.

Could somebody help me with this? I don't have any experience with PHP, so it's very difficult for me.
Link: www.Sinsanity.nl/testt/website/Sinsanity.nl/stats/Race/

Thanks in advance!
Kind regards,
Tim
Drift version!
emit-nl
S2 licensed
Hi,

I just finished my drift version of the LFSLapperScript!
It can be seen on www.Sinsanity.nl/serverlogs/lfslapperscript/drift, complete with drift database of the $!N - Drift server.

I made it because I run a driftserver too, and I thought it would be nice if you can see the driftstats on the website aswell as the racestats.

What I've done:
  • I made 2 folders inside the LFSLapperScript. Race and Drift.
  • Edited the 'mysql instructions.txt'. For the racescript I changed 'lfslappertable' in 'racetable' and for the driftscript I called the table 'drifttable'.
  • Edited the config.php, menu.php, page.php, page2.php and script.php to work with the 'racetable' and 'drifttable' and made the script usable for driftPB.elp files.
I think that's all I've done.. I hope you like it!
If you give permission, I will attach it to this post, so you can release it.

Regards,
Tim

EDIT: I attached the lfslapperscript with drift function to this post, so michele0676 can now make some last changes before he releases it. Hope you like it!
Biggest changes in new version:
  • Added a drift function to the script
  • Removed lfslappertable and replaced it with racetable and drifttable
Last edited by emit-nl, . Reason : Attached the LFSLapperscript with drift funtion
emit-nl
S2 licensed
Hi,

Thanks for helping me guys, after all it was really easy to do!

But I still have some questions.

1.Is it possible to add more .elp files to the config.php?
I'm asking this because the data of my demo-server is in another database than the data of my race #1 and #2 servers. In the lfslapperscript I would like to show them both.
So what I'm asking is, is it possible to do something like this?
$file1 = "race.elp";
$file2 = "demo.elp";
If this isn't possible I will just make 2 lfslapperscripts on my website.

2.In the readme.txt, i have read the following: "After that the script was runned from LFS Lapper (or from u, simple calling the file "script.php") u can see the result calling the file "index.html".".

In my server LFSLapper will upload the database files automaticly to my webhost. But then the lfslapperscript doesn't update itself, or does it? In the readme you say, after the script was runned from lfslapper. Does this mean LFSLapper can update the lfslapperscript?
*BTW, i think i already found a solution for me, see attached file. It's a picture of a task scheduler of my webhost. Do you think this will work?*
I think it would be nice to make a little message on the page that will tell you when the database was updated for the last time.

3.Would it be possible to make a drift version of this script? I think it would be nice to have a lfslapperscript for driftservers where you can't see sector and laptimes, but where you can see the driftscore. Maybe it would be possible to use drift.html and driftconfig.php for this?
What do you think of this feature?


Also, if you want to, i think i can make the lfslapperscript xhtml1.0 strict and make a .css stylesheet so everyone can edit it to their own style. This would be nice for website implementations of the script.

Thanks for the help and the script till now, it's great!

Tim

BTW, the lfslapperscript is now online at www.Sinsanity.nl/serverlogs/lfslapperscript/
Last edited by emit-nl, .
Need some help
emit-nl
S2 licensed
Hi,

I just have been trying to make your lfslapperscript working, but I really have no experience with MySQL and PHPMyAdmin. I've seen your readme and mysql instructions files.. but still I can't get it, mainly because PHPMyAdmin there are much more values you can fill in.

So, could you help me with this please?
I attached some screenshots of PHPMyAdmin, and I'm sure it's not correct what I typed in it.. but hope you can tell me what to do.

Btw, I allready edited the config.php file for my database.
Link to the test website: www.sinsanity.nl/testt/website/Sinsanity.nl/lfslapperscript

Thanks in advance!

Tim
Last edited by emit-nl, . Reason : Ofcours I forgot to attach the pictures of PHPMyAdmin xD
emit-nl
S2 licensed
Cool! Is this still the beta or did you already finished it? If it's the beta, when do you think it will be done?

Really nice work, I will use it on my team-website
emit-nl
S2 licensed
LOL!! Great!
IdleExclude function in LFSLapper
emit-nl
S2 licensed
Hi,

For a while, I have a problem with the IdleExclude function in LFSLapper.
I'm using the newest version of LFSLapper, v5.9.2.5.
I'm not sure how long I'm dealing with this issue, so I can't say in which version of LFSLapper it was still working. (after v5.844 I remade my serverscript)

Explanation of the bug:
  • When I ('emit-nl') am the only one racing on the server, the IdleExclude function works fine!
  • When 'Seafalcon' is the only one racing on the server, it is working fine too.
  • When we are racing together on the server, we will both get the warning message after 60seconds and we will be spectated after being idle for 70seconds..
Could this be a bug in LFSLapper or have I made an error in my code?

My code:
##################################
#Options for idle player on track#
##################################

$IdleExclude = "emit-nl, Seafalcon"; # Usernames excluded for idle check

$OnIdleTimeout1 = 60; # Idle timeout for OnIdleAction1 in seconds

Event OnIdle1( $userName ) # Player event
privMsg( langEngine( "%{main_idle1}%" ) );
EndEvent

$OnIdleTimeout2 = 70; # Idle timeout for OnIdleAction2 in seconds

Event OnIdle2( $userName ) # Player event
cmdLFS( "/spec " . GetCurrentPlayerVar("NickName") );
privMsg( langEngine( "%{main_idle2}%" ) );
EndEvent

Thanks in advance!

Tim
emit-nl
S2 licensed
Quote from Fire_optikz001 :how do i do special chars Like •?

I found something for you: http://www.net-book.nl/bron/cms_image/ascii_tabel.jpg
Use ALT+code to get the special characters.
So, ALT+0149 = •

Good luck!

Tim
emit-nl
S2 licensed
LOL!! Thanks mate.. It seriously didn't came up in me this would be possible!

I'll edit my post and my LFSLapper script

Thanks
emit-nl
S2 licensed
Quote from Gai-Luron :Hello,

Better method is registered action

Gai-Luron

That's right! This is exactly what I'm using for my hosts..

In the event section of LFSLapper.lpr:

RegisterScheduleAction( "1 00 * * * * *:1 10 * * * * *:1 20 * * * * *:1 30 * * * * *:1 40 * * * * *:1 50 * * * * *", SA_visitus );

AND
Sub SA_visitus() # Lapper Event

globalMsg( langEngine( "%{main_visitus}%" ) );

EndSub

In the language section:
main_visitus = "^1» ^6Visit us: ^7http://www.sinsanity.nl";

This message will be shown every 10minutes (beleve me, every 10 minutes is frequent enough!!)
You can see it in all Sinsanity hosts: $!N - Demo, $!N - Drift, $!N - Race #1 and $!N - Race #2

Tim
Last edited by emit-nl, . Reason : Because of a really good idea of 'Fire_optikz001', Thanks! :)
emit-nl
S2 licensed
I'd like the idea
It would be great to use in cruise servers!
emit-nl
S2 licensed
I'd like the idea
It would be great to use in cruise servers!
emit-nl
S2 licensed
Thanks for the update!
I really like you make the ideas of people reallity in a short time

Thanks especially for the GetListOfLang function

Tim
emit-nl
S2 licensed
Aah ok, sorry for the misunderstanding.
Do you think it is useful to use this, with your ideas in LFSLapper or is it better to leave it the way LFSLapper is now? Then users can decide and make want they want themselves..

Like to hear your opinion

Tim
Language files
emit-nl
S2 licensed
Hi everyone!

I'm finished with the ideas for language files.
I made 2 versions.. so you can choose which one you like better..

version1: Like Gai-Luron suggested it would be good. One language file for LFSLapper.lpr and one for all files in the includes folder that uses the lang-engine. The name of the files for the languages is 'languages.lg'.

version2: This is how I like it the best. There is one file for every language. The files are stored in the folder: 'includes/languages/'. The filenames are like: en_english.lg.

WARNING! I did not test it.. because I haven't that much time this week and I prommised to release it this week.


I hope it all works and you like it.
I'd like to hear which option you like the best.

Greets,
Tim
emit-nl
S2 licensed
It works great! Thanks for this addon!
FGED GREDG RDFGDR GSFDG