1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need help.

Discussion in 'Black Hat SEO' started by Hell389, Jul 19, 2009.

  1. Hell389

    Hell389 BANNED BANNED

    Joined:
    Jun 18, 2009
    Messages:
    115
    Likes Received:
    13
    Hello,

    Anyone know how to turn text link into live links ? I know there is a php code for this but I can't find it.

    Can you please help.

    Thanks
     
  2. Jcsarokin

    Jcsarokin Power Member

    Joined:
    Mar 2, 2009
    Messages:
    718
    Likes Received:
    1,015
    Location:
    Los Angeles / Beverly Hills
    Huh? You mean like a <href "link" or I completely missed the boat on this one lol
     
  3. borntoleadinCPA

    borntoleadinCPA Regular Member

    Joined:
    Dec 11, 2008
    Messages:
    224
    Likes Received:
    243
    preg_match to identify if its a link, str_replace or preg_replace to make it a link. Google is your friend! :)
     
    • Thanks Thanks x 1
  4. Hell389

    Hell389 BANNED BANNED

    Joined:
    Jun 18, 2009
    Messages:
    115
    Likes Received:
    13
    Just like when you put link on youtube, the text link becomes live links without putting <a href=" for each url.

    If u can help, thanks.
     
  5. Hell389

    Hell389 BANNED BANNED

    Joined:
    Jun 18, 2009
    Messages:
    115
    Likes Received:
    13
    Hey, if possible, can u please give me the code, google is my best friend but php isn't.:)
     
  6. amar55in

    amar55in Newbie

    Joined:
    Apr 4, 2009
    Messages:
    43
    Likes Received:
    8
    <a href="http://www.yoursite.com/">Your Site</a>!
     
  7. Hell389

    Hell389 BANNED BANNED

    Joined:
    Jun 18, 2009
    Messages:
    115
    Likes Received:
    13
    No man, that's not what I want.I have list of text urls, its big list so I can't do <a href= for all individually.I want a script that will turn text links into live links automatically.

    Really appreciate someone who can help.
     
  8. amar55in

    amar55in Newbie

    Joined:
    Apr 4, 2009
    Messages:
    43
    Likes Received:
    8
    Use Front any HTML editor, front page if free with XP, why download adobe for such a small thing, any free HTML editor will do.
    Just highlight each code and press the coding button, in my knowledge this is the way...
     
    Last edited: Jul 19, 2009
  9. borntoleadinCPA

    borntoleadinCPA Regular Member

    Joined:
    Dec 11, 2008
    Messages:
    224
    Likes Received:
    243
    Google is your friend. Google knows PHP more than PHP itself.

    http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=sQT&q=make+link+clickable+php&btnG=Search&meta=&aq=f&oq=

    if still don't get it
    http://www.wallpaperama.com/forums/how-to-make-clickable-text-url-links-from-text-links-change-to-clicking-t641.html

    Enjoy!
     
  10. keinehabe

    keinehabe Supreme Member

    Joined:
    Nov 4, 2008
    Messages:
    1,207
    Likes Received:
    472
    Gender:
    Male
    Occupation:
    -= CEO =-
    Location:
    Heaven
    Home Page:
    from what I understand he have a text file with links , he wanna make them links on html file :) ... well I think you can do faster with excel , put on col A <href= / col B the url in text format /col C rest of the things ... :) select all / copy all / paste all into new notepad , remove the formatting :)
     
  11. borntoleadinCPA

    borntoleadinCPA Regular Member

    Joined:
    Dec 11, 2008
    Messages:
    224
    Likes Received:
    243
    see, when u post a link on a forum like -> http://www.google.com

    I did not add the "a" tag but the the text is still clickable, the vbulletin (and all other forum apps) posting module changed all links in your post to clickable whether you make them like that or not. The code which they use is what he wanted.

    I believe thats what he wanted but I can of course be wrong....
     
    • Thanks Thanks x 1
  12. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    999
    Something like this should work. (Not tested though)
    Code:
    <?php  
    
    $urlList="http://www.blackhatworld.com
    http://www.google.com
    http://www.yahoo.com
    http://www.some.other.site/";
    
    $urlArray = split("\n", $urlList);
    
    foreach($urlArray as $urlLine)
    {
    	echo "<a href=\"" . trim($urlLine) . "\">" . trim($urlLine) . "</a>\n";
    }
    
    ?>
    Run in browser and view source code to get your new list of live links.


    If that's what your looking for, a lot of confusion in this thread:confused: