Warfare
[Your Welcoming Staff Member]
Staff member
Administrator
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
- Joined
- Apr 29, 2020
- Messages
- 342
- Points
- 103
Reputation:
Opening Download Links in a New Tab in the XenForo Resources Section
When clicking external download links in the Resource Manager application, leaving the forum may mean the member may not come back again. Therefore, opening the external download links in the new window/tab (target = "blank") is more convenient as it will prevent the forum page from closing.
Find it in the xfrm_resource_wrapper_macros template:
With the XenForo 2.1 version, a new coding for external download links has also arrived. The button has also changed to "Go to download" ...
Now find external links: ACP=>Appearance=>Templates=> xfrm_resource_wrapper_macros template (find line 36) to open it in a new window :
Thus, only external download links will open in a separate window, the visitor will not leave your site.
When clicking external download links in the Resource Manager application, leaving the forum may mean the member may not come back again. Therefore, opening the external download links in the new window/tab (target = "blank") is more convenient as it will prevent the forum page from closing.
Find it in the xfrm_resource_wrapper_macros template:
Code:
icon="download">{{ phrase('download') }}</xf:button>
Change it like this.
icon="download" target="blank">{{ phrase('download') }}</xf:button>
Now download links will open in new tab.
With the XenForo 2.1 version, a new coding for external download links has also arrived. The button has also changed to "Go to download" ...
Now find external links: ACP=>Appearance=>Templates=> xfrm_resource_wrapper_macros template (find line 36) to open it in a new window :
Code:
icon="redirect">{{ phrase('xfrm_go_to_download') }}</xf:button>
Change.
icon="redirect" target="blank">{{ phrase('xfrm_go_to_download') }}</xf:button>
Thus, only external download links will open in a separate window, the visitor will not leave your site.
Last edited: