vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - vBadvanced - Site Checker Module (https://vborg.vbsupport.ru/showthread.php?t=161155)

Mr House 10-25-2007 10:00 PM

vBadvanced - Site Checker Module
 
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...

PHP Code:

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

PHP Code:

$fp fsockopen ($aaddress$pport$errno$errstr0.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

Quote:

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:

Quote:

<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

Quote:

Originally Posted by PoetJA-1975 (Post 1369484)
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...

PHP Code:

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

PHP Code:

?> 

...at the bottom of sitecheck.php.

Let me know if it works.

TheMilkCarton 10-27-2007 09:07 AM

Quote:

Originally Posted by Tinh.Nhi (Post 1369352)
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"


All times are GMT. The time now is 01:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01081 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete