Some links on my forum I'd like to have be dofollow. By default, everything is nofollow (I think). How can I achieve this? Once my site builds domain authority up, I will allow companies the option to purchase an advertisement, which will have a dofollow backlink.

I also run two companies in the same industry as my forum, I would like to link to these sites with dofollow backlinks, eventually. I tried searching around, and I did find a few threads, but I never actually found a solution to this issue.

Even better if I could create a tag called "Advertisement," for example, then if the main discussion links to something, it will automatically be a dofollow backlink.

    BrodyStone21

    I really couldn't answer the question itself, however I'm wondering whether the FoF Links extension might be of use here.

    I'm not sure if this is the same thing as dofollow, but there's an optional check box setting within any created links, for 'Add rel="me" attribute for identity verification on other sites'

    FoF Links @Git

    luceos I will check this out as soon as I can! Thank you!

    EDIT: How do I install it? I downloaded the zip and tried composer require file.zip

    I presume I have to build something manually?

    luceos okay I got your extension downloaded and I took a look at some of your older forum posts discussing this extension. From my understanding, this extension should automatically set all internal links to do-follow.

    The only thing I’m not seeing how to accomplish is how to set certain external links to do-follow. I believe one of your comments mentioned editing extend.php

    I’m aware you mentioned this extension is not pick up and use, but is there any way you could send me a sample code snippet of a link in extend.php with the attributes that can be modified?

    I see this in your GitHub repo

    <?php
    
    namespace Luceos\DoFollow;
    
    use Flarum\Extend;
    
    return [
        (new Extend\Link)
            ->setTarget(new SetTarget)
            ->setRel(new SetRel),
    ];

    However, I’m unsure where the link needs to go.