Results 1 to 6 of 6

Thread: Nofollow in PHP ?

  1. #1
    Szise is offline Net Builder
    Join Date
    Dec 2008
    Posts
    426
    Thanks
    14
    Thanked 33 Times in 29 Posts

    Nofollow in PHP ?

    I'm trying to add rel="nofollow" for my site but i have some problems.

    Here are some examples :

    {
    $url = 'index.php?task=profile&id='.$_COOKIE['ava_userid'].'';
    $message_url = 'index.php?task=messages';
    }
    echo '<strong><a href="'.$site_url.'/index.php?task=login">'.LOGIN.'</a> | <a href="'.$site_url.'/index.php?task=register">'.REGISTER.'</a></strong>';
    How to add rel="nofollow" for this php code and not receive any errors ?
    Last edited by Szise; 18 April, 2009 at 13:52 PM.
    ...

  2. #2
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,853
    Blog Entries
    4
    Thanks
    683
    Thanked 591 Times in 463 Posts
    You'll need to edit the user_area_horizontal.php file.. There should be <a href... tags in it, you need to add rel=nofollow

    Greetz
    |Nico Lawsons

  3. #3
    Szise is offline Net Builder
    Join Date
    Dec 2008
    Posts
    426
    Thanks
    14
    Thanked 33 Times in 29 Posts
    Yes... my mistake, i modified the first post.
    ...

  4. #4
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,853
    Blog Entries
    4
    Thanks
    683
    Thanked 591 Times in 463 Posts
    If I'm correct, should be like this:
    echo '<strong><a href="'.$site_url.'/index.php?task=login" rel="nofollow">'.LOGIN.'</a> | <a href="'.$site_url.'/index.php?task=register" rel="nofollow">'.REGISTER.'</a></strong>';
    Try it out, and if it doesn't work.. I guess someone else will help you
    |Nico Lawsons

  5. #5
    Szise is offline Net Builder
    Join Date
    Dec 2008
    Posts
    426
    Thanks
    14
    Thanked 33 Times in 29 Posts
    Yes this is the way, i made the things be more complicated in my posts, in my mind , Thanks for the answers.
    ...

  6. #6
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,853
    Blog Entries
    4
    Thanks
    683
    Thanked 591 Times in 463 Posts
    No problem, I'm always happy when I can help people

    Bye
    |Nico Lawsons

Similar Threads

  1. What is a NoFollow Link?
    By tunescool in forum Promoting
    Replies: 37
    Last Post: 4 June, 2013, 09:01 AM
  2. eZineArticles Going NOFOLLOW
    By Will.Spencer in forum Article Marketing
    Replies: 35
    Last Post: 21 October, 2011, 23:54 PM
  3. NoFollow Links Really are NoFollow
    By Will.Spencer in forum Promoting
    Replies: 8
    Last Post: 15 January, 2010, 09:06 AM
  4. Nofollow.. WTF??
    By Snak3 in forum Search Engine News
    Replies: 2
    Last Post: 9 September, 2009, 17:08 PM
  5. How to nofollow tag cloud?
    By mixke in forum Wordpress
    Replies: 9
    Last Post: 10 August, 2009, 12:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •