Loading

Thứ Hai, 6 tháng 2, 2012

[Mod 4.x] Link Checker Với Lytebox cho vBulletin 3.x/4.x

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 Code:

if (!empty($db->explain))

ADD ABOVE:
PHP Code:
// 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 Code:
</searchspiders>

Add above:
PHP Code:
<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 Code:
$vbphrase[code]: or Code:

Add directly next to it:-
PHP Code:
<!-- 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 Code:
<link rel="stylesheet" href="clientscript/lytebox/lytebox.css" type="text/css" media="screen" />

save & reload.

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

ADD UNDER:-
PHP Code:
<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 Code:
{vb:rawphrase code}:

Add directly next to it:-
PHP Code:
<!-- 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 Code:
<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.

ScreenShot:









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 fromCode:

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

Không có nhận xét nào:

Đăng nhận xét