XF 2.0 External Links

How do I set the Forum Links Node to open new tabs as they open in place taking users away from the forums.
 
Last edited:
To accomplish this, you can edit the node_list_link_forum template:

Find this line:

HTML:
                     <a href="{{ link('link-forums', $node) }}" data-xf-init="{{ $descriptionDisplay == 'tooltip' ? 'element-tooltip' : '' }}" data-shortcut="node-description">{$node.title}</a>

And replace it with the following:

HTML:
                     <a href="{{ link('link-forums', $node) }}" data-xf-init="{{ $descriptionDisplay == 'tooltip' ? 'element-tooltip' : '' }}" data-shortcut="node-description" target="blank_">{$node.title}</a>

Link forums will now open in a new tab.
 
Here it is! (paid add-on)
 
Back
Top Bottom