Announcement

Collapse
No announcement yet.

[3.5] List attachment ID on edit-post for easy [attach] usage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [3.5] List attachment ID on edit-post for easy [attach] usage

    [3.5] List attachment ID on edit-post for easy [attach] usage

    This small template modification shows how to list the id's of attachments you're adding to a post, this makes it easier if you're using [attach] inside a post.

    Instructions:

    * Open the template 'newpost_attachmentbit'

    * Find both instances of:
    Code:
    ($attach[filesize])</div>
    * Replace them with this code:
    Code:
    ($attach[filesize]) [ATTACH]$attach[attachmentid][/ATTACH]</div>
    * Save the template


    Screenshot:



    Enjoy.

  • #2
    thanks for posting this

    Comment


    • #3
      There are two templates you need to edit, not just one

      Edit: newattachmentbit
      Find:
      Code:
      ($attach[filesize])</td>
      Replace with:
      Code:
      ($attach[filesize]) [ATTACH]$attach[attachmentid][/ATTACH]</td>
      The other template edit is correct though

      Satan

      Comment


      • #4
        Does that also show on edit-post ?

        Comment


        • #5
          It shows when you click the "Manage Attachments" button - The attach tags are displayed by the current attachments, and any you upload either on a new post or on editpost also have the attach tags displayed beside them

          Satan

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X