WordPress.org

Ready to get started?Download WordPress

Forums

automatic target="_blank" in all comments links (14 posts)

  1. ganzua
    Member
    Posted 6 years ago #

    Is it possible to set an automatic target="_blank" in all comments links?

    In which core file is the automatic "nofollow" set? can you put a target="_blank" there?

  2. whooami
    Member
    Posted 6 years ago #

    In which core file is the automatic "nofollow" set?

    http://www.wingrep.com

  3. atanone
    Member
    Posted 6 years ago #

    I put a link in this comment:
    http://www.atanone.net/how-to-increase-your-alexa-ranking/#comment-5033
    to Doug Karr's posting on nofollow. I'm not sure if adding target='_blank' in that line would work. But please, make sure you have a back-up file. :-) Also, please let us know what happens.

  4. ganzua
    Member
    Posted 6 years ago #

    http://www.wingrep.com

    ohh, it is very kind of you, as ever.

  5. ganzua
    Member
    Posted 6 years ago #

    atanone, thanks for the link :) , I'm going to try Doug Kerr guide.

  6. ganzua
    Member
    Posted 6 years ago #

    Well, it seems that the nofollow is added in wp-includes\default-filters.php line 154

    add_filter('pre_comment_content', 'wp_rel_nofollow', 15);

    I can't add a target="_blank" there :(

  7. whooami
    Member
    Posted 6 years ago #

    If you had followed my advice..

    thats a filter, calling a function. The name of the function is wp_rel_nofollow

    If you had followed my advice, you would know what file that is in. THATS where you add whatever you want.

    I could tell you the file name, but honestly, its NOT that terribly difficult. Nearly every WordPress function can be googled, and you will find a phpxref page for it.

  8. ganzua
    Member
    Posted 6 years ago #

    If you had followed my advice..

    if I had followed yor advice I could be recounting nofollows the whole evening. Maybe there are two or maybe there are two thounsands.

    I could tell you the file name, but honestly, its NOT that terribly difficult. Nearly every WordPress function can be googled

    Ok, this is too much childish. If you are not going to help I don't know what are you doing posting in this thread. Oh, yes I know, it starts with the letter "T", now that you like the games.

    every WordPress function can be googled

    everything in this world of us can be googled, let's close this forum. What for if we have google.

  9. Ivovic
    Member
    Posted 6 years ago #

    if you believe that, then surely google would have been easier than this.

  10. whooami
    Member
    Posted 6 years ago #

    everything in this world of us can be googled, let's close this forum.

    this forum doesnt exist so that you can be lazy and expect others to do your work. -- and everything cant be googled. There are plenty of questions here that deserve more attention than yours ever will.

    I knew, when I directed you to wingrep, how many returns you would see, had you bothered to have downloaded the software and used it - there are 4, FOUR files. Could you have handled that?

    Furthermore, had you downloaded the software, you would see that it shows you exactly where in the files the code is, and even shows you the actual content of the lines.

    NOT to mention, that the next time you had a similar question, you wouldnt need to come here and ask -- you would be enabled to answer your own question.

    You got good advice, you just chose to be smug about it. And frankly, maybe you enjoy waiting for other people to answer questions that are one click away from you.

  11. ganzua
    Member
    Posted 6 years ago #

    There are plenty of questions here that deserve more attention than yours ever will.

    Sorry for disturbing her majestic and apologizes to all wordpress community for asking a question in here.

    I wasn't warned that before I had to ask whooami if the topic was of his taste.

    you just chose to be smug about it

    Nahhh, I dind't asked any question to you and I didn't ask you to post in this thread. I'm not interested in nothing that you have to say.

    I'm only interested in adding a target="_blank" in comments.

  12. ganzua
    Member
    Posted 6 years ago #

    Ok, just in case somebody come across this thread and since you are not going to get any help from his highness, I've found a plugin that blank targets comment links. Here it is;

    http://www.prissed.com/2005-05/plugin-blank-target-comments/

    I tested in 2.5.1 and it works. If you want to keep nofollows just remove this line;

    remove_filter ('comment_text', 'wp_rel_nofollow');

  13. j-c-r-w
    Member
    Posted 6 years ago #

    Thanks for the latest post ganzua.
    Had the same question. Got it working for external lings with a 2-line-coded plugin, but that didn't work for images that stay in the upload-folder. I will try that for me.
    And why is her majestic not posting the 2 lines where to find the nofollows but instead writing so much garbage?

  14. Anonymous
    Unregistered
    Posted 6 years ago #

    For me it is work I try it

Topic Closed

This topic has been closed to new replies.

About this Topic