PDA

View Full Version : Miscellaneous Hacks - vBadvanced - Site Checker Module


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)

Mr House
10-26-2007, 07:53 AM
Reserved!!! :eek:

SuperTaz
10-26-2007, 08:20 AM
No installation instructions?

Mr House
10-26-2007, 09:35 AM
Added.

Sorry about that - I was blindly assuming that people had happily installed vBadvanced modules, sorry about that.

Snake
10-26-2007, 02:05 PM
Thanks for the hack!

Tinh.Nhi
10-26-2007, 08:57 PM
thank you for your good mod, but I wondering if this mod can check the link with rapidshare, megaupload or not ?

Tinh.Nhi
10-26-2007, 09:05 PM
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.


be more specifics thank you

PoetJA-1975
10-27-2007, 01:21 AM
Interesting and thanx for the hack...
Question:

I have a module already called Partners & Affiliates - you see it at the bottom left corner of the JPiC Portal = http://JPiCForum.info

I would like to combine these two hacks so that they both show in the same module... The current template for the Partners & Affiliates is:

<tr>
<td class="alt2" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">

$cyb_flashimagebanners
<br />
<div class="smallfont" align="center"><a href="http://www.wholinks2me.com/" title="Click here to see who's linking JPiC Forum." target="_blank">Who Links To JPiC Forum?</a></div>
</tr>
</td>

Is this possible?

Thanx,

Jacquii.

Mr House
10-27-2007, 08:27 AM
Interesting and thanx for the hack...
Question:

I have a module already called Partners & Affiliates - you see it at the bottom left corner of the JPiC Portal = http://JPiCForum.info

I would like to combine these two hacks so that they both show in the same module... The current template for the Partners & Affiliates is:



Is this possible?

Thanx,

Jacquii.

Try adding...

echo "<tr><td class='alt2' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='100%'>";
$cyb_flashimagebanners
echo "<br /><div class='smallfont' align='center'><a href='http://www.wholinks2me.com/' title='Click here to see who's linking JPiC Forum.' target='_blank'>Who Links To JPiC Forum?</a></div></tr></td>";


...before...

?>

...at the bottom of sitecheck.php.

Let me know if it works.

TheMilkCarton
10-27-2007, 09:07 AM
be more specifics thank you

If you use vBadvanced, you should very well know how to add a PHP module.

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"

farah
10-27-2007, 12:52 PM
Thanks

TheProphet
10-28-2007, 07:57 AM
mmm no luck for me.. when i set to active, my index page isnt showing up @ all.
Why is there not a template using in this block?

The link to the pictures in the php file isnt good i think.

<img border='0' src='http:/forum/modules/Offline.gif'>

Mr House
10-28-2007, 04:59 PM
mmm no luck for me.. when i set to active, my index page isnt showing up @ all.
Why is there not a template using in this block?

The link to the pictures in the php file isnt good i think.

<img border='0' src='http:/forum/modules/Offline.gif'>

In that case change the URL to where the pics are and it should be ok.

Are you not using /forum/ for your forum install?

PoetJA-1975
10-29-2007, 01:26 AM
Try adding...

echo "<tr><td class='alt2' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='100%'>";
$cyb_flashimagebanners
echo "<br /><div class='smallfont' align='center'><a href='http://www.wholinks2me.com/' title='Click here to see who's linking JPiC Forum.' target='_blank'>Who Links To JPiC Forum?</a></div></tr></td>";


...before...

?>

...at the bottom of sitecheck.php.

Let me know if it works.
Thanx for the help - but it didn't work :(
With the edit - each time would load a blank page = nothing at all - just white space...
Any other ideas?

btw - Thanx for the mod - I did add separately and it worked very well...

Jacquii.

TheProphet
10-29-2007, 04:50 AM
In that case change the URL to where the pics are and it should be ok.

Are you not using /forum/ for your forum install?

I did change the path to the full address, im using /forum but when im putting it active true vba, my whole index.php is not showing up.

Mr House
10-29-2007, 05:23 AM
Thanx for the help - but it didn't work :(
With the edit - each time would load a blank page = nothing at all - just white space...
Any other ideas?

btw - Thanx for the mod - I did add separately and it worked very well...

Jacquii.

Please PM me $cyb_flashimagebanners content and I'll try again. :)