No problem for me
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
Looks like the form is submitted to a new page instead of the section you want.
You have to check the 'target' value at the start of the form.
Quote from emit-nl :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

do a html Iframe and it should work
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
If you wonna do it without frames you must do it via JavaScript or AJAX (it's JS too)
Quote from emit-nl :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

like this

<html>
<head>
<title>Test Iframe links</title>
</head>
<body>
<h1>content</h1>
<a href="http://www.google.com" target="innerframe">Google</a>
<a href="http://www.yahoo.com" target="innerframe">Yahoo</a>
<a href="http://www.skysports.com/football" target="innerframe">Skysports</a>
<iframe name="innerframe" src="http://www.google.com" width="100%" height="100%">

</iframe>
</body>
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
Quote from emit-nl :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

i think it would look better with the scroll bar but have u tried removing height? i think that would fix it
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
Sorry for late @emit-nl
i was busy in these day but i can see that u solved the problem (iframe).
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
You should set scroll to yes to be able to see all the results.
If you don't want to use IFrame you could also work with a frameset in which you can give every frame a name and send data to a specific frame.

Maybe I should put in an example of an index.php


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html40/frameset.dtd">
<HTML>
<HEAD>
<TITLE>BLA</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">

</HEAD>

<?php

//Get name send by clicking Home as logged in user
$nickname=$_GET['nickname'];
//End

echo "<FRAMESET rows=\"225,40, *\">";
echo "<FRAME src=\"top.php\" name=\"top\" frameborder=\"0\" noresize scrolling=\"no\">";
echo "<FRAME src=\"menu.php\" name=\"menu\" frameborder=\"0\" noresize scrolling=\"no\">";
echo "<FRAME src=\"home.php?nickname=$nickname\" name=\"home\" frameborder=\"0\" noresize scrolling=\"yes\">";
echo "</FRAMESET>";
?>

</HTML>

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
@emit-nl

--> 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.

This only if there one track, right ?

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

I can do this one if u want, simple adding a new field in db.

--> 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?

I did this one but i return back because if u have a big db this cause a big load server charge.

But if u want to it simple, in menù.php

ORIGINAL
<select name="selecttrack" size="2" style="width:160px; height:114px;">

MODIFIED:
<select name="selecttrack" size="2" style="width:160px; height:114px;" onchange="form.submit()">

This one for ALL select.

---

About iframe, I don't know java script language so i don't know other solution more "modern".
Check this one:

http://www.g5c.com/lfslapperscript/

I think we can use auto refresh without button because lfslapper db is not big like airio db.

Where i can found drift data ?
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
Attached files
NOTOFFICIAL_LFSLapperScript_v1.1.5.rar - 42.3 KB - 149 views
Emil on the left there is the date/time of update
I try to "do" one only script for drift score and times.
One question, i'm near to release version 1.0.1 for times and drift score.

But there's a problem:

http://www.g5c.com/lfslapperscript2/

For me in drift data when i displayed it is not "intelligenze" display tracks and car because drift score are for all, not for single track/car.

Is this correct ?

New script will store times and drift score, only drift or only times.
Errata corrige.

Take a look now.

Total drift and drift score for single track.
That's really great! Can't wait till the release!
Released, see on first post.
Quote from michele0676 :Released, see on first post.

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

Tim

FGED GREDG RDFGDR GSFDG