Link Checker With Lytebox for vBulletin 3.x/4.x

Status
Not open for further replies.

zac2613

Active Member
35
2009
3
0
From web control panel or FTP (Backup all files that need editing before commencing)

Edits for both Ver 3/4


1, Unzip & upload lytebox folder to your root/clientscript folder.

2, Navigate to includes/init.php & open for edit, add
above this writing which is @ the bottom of the page, I say this as there is more than one of the below FINDs on this page:-

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 14:49, Sun Feb 8th 2009
|| # CVS: $RCSfile$ - $Revision: 31764 $
|| ####################################################################
\*======================================================================*/
FIND: ? Text may be slightly Different ? just above this text.
PHP:
if  (!empty($db->explain))
ADD ABOVE:
PHP:
// linkchecker start
if ($is_bot == 1) {
        $vbulletin->userinfo['usergroupid'] = 2;
}
// linkchecker end
?. The ['usergroupid'] = 2 is the reg user ID, change if your reg user ID is different, & Save the file.

3, Open for edit includes/xml/spiders_vbulletin.xml.
Add the following Bot to the list:-

Find:
PHP:
</searchspiders>
Add above:
PHP:
    <spider ident="HelpfulToolsBot">
          <name>PUT YOUR NAME HERE[LinkChecker]</name>  
    </spider>
& save the file.

THE ACP EDITS.
IPB 3.X.X ONLY
1, First goto: ACP -> Style Manager -> Your Template -> BB Code Layout -> bbcode_code & find:-
PHP:
$vbphrase[code]:        or          Code:
Add directly next to it:-
PHP:
<!-- linkchecker start -->
   &nbsp;<a href="http://helpfultools.net/link-checker/?url=$_SERVER[SERVER_NAME]$_SERVER[REQUEST_URI]" rel="lyteframe" title="Your Forum Name Here" rev="width: 400px; height: 400px; scrolling: yes;"><b>Check Links</b></a>
<!-- linkchecker end -->
Don't forget to add your forum name where stated above
2, Now at the very top of the bbcode_code template add the following line:-
PHP:
<link rel="stylesheet" href="clientscript/lytebox/lytebox.css" type="text/css" media="screen" />
save & reload.

3, Now goto the headerinclude Template and find :-
PHP:
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
ADD UNDER:-
PHP:
<script type="text/javascript"language="javascript" src="clientscript/lytebox/lytebox.js"></script>
save & reload.

THE ACP EDITS.
IPB 4.X.X ONLY
1, First goto: ACP -> Style Manager -> Your Template -> BB Code Layout -> bbcode_code & find:-
PHP:
{vb:rawphrase code}:
Add directly next to it:-
PHP:
<!-- linkchecker start -->
   &nbsp;<a  href="http://helpfultools.net/link-checker/?url={vb:raw _SERVER[SERVER_NAME]}{vb:raw _SERVER[REQUEST_URI]}"  rel="lyteframe" title="Your Forum Name Here" rev="width: 400px; height:  400px; scrolling: yes;"><b>Check Links</b></a>
<!-- linkchecker end -->
Don't forget to add your forum name where stated above
2, Now at the very top of the bbcode_code template add the following line:-
PHP:
<link rel="stylesheet" href="clientscript/lytebox/lytebox.css" type="text/css" media="screen" />
<script type="text/javascript"language="javascript" src="clientscript/lytebox/lytebox.js"></script>
save & reload.


The final & easy ACP bit for ver 3/4.

1. Remember the location of the Link Checker.xml on your computer.

2. Go to your vBulletin AdminCP and click on Manage Products under the Plugin Manager section.

3. Click on Add/Import Product.

4. Click on Browse on the first line (Upload the unzipped Link Checker.xml from your computer) Click on Import to upload it to the system.

5. Click on Plugin Manager, and ensure that the new plugin named Link Checker, which
is found under the init_startup hook, is enabled.

Thats It! this module can be enabled/disabled from the product manager.

Ps.
If the lytebox does'nt appear? hold CTRL & press F5 to refresh your browser.

Images http://prntscr.com/18pzh http://prntscr.com/18pzw

Tested on vBulletin® Version 3.8.4./4.1.4 /4.1.10

I noticed there was a problem with the lytebox conflicting with the new type editor in vb 4.X.X, where the editor Icons were not appearing, below is a fixed lytebox for vb 4.X.X only, just download & overwrite the existing.

This will apply to anyone who downloaded the lytebox for use with vbb 4.X.X only as of the 29th Jun 2011.


Download: Modified lytebox & XML for vb 4.X.X
Code:
http://www.bandbsat.com/tools/V4_Lytebox&xml.rar

Download:
Lytebox for 3.X.X & XML
Code:
http://www.bandbsat.com/tools/V3_Lytebox&xml.rar
Now changed from
Code:
WGTools.com to helpfultools.net
as of the 13/12/2011 Thanks to Avek

Edit:
Changed Title
Changed script link
Changed .rar links
Added 4.1.10 to the list of tested
Changed Links
 
Last edited:
19 comments
Can we add another usergroup ID so as it would work for registered members throughout the forum and would work for guests viewing the guest section?

JGM.
 
Right I gathered that but I am asking if its possible to get it working in vB 4.x

Thanks for bringing this up as not working with vB4.X as previously stated it was made to work with vB3.X & will update the 1st post with this info, as I don't use Vb boards, I will add it to my todo list which is quite long @ the moment.

Regards
 
Can we add another usergroup ID so as it would work for registered members throughout the forum and would work for guests viewing the guest section?

JGM.

No need to add another usergroup ID?
In the example snipet above, usergroup ID=2 = Registered user, this user has permissions to view what a Guest can't.

If a Guest try's to view what a Registered Users can, he will get the "you do not have permission to view this page" or similar.

The same would apply if a Registered User tried to view a VIP only section, the link checker can only work in forums that it's Id allows it too.

Use logic & all will be well but take Note that theres things on the net that allow people to mimic a Bot, so never use an ID of high ranks where forum & thread tools are involved.

Regards
 
No worries m8 thanks, it turns out that Guests can use the linkchecker which is what I wanted anyway so it does not matter but now the checker also works in locked forums which are not viewable by Guests so I must say OUTSTANDING JOB on this mod!!!

With the above being said though the lytebox which appears is there a way to make that bigger and generally customise the size of the box?

JGM.
 
With the above being said though the lytebox which appears is there a way to make that bigger and generally customise the size of the box?

@JGM,
Thanks for your comment, yes just copy & past this over the original & adjust the width/height to your requirements & add your forum name where stated.

PHP:
<!-- wgtools linkchecker start -->
&nbsp;<a  href="http://wgtools.com/link-checker/?url=$_SERVER[SERVER_NAME]$_SERVER[REQUEST_URI]"  rel="lyteframe" title="Your Forum Name Here" rev="width: 400px; height:  400px; scrolling: yes;"><b>Check Links</b></a>
<!-- wgtools linkchecker end -->

First post updated for this adjustment but its normal size should be suffice for normal usage.

Regards
 
Cheers zac for the edit it is superb this mod now it really is I have increased the size to a bit bigger (800x600) and it just works! Great job dude on this (y)

JGM.

EDIT - For those who have post count requirements for certain sections then the checker does not work as I found out (we have restrictions on our Reqeust section). But other than that it works great (y)
 
Status
Not open for further replies.
Back
Top