•Component Name: Speedtest
•ID: speedtest
•Menu Name: OpenSpeedTest
•Author: TheDoggyBrad
•Description: Offer speedtest to your users, powered by OpenSpeedTest
•License: OSSN License v4
•Author URL: https://github.com/thedoggybrad/
•License URL: https://www.opensource-socialnetwork.org/licence/v4.0.html
•Latest Version: 1.8 (Available here on OSSN Website and on Github)
•Older Versions: 1.7, 1.6, 1.5.1, 1.5, 1.4, 1.3, 1.2, 1.1 and 1.0 (Available only on Github)
•Requires OSSN: version 5.6
•Tested up to: OSSN version 7.0
Alternate Download Link: https://github.com/thedoggybrad/speedtest-ossn/releases/download/1.8/speedtest.zip
This component is 100% stable and working in OSSN version 7.0. But, please always use the latest version to avoid any problems. By the way, the older versions are not maintained on this listing but they are available on my Github repository.
Note: I am willing to fix any problems related to this component, just please let me know.
Very Special Thanks to
https://www.opensource-socialnetwork.org/u/arsalanshah
https://www.opensource-socialnetwork.org/u/zetman
Have you ever seen a html page with two heads and/or two bodies?
@Michael Zülsdorff, it means that I can simply remove my opening and closing head and bodies? right? for that file
The extra index.html file is for the open in new tab file as I mentioned earlier. Have a backread why I do that.
Try opening the url here used in the Iframe for the speedtest.php component
src="//openspeedtest.com/speedtest">
which is this one https://openspeedtest.com/speedtest
redirects you to https://openspeedtest.com/?ref=WidgetRedirect and that is the thing I resolved by simply making a page just with the Iframe in there so that this redirection will not happen.
Thank you, working fine for me, lousy connection here, but I live in the mountains so no complaints.
Okay,
now that you successfully cleaned up the com file from obsolete code, let's have a look into speedtest.php.
And what is that please? Another <head>
section and and another <body>
section ?!?
Have you ever seen a html page with two heads and/or two bodies? That's complete nonsense, because your plugin gets embedded inside of the Ossn parent structure which has head and body already in place.
And: why do we need that extra speedtest on a separate page?
Version 1.5.1 Changelog:
Removes the stray "}" item in the html file of the open new tab.
I wish to clarify something here:
Also, I modified the "Open in new tab" to open a full page Iframe due to problems that OpenSpeedTest does not provide the Iframe Source Page on their site unless actively used in an Iframe
-Changelog v1.5
Try opening the url here used in the Iframe for the speedtest.php component
src="//openspeedtest.com/speedtest">
which is this one https://openspeedtest.com/speedtest
redirects you to https://openspeedtest.com/?ref=WidgetRedirect and that is the thing I resolved by simply making a page just with the Iframe in there so that this redirection will not happen.
Version 1.5:
Thanks to https://www.opensource-socialnetwork.org/u/zetman for helping me fix the problem regarding the registration of the component to every user and removing unecessary code.
Also, I modified the "Open in new tab" to open a full page Iframe due to problems that OpenSpeedTest does not provide the Iframe Source Page on their site unless actively used in an Iframe
yes,
move that line below ossn_extend_view
then you can get rid of that extra error page stuff
Version 1.4 Changelog:
Thanks to https://www.opensource-socialnetwork.org/u/zetman for making me aware about the strange "{ }" in lines 43 and 57 of the ossn_com.php file.
But the issue regarding the intial register to everyone has not been yet fixed (possibly to be fixed in the future version 1.5) but it does not affect anything regarding the functionality of this component.
By the way, as usual older releases will be recalled.
ossnregisterpage('speedtest', 'speedtest_pages');
@Michael Zülsdorff, is this one the initial register you are talking about?