Mr House
10-25-2007, 10:00 PM
All,
Firstly please be aware that this required vBadvanced installed from http://www.vbadvanced.com.
The purpose of this check is to put links into a module that tell you if a site is up or down that you are linked to. If it is up, then you have a link to it with the information displaying when you hover over the link button. If it is down, then it tells you that it is offline.
An example of it running is at www.desertislandfruits.com.
In the PHP file there is an entry like the following for each site that you manually have to add...
ttestServer("fruitforums.com", "fruitforums.com", 80, "Fruit Forums", "FME Chat");
This is broken down into...
Address To Test
Address For Link Testing If Tested Address Is Ok (as you may want to go elsewhere on a site)
Port Number (can be changed for gaming sites etc)
Site Panel Name (what the user sees)
Tag Code (for when you hover over a link)
In the PHP file there is also the following code...
$fp = fsockopen ($aaddress, $pport, $errno, $errstr, 0.50);
...you can change the number to increase / decrease the time this module waits to see if a site is available or not.
Please click install if you use it.
You are welcome to mod this hack, but please post details or a link here so I can see what you've done.
Install
To install this, copy all the files from the zip into your forum/modules directory and everything should work fine.
Then install as you would like any portal module to your homepage.
AdminCP > vBa CMPS > Add Module > PHP File >
1) Name the module
2) Choose the correct PHP file from the dropdown (the PHP file must be in forums/modules/ to show up)
3) Give it a unique identifier, eg. "site_checker"
(Thanks to The MilkCarton for the above brief description that I did not include)
Firstly please be aware that this required vBadvanced installed from http://www.vbadvanced.com.
The purpose of this check is to put links into a module that tell you if a site is up or down that you are linked to. If it is up, then you have a link to it with the information displaying when you hover over the link button. If it is down, then it tells you that it is offline.
An example of it running is at www.desertislandfruits.com.
In the PHP file there is an entry like the following for each site that you manually have to add...
ttestServer("fruitforums.com", "fruitforums.com", 80, "Fruit Forums", "FME Chat");
This is broken down into...
Address To Test
Address For Link Testing If Tested Address Is Ok (as you may want to go elsewhere on a site)
Port Number (can be changed for gaming sites etc)
Site Panel Name (what the user sees)
Tag Code (for when you hover over a link)
In the PHP file there is also the following code...
$fp = fsockopen ($aaddress, $pport, $errno, $errstr, 0.50);
...you can change the number to increase / decrease the time this module waits to see if a site is available or not.
Please click install if you use it.
You are welcome to mod this hack, but please post details or a link here so I can see what you've done.
Install
To install this, copy all the files from the zip into your forum/modules directory and everything should work fine.
Then install as you would like any portal module to your homepage.
AdminCP > vBa CMPS > Add Module > PHP File >
1) Name the module
2) Choose the correct PHP file from the dropdown (the PHP file must be in forums/modules/ to show up)
3) Give it a unique identifier, eg. "site_checker"
(Thanks to The MilkCarton for the above brief description that I did not include)