The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Who Downloaded This Attachment Details »» | |||||||||||||||||||||||||
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.
/*=============================================*\ || Who Downloaded This Attachment || || Author : Anton Kanevsky || Works on : vBulletin 3.5.x - 3.8.x || Released : Jun 27, 2009 || || Time required to install: ~30 seconds || Difficulty: easy \*=============================================*/ DESCRIPTION Allows users to see detailed information about who has downloaded attachments. STATISTICS File Uploads: 1 Products to Install: 1 FEATURES General:
VERSION HISTORY 1.1.0 [F] Fixed a bug in the product xml file. 1.1.0 [+] Officially compatible with 3.5.x - 3.8.x. [+] Removed all file and template edits. [+] Added usergroup permission to specify which usergroups can use the feature. [+] The last downloaded time for each user is now displayed. 1.0.2 [F] Compatibility with 3.5.2's modified attachments.php. 1.0.1 [+] Each user now has a number of downloads displayed next to him/her. 1.0.0 First Release The installation manual is contained within the attached file. IF YOU LIKE MY HACK, PLEASE CLICK INSTALL Show Your Support
|
Comments |
#82
|
|||
|
|||
i edited the vbulletin_global and still the same problem and i reinstall the hack but still no joy.
the page give this error when i press the who downloaded? botton Line : 824 Char :1 Error : object exected Code ; 0 can you help with this please? |
#83
|
|||
|
|||
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 ); } 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> 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> Can you tell me what i did wrong?? |
#84
|
||||
|
||||
Same here and I am sure I did all the edits correctly including the vbulletin_global.js. Any ideas?
|
#85
|
||||
|
||||
My bad. I was working on 2 forums and got mixed up. Working fine. Installed.
|
#86
|
|||
|
|||
Does not work with Firefox. I get this link: http://www.myforum.com/forum/showthread.php?t=7714#
But when I click on it nothing happens. It just brings the page to the top. All my edits are OK. Hack was working with 3.6.7. Yes the js file was re-edited as well after upgrading to 3.6.8. Using Firefox 2.0.0.9. Working fine with IE 7. Any way to make it work with Firefox? |
#87
|
||||
|
||||
Quote:
|
#88
|
|||
|
|||
Installed and works like a charm on vb 3.6.8.
|
#89
|
|||
|
|||
How can I change it so that only Admin can see the new link ?
edit: Okay, found out. Please add this to the manual as optional step: PHP Code:
PHP Code:
Quote:
You can also use less or more groups, not restricted |
#90
|
|||
|
|||
Quote:
Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vbphrase[psiwd_who_downloaded] - $vboptions[bbtitle]</title> </head> <body onload="self.focus()" style="margin:0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="tcat" colspan="2"> $vbphrase[psiwd_who_downloaded] <div class="smallfont"><phrase 1="$totaldownloaded" 2="$attachmentinfo[counter]">$vbphrase[psiwd_total_downloaded_x_y]</phrase></div> </td> </tr> <tr> <td class="thead" width="100%">$vbphrase[username] ($vbphrase[psiwd_download_count])</td> </tr> $downloaders <tr> <td class="tfoot" colspan="2" align="center"><div class="smallfont"> <a href="#" onclick="opener.location=('attachment.php?$session[sessionurl]attachmentid=$attachmentinfo[attachmentid]'); self.close();"><strong>$vbphrase[psiwd_show_attachment_and_close_window]</strong></a> <if condition="$attachment['counter'] > 0"><if condition="is_member_of($bbuserinfo, 5, 6, 14, 20, 21)"> - <a href="#" onclick="whodownloaded($attachment[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if></if> </div></td> </tr> </table> </body> </html> |
#91
|
|||
|
|||
As I wrote, instead of inserting:
Code:
<if condition="$attachment['counter'] > 0"> - <a href="#" onclick="whodownloaded($attachment[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if> you take THIS: Code:
<if condition="$attachment['counter'] > 0"><if condition="is_member_of($bbuserinfo, 6, 7, 9)"> - <a href="#" onclick="whodownloaded($attachment[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if></if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|