Need Some Help With Inserting nofollow tag in php File!

Discussion in 'Programming' started by touchAshley, Mar 9, 2008.

  1. #1
    On my forum, I've inserted nofollow tags on pasted links - but the problem is that it doesnt put the nofollow tag on bbcoded links with anchor text.

    So I'm supposed to put rel="nofollow" before the closing of the a tag but nothing works! I'm getting page errors when put it in there. Maybe I'm putting it on the wrong part of the code

    Here's the line where im supposed to put the nofollow tag in somewhere

    $tns = "<a href='".htmlspecialchars($tempstr, ENT_QUOTES)."'>"; $tne = '</a>';
    Code (markup):


    help?
     
    touchAshley, Mar 9, 2008 IP
  2. Vbot

    Vbot Peon

    Messages:
    107
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try:
    $tns = "<a href='".htmlspecialchars($tempstr, ENT_QUOTES)."' rel='nofollow'>"; $tne = '</a>';
    PHP:
     
    Vbot, Mar 10, 2008 IP
    touchAshley likes this.
  3. touchAshley

    touchAshley Active Member

    Messages:
    1,762
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Awesome. that worked thanks alot :]

    +rep
     
    touchAshley, Mar 10, 2008 IP