This Is what i edited :
vbulletin_global.js
Code:
/**
* Opens a window to show a list of attachments in a thread (misc.php?do=showattachments)
*
* @param integer Thread ID
*
* @return window
*/
function attachments(threadid)
{
return openWindow(
'misc.php?' + SESSIONURL + 'do=showattachments&t=' + threadid,
480, 300
);
}
/**
* Opens a window to show a list of posters in a thread (misc.php?do=whoposted)
*
* @param integer Thread ID
*
* @return window
*/
function who(threadid)
{
return openWindow(
'misc.php?' + SESSIONURL + 'do=whoposted&t=' + threadid,
230, 300
);
}
/**
* Opens a window to show a list of people who have downloaded an attachment (misc.php?do=whodownloaded)
*
* @param integer Attachment ID
*
* @return window
*/
function whodownloaded(attachmentid)
{
return openWindow(
'misc.php?' + SESSIONURL + 'do=whodownloaded&attachmentid=' + attachmentid,
230, 300
);
}
In modifyattachmentsbit :
Code:
<tr>
<td class="alt2">
<div>
<if condition="$show['thumbnail']">
<a href="attachment.php?$session[sessionurl]attachmentid=$post[attachmentid]&d=$post[dateline]" target="attachment"><img src="attachment.php?$session[sessionurl]attachmentid=$post[attachmentid]&stc=1&thumb=1&d=$post[thumbnail_dateline]" border="0" alt="" /></a>
<else />
<img class="inlineimg" src="$stylevar[imgdir_attach]/$post[attachmentextension].gif" alt="$post[attachmentextension]" /> <a href="attachment.php?$session[sessionurl]attachmentid=$post[attachmentid]&d=$post[dateline]" target="attachment">$post[filename]</a>
</if>
</div>
<div class="smallfont">$post[size], <phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase><if condition="$post['counter'] > 0"> - <a href="#" onclick="whodownloaded($post[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>
</td>
<td class="alt1">
<div class="smallfont">
<div><strong>$vbphrase[thread]</strong>: <a href="showthread.php?$session[sessionurl]t=$post[p_threadid]">$post[t_title]</a></div>
<div><strong>$vbphrase[post]</strong>: <a href="showthread.php?$session[sessionurl]p=$post[postid]#post$post[postid]">$post[p_title]</a></div>
</div>
</td>
<td class="alt2">
<if condition="$show['inprogress']">
<em>$vbphrase[in_progress]</em>
<else />
<div class="smallfont">$post[postdate] <if condition="!$show['detailedtime']"><span class="time">$post[posttime]</span></if></div>
</if>
</td>
<if condition="$show['deletebox']">
<td class="alt1" align="center" style="padding:0px"><input type="checkbox" name="deletebox[$post[attachmentid]]" value="yes" /></td>
<else />
<td class="alt1" align="center"> </td>
</if>
</tr>
And in postbit_attachment :
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]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>$attachment[filename]</a> ($attachment[filesize]<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase><if condition="$attachment['counter'] > 0"> - <a href="#" onclick="whodownloaded($attachment[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>)</td>
</tr></if></td>
</tr>
And then i installed the hack.
Can you tell me what i did wrong??