Announcement

Collapse
No announcement yet.

Attachment Icon Sizes

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

  • Attachment Icon Sizes

    I want to resize the little icons that appear next to a attachment in posted attachments as i have some much nicer 32x32 icons as well as some ones for file extensions that i customized for the board.
    So i was wondering how i could do this... while looking for a way to do it, i went into the templates and hardcoded in the postbit_attachments template that the image size should be height="32" and width="32" however this didn't change the display of the images... they still display in 16x16 even though the images are 32x32...
    Any help is much appreciated.

  • #2
    What happens if you remove your hard coded tags?

    You modified the template postbit_attachmentimage ?

    so it should look somthing like this?


    <img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1" border="0" alt="" height="32" width="32" />&nbsp;


    ?

    Comment


    • #3
      You sure you did a hard refresh (control +r) and are not loading from cache?

      Also, update counters > update post cache.

      Hopefully they show up now.


      If it doesn't, then check if you are loading the right styleid.

      Comment


      • #4
        ok, so i had a second look at this, this morning and still no dice...

        I changed the postbit_attachmentimage to exactly what is in the post above

        and made sure i did a hard refresh...

        I changed the postbit_attachment to read sizes of 32 32 rather than the standard 16 16
        and made sure i did a hard refresh...

        I changed both of them to read 32 32

        and made sure i did a hard refresh...

        Still no go :|

        Here are my postbit_attachmentimage and postbit_attachment codes respectively.

        Code:
        <img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1" border="0" alt="" height="32" width="32" />&nbsp;
        Code:
         
        <tr>
         <td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="32" height="32" border="0" style="vertical-align:baseline" /></td>
         <td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">$attachment[filename]</a> ($attachment[filesize], <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase>)</td>
        </tr>

        Comment


        • #5
          DOH!!!... fixed... It wasn't liking me because i hadn't approved the attachments yet... apparently there is a seperate field for if they are awaiting approval still or not... once i approved the Attachment the edit to the postbit_attachment was all that was neccesary (see code above if you are looking for the resolution)

          Comment


          • #6
            Glad you got it all solved

            Comment

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