There's something fishy going on with images, and I think it smells like a vbulletin issue. I can't reproduce a specific circumstance yet, but sometimes image views update and sometimes they don't. This goes for vbulletin's tables and/or my table. For example when you hover over a thumbnail, vbulletin shows image views (that's not me or my code which prints that), and I don't believe the displayed numbers are true.
But neither here nor there....
Here's all the templates edits I've come up with so far.
I found 4 POSTBIT templates that handle the attachments.
These edits work, but I'm still not happy so I'm not updating top post yet.
postbit_attachment: add this just before the final </tr>
HTML Code:
<td><if condition="$show['blunts_whodl_width'] AND $show['popups']">
<input type="button" class="button" value="$vbphrase[blunts_whodl_who_downloaded]" onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]attachmentid=$attachment[attachmentid]','blunts_whodownloaded_ip','toolbar=no,scrollbars=yes,resizable=yes, width=$show[blunts_whodl_width],height=450,top=50,left=50'); return false;" />
</if></td>
postbit_attachmentmoderated: add this just before the final </tr>
HTML Code:
<td><if condition="$show['modattachmentlink'] AND $show['blunts_whodl_width'] AND $show['popups']">
<input type="button" class="button" value="$vbphrase[blunts_whodl_who_downloaded]" onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]attachmentid=$attachment[attachmentid]','blunts_whodownloaded_ip','toolbar=no,scrollbars=yes,resizable=yes, width=$show[blunts_whodl_width],height=450,top=50,left=50'); return false;" />
</if></td>
postbit_attachmentimage: add this to the end
HTML Code:
<if condition="$show['blunts_whodl_width'] AND $show['popups']">
<img class="button" src="$stylevar[imgdir_button]/blunts_whodl_vertical.bmp" alt="blunts_whodownloaded_ip.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]attachmentid=$attachment[attachmentid]','blunts_whodownloaded_ip','toolbar=no,scrollbars=yes,resizable=yes, width=$show[blunts_whodl_width],height=450,top=50,left=50'); return false;" />
</if>
postbit_attachmentthumbnail: FIND THIS
HTML Code:
<if condition="$show['br']"><br /><br /></if>
Just before that, add this:
HTML Code:
<if condition="$show['blunts_whodl_width'] AND $show['popups']">
<img class="button" src="$stylevar[imgdir_button]/blunts_whodl_vertical.bmp" alt="blunts_whodownloaded_ip.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]attachmentid=$attachment[attachmentid]','blunts_whodownloaded_ip','toolbar=no,scrollbars=yes,resizable=yes, width=$show[blunts_whodl_width],height=450,top=50,left=50'); return false;" />
</if>
This blunts_whodl_vertical.bmp file (inside this zip file) is REQUIRED for the 2 'postbit_attachmentimage' & 'postbit_attachmentthumbnail' template edits!!!
The BMP must be put in your IMAGES/BUTTONS folder for this to work!!!
To use your own button (or change path), edit the SRC="" with your button file's name.