Skip to main content
Topic: Redirect URL in forum? (Read 705 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Redirect URL in forum?

Reply #1
Hi and welcome to elkarte!
Yes, Elkarte has this option too. Go to Admin > Forum > Boards > Modify Boards > Create new board
When you create a new board you need to select the option Redirect to a web address:
You can also do it on an existing board, but the board needs to be empty.
sorry for my bad english

Re: Redirect URL in forum?

Reply #2
Hi Robert!
The website then opens in the same window as the forum. If all extern websites are to be opened in new windows, then you have to do this in the GenericBoards.template.php:

Search:
Code: [Select]
<a href="', $board['href'], '" id="b', $board['id'], '">', $board['name'], '</a>';

Replace with:
Code: [Select]
<a', $board['is_redirect'] ? ' target="_blank"' : '', ' href="', $board['href'], '" id="b', $board['id'], '">', $board['name'], '</a>';
ElkArte version: 1.1.6 / Theme: BeSocial / PHP 7.2.7

 

Re: Redirect URL in forum?

Reply #3
It works  :) .
Thanks.