Clickable Links
This script is made to transform links inside qoute and code that usually are showing as text to become clickable!
Copy link.js to your www folder(the main folder of your site ex: "public_html")
>Add to main.tpl this code in headers after
Code:
<head>
Code:
<script src=" http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
Code:
<body>
Code:
<script type="text/javascript" src="http://your-site.com/link.js"></script>
U can add yourself more filehosts or check back here to see if i updated this posts with more hosts.
This is the content of your "link.js" ( so save this code as link.js )
Code:
$(function() {
var sickw = /^http:\/\/(hotfile|rapidshare|wupload|megaupload|uploading|ul|letitbit|bitshare|turbobit|depositfiles|uploadstation|filesonic|fileserve|duckload|www.hotfile|www.rapidshare|www.wupload|www.megaupload|www.uploading|www.ul|www.letitbit|www.bitshare|www.turbobit|www.depositfiles|www.depositfiles|www.uploadstation|www.filesonic|www.fileserve|www.duckload)\.[\S]+$/;
$('body *').contents().filter(function() {
return this.nodeType == 3 &&
$(this).text().trim() !== '' &&
$(this).text().trim().match(sickw);
}).each(function() {
$(this).replaceWith('<a href="' + $(this).text().trim() + '"target="_blank" rel="sickw.com">' + $(this).text().trim() + '</a>');
});
});
The script its not made by me, credits goes to the original coder that i don't know who it is, i only updated it with more filehosts also i improove it!