I want attachments to open in new window/tab, not sure how to do that. Right now when you click attachment, it opens in the same window as the forum. I've looked everywhere and can't seem to find out where to change this. Please let me know if this is possible. Thanks!
Announcement
Collapse
No announcement yet.
Open attachments in new window.
Collapse
X
-
There are 2 ways to do this while there's no official fix from vB.
1. Edit bbcode_attachment_list template
Change:
Code:<a href="{vb:raw attachurl}{vb:raw attachment.nodeid}">
Code:<a href="{vb:raw attachurl}{vb:raw attachment.nodeid}" [COLOR=#FF0000]target="_blank"[/COLOR]>
2. Create a template hook in footer_before_body_end hook location with this script to dynamically add link target. Similar instructions on how to create a template hook can be found on one of my mods in my signature below.
Code:<script> (function($) { $('.b-post-attachments__item a').attr('target', '_blank'); })(jQuery); </script>
- Likes 1
-
Any idea if this is an improvement request via jira, yet?
This is a nice idea.adktramping ~ my happy place.
"Whoever said practice makes perfect was an idiot. Humans can't be perfect because we're not machines." ~ Sam Gardner.
Vote for your favorite feature requests and the bugs you want to see fixed.
Comment
-
Originally posted by NumNum View PostAny idea if this is an improvement request via jira, yet?
This is a nice idea.
- Likes 1
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment