Open ALL links in new Window

Post Reply
Steve
Posts: 36
Joined: Sun Oct 01, 2017 3:08 pm

Open ALL links in new Window

Post by Steve » Mon Jan 01, 2018 10:41 pm

This modification applies to prosilver but may work on other styles depending on how they are written. WARNING: this change opens all links in a new window, even links to pages on your website. If you want to open internal links in the same window but external links in a new window install the External Links Open in New Window extension by RMcRirr83. This extension works extremely well and is used on this website.

Making this change requires modifying the bbcode.html file. The file is located in the following folder \styles\prosilver\template. Before you change any code make a copy of the file, in case you make a mistake.

Open the bbcode.html file and locate the line containing the code below: (about line 71)

Code: Select all

<!-- BEGIN url --><!--<a href="{URL}" class="postlink">{DESCRIPTION}</a>--><!-- END url -->
Replace with the code shown below:

Code: Select all

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->
After you make the change, log into ACP (Admin Control Panel) and purge the cache so your change takes effect.

Post Reply