Activity Stream
48,167 MEMBERS
6844 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41
  1.     
    #11
    Member
    Website's:
    MightyHosts.com
    Quote Originally Posted by deAthbLisS View Post
    PHP Code: 
    $ret preg_replace('#([\s>])([\w]+?://hotfile.com\/[\w\#$%&~/.\-;:=,?@\[\]+]*)#is','$1<a href="$2">$2</a>'
    $ret trim($ret);
    return 
    $ret
    something like that will help..


    edit:
    or see this thread.. http://www.besthostingforums.com/showthread.php?t=33893
    it makes 1 link clickable..
    but you can combine both code to make it clickable..
    contact any php/js coder




    @deAthbLisS

    hey bro same question 2 u as rapid4all asked

    Where should i add this code?

    in vbulletin

    plz plz tell me

  2.   Sponsored Links

  3.     
    #12
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    finally i found something thanks to pornbb

    -go to Style Manager
    -add to footer
    Code: 
    <script type="text/javascript">
    // <![CDATA[
    var j;
    var i = document.getElementsByClassName('hostlinksblock');
    for(j=0;j<=i.length;j=j+1)
    {
    var linksblock = i[j];
    linksblock.innerHTML = linksblock.innerHTML.replace(/http:\/\/(www\.)?hotfile\.com\/dl\/([\d]+)\/([\w]+)\/([\w\.\-_\(\)]+)/gi, "<a href='http://$1hotfile.com/dl/$2/$3/$4' target='_blank'>http://$1hotfile.com/dl/$2/$3/$4</a>");
    linksblock.innerHTML = linksblock.innerHTML.replace(/http:\/\/(www\.)?sharingmatrix\.com\/file\/([\d]+)\/([\w\.\-_\(\)]+)/gi, "<a href='http://$1sharingmatrix.com/file/$2/$3' target='_blank'>http://$1sharingmatrix.com/file/$2/$3</a>");
    }
    
    // ]]>
    </script>
    -replace in bbcode_code
    Code: 
    $code with <div class="hostlinksblock">$code</div>
    i am not an expert in javascript, maybe this code can be improved but for now is working

  4.     
    #13
    Banned
    Website's:
    google.com knownsrv.com

    Default Make the clicks Clickable -Vbulletin - USE PHP

    Make the clicks Clickable -Vbulletin - USE PHP
    Edit file functions_newpost.php (your root forum/includes)
    1. Find this line:
    PHP Code: 
    $skiptaglist 'url|email|code|php|html|noparse'
    Change to:
    PHP Code: 
    $skiptaglist 'url|email|php|html|noparse'
    2. Find this line:
    PHP Code: 
    $text preg_replace($urlSearchArray$urlReplaceArray$messagetext); 
    Add below:
    PHP Code: 
    $text=preg_replace("#((http://)?(www.)?hotfile.com/[^ \n\r]+)#is",'[url]$1[/url]',$text); 
    PHP Code: 
    $text=preg_replace("#((http://)?(www.)?fileserve.com/[^ \n\r]+)#is",'[url]$1[/url]'',$text); 

    3. Find this line:
    PHP Code: 
    $urlReplaceArray = array(
                
    "[url]\\2\\4[/url]" 
    Change to:
    PHP Code: 
    $urlReplaceArray = array(
                
    "\\2\\4" 

    4. Save & Finish


    Now, when users make new threads, Hotfile and Fileserve links will be clickable links



  5.     
    #14
    Member
    Website's:
    movietvshow.net
    wow thanks i will try it in my forum will reply again

  6.     
    #15
    Banned
    Website's:
    google.com knownsrv.com
    Thanks t3od0r
    Nice one!


  7.     
    #16
    Member
    Website's:
    porntonight.info
    @ Rapid4All

    awesome bro its working

    do you know about phpbb , how can i add to that ?

  8.     
    #17
    Member
    Website's:
    movietvshow.net
    yup its working thanks Rapid4All

  9.     
    #18
    Banned
    Website's:
    google.com knownsrv.com
    I dont use phpbb, so i dont know how to do this with phpbb exactly . But i think its possible

  10.     
    #19
    Member
    Website's:
    movietvshow.net
    Everything is possible in love war and in coding

  11.     
    #20
    Banned
    can anyone fix this. i have added this code. it works f9. but it converts links to its title.

Page 2 of 5 FirstFirst 1234 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Similar Threads

  1. Make Hotfile, Fileserve, 10+ Filehost's Links Clickable
    By stefan-te in forum Webmaster Resources
    Replies: 315
    Last Post: 4th Aug 2012, 04:10 PM
  2. Make Links clickable in Code. in vBulletin 4.1.7
    By Th3KiNG in forum vBulletin
    Replies: 2
    Last Post: 15th Nov 2011, 09:04 AM
  3. Make Download Links Clickable In Joomla
    By shubhank008 in forum Web Development Area
    Replies: 14
    Last Post: 15th Jul 2011, 02:29 PM
  4. make links clickable and coded [for vbulletin]
    By saninokia in forum vBulletin
    Replies: 1
    Last Post: 5th Mar 2011, 10:04 PM
  5. [Hiring] Make Links Clickable
    By Dj Mad in forum Completed Transactions
    Replies: 0
    Last Post: 28th Jul 2010, 12:46 AM

Tags for this Thread

BE SOCIAL