How to open the ads in a new window (or tab) in the 4.1 version

Ivan Desbananes Posted in Technical Support 9 years ago

Hi,
I've just installed the 4.1 version of OSSN. I would like to know how to open the ads in a new target.
I saw the component about that but it was made for a 3.x version. Seeably the view and view_small files seems differents for the 4.1 version.

Thx
Ivan

Replies
Indonesian Arsalan Shah Replied 9 years ago

See: components\OssnAds\plugins\default\ads\item.php,

Change line number 3 to :

<a href="<?php echo $params['item']->site_url;?>" target="_blank">

About modifying core files see: https://www.opensource-socialnetwork.org/wiki/view/704/should-i-modify-core-files