Quote:
Originally Posted by Boofo
Can this be made so only Admins and Mods can see it or is it like that already?
|
Ok, this took me a while to do because of the weird "yes and no" phptoHTML in the <if statements of vB3
This took alot of trick coding (ok, for me it was trick coding, not for all you regular coders out there

)
If you want Mods and Admins to see it only, simply replace the postbit_attachments template with:
Code:
<tr>
<td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" 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>
<td><if condition="$show['modcplink']"><a href="whodownloaded.php?s=$session[sessionurl]&attachmentid=$attachment[attachmentid]" onclick="NewWindow(this.href,'name','240','300','yes');return false"><img border="0" src="$stylevar[imagesfolder]/attach/whodownloaded.gif"></a></if></td></tr>
If you want admins only, replace modcplink with admincplink