Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[Addon] SpeedTest Mini
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-02-04 08:24:14
but if you'd followed my tut to the letter flav m8 , it would ask for flash player 8 ????????? if any

as i said earlier , they update the files every so often , so you must get latest
Unknown User
2011-02-04 08:31:50
Ok, i have updated and now it works, but i want it to show up on the index.php where the news and the notice is on, i tried to add to index.php

// Speed test

<?php include("speedtest.php"); ?>

but it sends me the error Parse error: syntax error, unexpected '<' in /home/adrianb/addondomains/www.imediazone.net/torrents/index.php  on line 21.

What can i do?
Unknown User
2011-02-04 09:29:16
I think you can only place a link on index

if you go to your theme/ header.php , can you not just copy the code for the travel button , replacing it with code to take you to speedtest , then you will end up with sport,travel,speedtest at the top

or as flav and create a block, placing it in center
Unknown User
2011-02-04 09:35:27
I have done the following: i have added in backend/config.php the following line: $site_config['SPEEDTEST'] = true; //enable/disable speed test

and into index.php:

if ($site_config['SPEEDTEST']){

begin_frame("Speedtest");

print("speedtest.php");

end_frame();

}

tell me how do you include a php file in this case, cause with print("speedtest.php") doesn't work, not even with include, with what should i replace print("speedtest.php"); so i can see the speed test in my index.php page?
Unknown User
2011-02-04 09:49:42
you can try , but i'm no coder i'm afraid

if ($site_config['SPEEDTEST']){

begin_frame("Speedtest");

echo '<IFRAME name="Speedtest" src="'.$site_config["SITEURL"].'/speedtest.php" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"  scrolling="no" align="center"></IFRAME>';



end_frame();

}


hope this helps , i just copied from an iframe on my site the height and width may need adjusting
Unknown User
2011-02-04 10:01:26
"SJC2TK, post: 70305":
i'm getting the very latest files again now , and will try myself from scratch, hopefully post the fix
worked 100% for me , get latest files from here :[url="http://www.speedtest.net/mini.php"]http://www.speedtest.net/mini.php[/url]

create folder named speedtest extract all files into it and upload to root , rename index-php.html to index.html and in that replace code with

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Speedtest.net Mini Bandwidth Speed Test</title>

</head>

<body bgcolor="#000000">



<table border=0 width=100% height=100%>

<tr><td align=center valign=center>



<!-- BEGIN SPEED TEST - DO NOT ALTER BELOW-->

<script type="text/javascript" src="speedtest/speedtest/swfobject.js"></script>

<div id="speedtest">

Speed Test requires at least version 8 of Flash. <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Please update your client</a>.

</div>

<script type="text/javascript">

  var so = new SWFObject("speedtest/speedtest.swf?v=2.1.5", "speedtest", "450", "250", "8", "#171715");

  so.addVariable("upload_extension", "php");

  so.write("speedtest");

</script>

<!-- END SPEED TEST - DO NOT ALTER ABOVE -->



</td></tr>

</table>



</body>

</html>
create file speedtest.php and put in


<?

require_once("backend/functions.php");

dbconn(false);





stdhead("SpeedTest Mini");



//Speedtest

if (!$site_config["MEMBERSONLY"] || $CURUSER) {

begin_frame("Oo. SpeedTest Mini .oO");

echo file_get_contents("speedtest/index.html");

end_frame();

}

stdfoot();

?>



then i created a link in navigation block where you want it to show



echo "- <a href=speedtest.php>Speedtest</a><BR>";


and as i say , works 100% for me

works exactly as he said it big thx SJC2TK
Unknown User
2011-02-04 10:04:18
"SJC2TK, post: 70322":
you can try , but i'm no coder i'm afraid


if ($site_config['SPEEDTEST']){

begin_frame("Speedtest");

echo '<IFRAME name="Speedtest" src="'.$site_config["SITEURL"].'/speedtest.php" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"  scrolling="no" align="center"></IFRAME>';



end_frame();

}


hope this helps , i just copied from an iframe on my site the height and width may need adjusting


Thanks mate, but instead of speedtest.php i used speedtest.swf, it is not required anymore the speedtest.php, tanks a lot
Unknown User
2011-02-04 10:14:17
and for the index u can put this where u want it to show

if (!$site_config["MEMBERSONLY"] || $CURUSER) {

begin_frame("SpeedTest Mini");

echo file_get_contents("speedtest/index.html");

end_frame();

}
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728