Make Hotfile, Fileserve, 10+ Filehost's Links Clickable

Status
Not open for further replies.
If you realy use this http://pastebin.com/7yK23Bvv
Are u try post links like
Code:
hotfile.com/link/[COLOR=Red]stefan[/COLOR] [COLOR=RoyalBlue]te[/COLOR].rar
not stefan_te

What`s the forum url ?

Edit, im found:
It`s from your forum
capturljl.jpg

How did you fix it? Can you show us? :'(
 
on my part my problem is i dont like line breaks between links but wp automatically inserts it and i dont know how to fix.
Ya I'm facing similar problem but I use DLE. Im trying to find a solution that fills those spaces automatically. <_<

Over all the script is awesome and brought me two premium sales. :D
 
See here:
http://www.wjunction.com/showthread.php?p=755187#post755187

The code you're using is terrible, bloated and inefficient (no offence meant).

Copypasted for lazy people:
Code:
$(function() {
    var sexyregex = /^http:\/\/(hotfile\.com|rapidshare\.com|megaupload\.com)\/[\S]+$/;
    $('body *').contents().filter(function() {
        return this.nodeType == 3 &&
            $(this).text().trim() !== '' &&
            $(this).text().trim().match(sexyregex);
    }).each(function() {
        $(this).replaceWith('<a href="' +
                     $(this).text().trim() +
                     '" target="_blank" rel="bitches_dont_know_bout_my_regex">' +
                     $(this).text().trim() +
                     '</a>');
    });
});

It'll link text links on page load.
Want to add more hosts? just alter the regex.
 
Last edited:
Status
Not open for further replies.
Back
Top