SimpleForum Attachments

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: March 6, 2023   (RSS)

By Dave - March 6, 2023

Hi Mikey, 

Try this: 

  • Open this file: /cmsb/plugins/simpleForum/simpleForum-html.php
  • Make a backup first and then search for this (around line 310): <a href='$downloadLink'>

Replace this: 

$uploadLinks[] = ($postNum)? "<a href='$downloadLink'>" .htmlencode($filenameNoExt). "</a> $filesizeK" : htmlencode($filenameNoExt) . " $filesizeK" ;

With this: adding: target='_blank'

$uploadLinks[] = ($postNum)? "<a href='$downloadLink' target='_blank'>" .htmlencode($filenameNoExt). "</a> $filesizeK" : htmlencode($filenameNoExt) . " $filesizeK" ;

Let me know if that works for you!

Dave Edis - Senior Developer
interactivetools.com

By Mikey - March 6, 2023

That worked perfectly.

Thank you Dave!!