How to have attachments open in a new window..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davrob
    Senior Member
    • Jan 2002
    • 108

    How to have attachments open in a new window..

    Hi:

    I did a search here on this subject, and what I found dealt with thumbnails.

    I would like for my attachments to open in another window when they are downloaded.

    I do not use thumbnails.

    Please let me know how to accomplish this when you have time.

    Thanks,
    David
  • daemon
    Senior Member
    • Jun 2003
    • 2351
    • 3.5.x

    #2
    Go to:

    Admin CP --> Styles & Templates --> Style Manager --> « » --> Postbit Templates

    Edit the postbit_attachment template and find:

    HTML Code:
    <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]">
    Replace it with:

    HTML Code:
    <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">
    Repeat again (if you want it to work for moderated attachments and thumbnails) in the postbit_attachmentmoderated and postbit_attachmentthumbnail templates.
    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

    Comment

    • davrob
      Senior Member
      • Jan 2002
      • 108

      #3
      Hi daemon:

      Thank you so very much. It's working great now.

      David

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎