View Full Version : Who Downloaded This Attachment
akanevsky
12-16-2005, 10:00 PM
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:
Displays a list of users with information about the number of downloads and last downloaded time.
Allows to specify which usergroups can use the feature.
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=217271)
TyleR
12-17-2005, 07:21 PM
hmm..so is this like a more simple version of this hack (https://vborg.vbsupport.ru/showthread.php?t=93167) by Mr Blunt?
i'll check it out in a minute :)
- Tyler
akanevsky
12-17-2005, 07:23 PM
Uh.. I didn't know that there was already such hack. But yeah, looks like it. less buff = better :)
JohnBee
12-17-2005, 07:23 PM
Nice little addon!
Is it possible to have it display the no. of downloads?
I would like to see a link that says: Downloaded 12 times and when you click or hover on it the list would appear :)
Still... this is a good and useful idea!
TyleR
12-17-2005, 07:24 PM
well, installed perfectly, and much more simple than Mr Blunts..
/me clicks install
akanevsky
12-17-2005, 07:31 PM
Seems like you missed the button ;)
akanevsky
12-17-2005, 07:34 PM
Is it possible to have it display the no. of downloads?
Yes, definitely.
akanevsky
12-17-2005, 08:04 PM
Ok, updated. Now the number is displayed.
If you have installed the hack, overwrite the XML and run this query:
ALTER TABLE attachmentviewslog ADD count INT( 10 ) UNSIGNED NOT NULL DEFAULT '1'
TyleR
12-17-2005, 09:40 PM
Seems like you missed the button ;)
oops :nervous:
* TyleR clicks install and re-checks that he did this time :p
- Tyler
Rhoads
12-17-2005, 10:20 PM
First of all thanks for your hack, were here for quite some time to look up.
Unfortunately I get a error when I refresh the page where the attachment is.
Warning: mysql_query(): 7 is not a valid MySQL-Link resource in /includes/class_core.php on line 395
Warning: mysql_error(): 7 is not a valid MySQL-Link resource in /includes/class_core.php on line 837
Warning: mysql_errno(): 7 is not a valid MySQL-Link resource in /includes/class_core.php on line 855
There seems to have been a problem with the Forum database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin 3.5.2:
Invalid SQL:
SELECT userid FROM attachmentviewslog
WHERE attachmentid = '21'
AND userid = '1';
MySQL Error :
Error Number :
Date : Sunday, December 18th 2005 @ 01:13:20 AM
Script : http://www.mydomein/forum/attachment.php?attachmentid=21&d=1134864386
Referrer : http://www.mydomein/forum/showthread.php?t=45
IP Address : xx.xxx.xx.xxx
Username : Xxxxxx
Classname : vb_database
jluerken
12-17-2005, 10:20 PM
The phrase "psiwd_who_downloaded" is not created automatically :D
akanevsky
12-17-2005, 10:24 PM
First thnx for this hack,
but I have no who downloaded link and I get many errors.
This is a problem with your copy of vBulletin, not with the hack.
The phrase "psiwd_who_downloaded" is not created automatically
Thanks, fixed :)
dan35
12-17-2005, 10:26 PM
Does it show how many times a member downloaded the same attachment? Just for antileeching you know ;)
Rhoads
12-17-2005, 10:27 PM
This is a problem with your copy of vBulletin, not with the hack.
Why is this a problem of my vbulletin :ermm: , I have exactly such vbulletin as everyone other one. vB 3.5.2
jluerken
12-17-2005, 10:27 PM
I added a download to the db and downloaded it three times.
See the output (attachment).
The window is not showing the user name and a 0 instead which is definetly wrong.
akanevsky
12-17-2005, 10:29 PM
Does it show how many times a member downloaded the same attachment? Just for antileeching you know
Yes.
Why a this problem of my vbulletin is, I have exactly such vbulletin as everyone other one.
Because my hack does not go anywhere near class_core.
I added a download to the db and downloaded it three times.
See the output (attachment).
The window is not showing the user name and a 0 instead which is definetly wrong.
Can I see that on your board?
Rhoads
12-17-2005, 10:38 PM
Because my hack does not go anywhere near class_core.
Oke, very vague
Uninstall is the best way at this moment :disappointed:
Xtrato
12-17-2005, 10:43 PM
Oke, very vague
Uninstall is the best way at this moment :disappointed:
Its a problem with your vB copy. most likey a bug.
JohnBee
12-18-2005, 02:35 AM
Dewd your .html installer is KICK ASS!!!! .thumbsup. [INSTALLED]
Rickie3
12-18-2005, 03:15 AM
this is great,but one thing,is there anyway of only allowing admins/mods to view who downloaded,as everyone can view even guests
*installed* anyway very handy,installed on 3.5.0 no probs
jluerken
12-18-2005, 07:55 AM
Database error in vBulletin 3.5.2:
Invalid SQL:
SELECT userid FROM attachmentviewslog
WHERE attachmentid = '21'
AND userid = '1';
MySQL Error :
Error Number :
Date : Sunday, December 18th 2005 @ 01:13:20 AM
This night I got messages from my board with the same error:
Database error in vBulletin 3.5.2:
Invalid SQL:
SELECT userid FROM vb3_attachmentviewslog
WHERE attachmentid = '817'
AND userid = '3';
MySQL Error :
Error Number :
Date : Sunday, December 18th 2005 @ 01:17:00 AM
Script : http://www.xyz.com/forum/attachment.php?attachmentid=817&d=1134864414
Referrer : http://www.xyz.com/forum/showthread.php?t=9726
There is definetly something wrong with this hack at the moment.
Rhoads
12-18-2005, 08:31 AM
This night I got messages from my board with the same error:
There is definetly something wrong with this hack at the moment.
I think it also.
I have install vbulletin this week, and have no charge of other plugins.
Perhaps it is a MySQL Version problem ?
I have MySQL Version 3.23.58 stable.
jluerken
12-18-2005, 08:48 AM
I think it also.
I have install vbulletin this week, and have no charge of other plugins.
Perhaps it is a MySQL Version problem ?
I have MySQL Version 3.23.58 stable.
Mine is 4.0.18 and I don't think that this is the problem
dan35
12-18-2005, 10:41 AM
Mine is 4.0.26.
Database error in vBulletin 3.5.1:
Invalid SQL:
SELECT userid FROM attachmentviewslog
WHERE attachmentid = '8503'
AND userid = '1';
akanevsky
12-18-2005, 11:28 AM
What is the reason for this SQL to be invalid? Does it tell you why it's invalid?
this is great,but one thing,is there anyway of only allowing admins/mods to view who downloaded,as everyone can view even guests
*installed* anyway very handy,installed on 3.5.0 no probs
If you disable "thread view" permissions for guests, then they won't be able to look. Otherwise, they will.
Rhoads
12-18-2005, 12:16 PM
What is the reason for this SQL to be invalid? Does it tell you why it's invalid?
This is the only warning that I gets:
Warning: mysql_query(): 7 is not a valid MySQL-Link resource in /includes/class_core.php on line 395
Warning: mysql_error(): 7 is not a valid MySQL-Link resource in /includes/class_core.php on line 837
Warning: mysql_errno(): 7 is not a valid MySQL-Link resource in /includes/class_core.php on line 855
I have vBulletin Version 3.5.2 and my class_core.php are orgineel
akanevsky
12-18-2005, 12:17 PM
Do you have that problem with the product XML disabled?
And what type of attachment are you trying to download when this happens?
EDIT: Fixed. In 3.5.2, attachment.php was modified and I had to move the code to a different hook. Now it's working properly in 3.5.2 :)
Rhoads
12-18-2005, 05:21 PM
Installed again, but there happened nothing if I download my zip file.
Also it do not counted the views.
(see first screen)
When I turn off the plugin, then I see the Who Downloaded? text, but I get also a page with the Generic Smilies code's :eek:
(see second screen)
akanevsky
12-18-2005, 05:25 PM
Try UNINSTALLING the hack, and the installing it again.
Or, when you install, make sure to check "ALLOW OVERWRITE".
There is NO way for it to NOT work, because I just installed it on a new vbulletin 3.5.2 board, and it works perfectly.
Rhoads
12-18-2005, 05:41 PM
Try UNINSTALLING the hack, and the installing it again.
Or, when you install, make sure to check "ALLOW OVERWRITE".
There is NO way for it to NOT work, because I just installed it on a new vbulletin 3.5.2 board, and it works perfectly.
Oke on my clean testboard i get now this error in the Who Downloaded popup when i push on the Who Downloaded link:
Database error in vBulletin 3.5.2:
Invalid SQL:
SELECT attachmentviewslog.userid, attachmentviewslog.count, user.username
FROM attachmentviewslog AS attachmentviewslog
LEFT JOIN user AS user USING(userid)
WHERE attachmentviewslog.attachmentid = 21
ORDER BY username;
MySQL Error : Table 'vbtest.attachmentviewslog' doesn't exist
Error Number : 1146
Date : Sunday, December 18th 2005 @ 08:39:41 PM
Script : http://www.mydomein.com/forum/misc.php?do=whodownloaded&attachmentid=21
Referrer :
IP Address : xx.xxx.xx.xxx
Username : xxxxxxxxx
Classname : vb_database
dan35
12-18-2005, 08:11 PM
New attachments are fine. But with old attachments there are errors:
Database error in vBulletin 3.5.1:
Invalid SQL:
SELECT userid FROM attachmentviewslog
WHERE attachmentid = '8470'
AND userid = '72';
MySQL Error :
Error Number :
Date : Sunday, December 18th 2005 @ 01:48:14 PM
Script : http://www.domain.com/forums/attachment.php?attachmentid=8470&stc=1&d=1131814178
Referrer : http://www.domain.com/forums/showthread.php?t=2604
IP Address : xx.xx.xx.xx
Username : xxxx
Classname : vb_database
akanevsky
12-18-2005, 08:26 PM
drl2005
That is strange. Try uninstalling the product and reinstalling it again.
You should have that table in your DB after you install the XML.
dan35
Make sure you have uninstalled the old product XML before you install the new one.
dan35
12-18-2005, 08:51 PM
Thank you! It works ;)
Rhoads
12-19-2005, 03:25 AM
drl2005
That is strange. Try uninstalling the product and reinstalling it again.
You should have that table in your DB after you install the XML.
3 time uninstalled and installed, but it remains the same.
Can you give me the table so that I can put it in my database without the xml file.
Rickie3
12-19-2005, 03:58 AM
If you disable "thread view" permissions for guests, then they won't be able to look. Otherwise, they will.hmmmm not quite what i was after,i dont want to disable thread viewing for guests,only want to disable viewing of who downloaded from guests
akanevsky
12-19-2005, 09:26 AM
I'll see if I add a who downloaded usergroup permission in next version.
As for MySQL error - make you delete the whodownloaded plugin located at attachment_complete hook.
Rickie3
12-19-2005, 09:34 AM
I'll see if I add a who downloaded usergroup permission in next version.
thankyou look forward to it,keep up the good work :up:
Rhoads
12-19-2005, 01:13 PM
As for MySQL error - make you delete the whodownloaded plugin located at attachment_complete hook.
Sorry, but I get not entirely what your meant
nuxvirg
12-22-2005, 10:08 AM
SQL sorgusu:
ALTER TABLE attachmentviewslog ADD count INT( 10 ) UNSIGNED NOT NULL DEFAULT '1'
MySQL çıktısı: Yardım
#1146 - Table 'gerha_forum.attachmentviewslog' doesn't exist
akanevsky
12-22-2005, 05:50 PM
If you have a table prefix defined, then you need to prepend "attachmentviewslog" with that table prefix before you run the query.
Rhoads
12-22-2005, 06:56 PM
I have run the query manual, and now everything works perfectly :)
Only I do not understand why the query not running out with the xml file.
CREATE TABLE `attachmentviewslog` (
attachmentid int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
count int(10) unsigned NOT NULL default '1',
KEY attachmentid (attachmentid)
) TYPE=MyISAM;
akanevsky
12-22-2005, 07:03 PM
I don't know why. Prolly cause it has a ; at the end, and vb 3.5 has a problem with that :p Will check
Allan
12-22-2005, 07:10 PM
Very nice, thanks ;)
File attach: French Language :)
akanevsky
12-22-2005, 07:12 PM
Why would you attach the whole XML? How about language only?
silurius
01-05-2006, 07:54 PM
I upgraded to 3.5.3 yesterday, and began installing this today. As soon as I edited vbulletin_global.js, my forum and admincp performance dropped significantly, I was unable to open a template and I could no longer expand groupings in the admincp navigation. I rolled back the vbulletin_global.js change, and instantly these problems disappeared. Should mention that I also installed Johannes' Who viewed this thread (https://vborg.vbsupport.ru/showthread.php?t=91409) plugin a few minutes previously (and have not removed).
Any ideas?
akanevsky
01-05-2006, 08:00 PM
Maybe you have done the .js edits incorrectly? There is absolutely NOTHING in the .js that could slow down your admincp's performance. It is essentially simply a copy-paste-modify of another piece of vBulletin code...
silurius
01-06-2006, 12:28 AM
Maybe you have done the .js edits incorrectly? There is absolutely NOTHING in the .js that could slow down your admincp's performance. It is essentially simply a copy-paste-modify of another piece of vBulletin code...Gah, it appears this is the case, the problem lay between the keyboard and my chair. To be totally fair, I assign partial blame to the scrolling codeboxes in the readme.html, but no worries. :)
Works beatifully.
steadicamop
01-08-2006, 06:05 PM
Installed, a wonderful addition, although doesn't seem to work in FireFox, just makes the page scroll up to the top, but does work in IE - is this correct?
dan35
02-11-2006, 10:03 AM
After my forum's been upgraded from 3.5.1 to 3.5.3, this hack doesn't work with firefox.
oops, nevermind, it works fine now!
Thx!
alluidh
03-28-2006, 06:08 PM
Hi
Is it possible to use this hack in one or two forum only? Normaly the member can download what they want, but in a special area of my webproject I need to see who downloaded and when did he/she download the file. This will be a part of a little workflow.
Thanks for answer
akanevsky
04-07-2006, 10:48 PM
No, it is not currently possible.
Kacela
04-08-2006, 11:09 AM
Works like a charm!
* Kacela clicks Install!
Out of almost 2 dozen Mods/Hacks that I've installed, this is the first one using that html-based "check-off" list - love it!
Installed, a wonderful addition, although doesn't seem to work in FireFox, just makes the page scroll up to the top, but does work in IE - is this correct?
Worked for me in both browsers... The only time it "jumped to the top" was when an attachment had NOT been downloaded since the time this mod had been installed - it's not "retroactive"
MaLTRaiN
04-11-2006, 02:52 PM
Are there a hack retroactive in this??? Thanks...
akanevsky
04-11-2006, 03:03 PM
No, it's not. You cannot see history before this installation.
Bernd
06-29-2006, 08:55 PM
I've tried this hack on version 3.5.4 and it only enters the username of the first person who has downloaded the attachment. If another user downloads it, that name is not added to the list. The download counter is not updated neither.
It seems to work for images, but not for other files.
What could be causing this?
akanevsky
06-29-2006, 09:00 PM
Improper installation of the hack, as always.
Bernd
06-29-2006, 09:26 PM
First improper install out of the 10 i have installed :P
I have followed all the steps. Does it perhaps take some time before it updates.
akanevsky
06-29-2006, 09:27 PM
Then perhaps it does not work properly with 3.5.4, I'll verify.
Bernd
06-29-2006, 09:50 PM
Another thing that i've noticed is that the pop-up for "who has downloaded" does not work in mozilla firefox (it does work in IE). It simply scrolls the page back to the top. Thanks for the quick support btw.
MaLTRaiN
07-26-2006, 01:56 PM
This mod will be updated for 3.5.4?
brvheart
08-28-2006, 02:12 AM
I had 3.5.4 and 3.5.5 running on old borad...this worked fine in both.
nitro
09-06-2006, 05:19 AM
Nice simple Q. Is this good in 3.6 ? :)
brvheart
09-11-2006, 04:19 PM
Nice simple Q. Is this good in 3.6 ? :)
My thought as well...I sure hope so :)
akanevsky
09-11-2006, 06:13 PM
Not so simple. I don't know. Haven't tested. But it SHOULD work.
brvheart
09-11-2006, 11:54 PM
thx PV :)
Keyser S?ze
09-15-2006, 11:07 PM
has this been tested in 3.6.1?
thanks
-edit- installed on 3.6.1 but it does not work, no errors tho, u can see it here
http://www.emuasylum.com/forums/showthread.php?t=38116
daloosaa
10-05-2006, 07:13 PM
Great Mod,
works fine with vBulletin 3.6.2. No errors.
perfphysio
10-07-2006, 04:01 PM
You mention in your install direction to find:
<phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase> in the postbit_attachment template.
The code in that template in 3.6.2 reads:
<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)
Where exactly do we place the code, efter the final bracket, after the close of the phrase, or somewhere else? I am not a coder so I need direction on whether it is as you describe and should be after the close of the phrase or should it be after the </if>) ?
Allan
10-15-2006, 09:05 AM
Humm i not understand but this hack don't work on my forum with vB3.6.2, but work with 3.6.0 ....:confused:
brvheart
10-26-2006, 12:55 PM
Working on my 3.6.1
brvheart
10-26-2006, 01:01 PM
You mention in your install direction to find:
<phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase> in the postbit_attachment template.
The code in that template in 3.6.2 reads:
<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)
Where exactly do we place the code, efter the final bracket, after the close of the phrase, or somewhere else? I am not a coder so I need direction on whether it is as you describe and should be after the close of the phrase or should it be after the </if>) ?
I tried mine both before and after, did not seem to make a difference if it was placed before or after...
kartik786
04-02-2007, 02:53 PM
Any idea when upgrade will be released for 3.6.4 ??
Doesnt work on it. Produces lot of internal server errors :(
BANDiT600
04-06-2007, 06:42 PM
Yeah, we would like new one for 3.6.4 and higher... ;)
Makc666
04-09-2007, 04:17 PM
Any idea when upgrade will be released for 3.6.4 ??
Doesnt work on it. Produces lot of internal server errors :(
Yeah, we would like new one for 3.6.4 and higher... ;)
Works fine on 3.6.4 and on 3.6.5
akanevsky
04-09-2007, 05:23 PM
Yeah.... Internal Server Errors have nothing to do w/ this particular hack.
lasto
10-20-2007, 09:12 PM
works perfect on fresh copy of vb3.6.8
infact did only take a min to install :)
cheers Psionic for this hack
Direct Vision
10-25-2007, 08:00 AM
i installed this modification and the view who downloaded appears, but when i press on it the page goes up and it doesn't show you who downloaded.
I am using vb 3.6.8,
can anyone help me please??
perfphysio
10-25-2007, 09:15 AM
i installed this modification and the view who downloaded appears, but when i press on it the page goes up and it doesn't show you who downloaded.
I am using vb 3.6.8,
can anyone help me please??This happens nearly every time that one updates vbulletin with this mod. This is because part of the hack involves a custom edit of one of the global js templates. (./clientscript/vbulletin_global.js)
If you edit that file again as shown in the instructions then this should fix the issue
Direct Vision
10-25-2007, 09:25 AM
ok mate i try it
Direct Vision
10-25-2007, 09:45 AM
what software or programm i need to open and edit . js file??
Direct Vision
10-25-2007, 11:30 AM
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?
Direct Vision
10-25-2007, 12:15 PM
This Is what i edited :
vbulletin_global.js
/**
* 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 :
<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 :
<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??
haytham
11-02-2007, 10:15 AM
i installed this modification and the view who downloaded appears, but when i press on it the page goes up and it doesn't show you who downloaded.
I am using vb 3.6.8,
can anyone help me please??
Same here and I am sure I did all the edits correctly including the vbulletin_global.js. Any ideas?
haytham
11-02-2007, 10:28 AM
My bad. I was working on 2 forums and got mixed up. Working fine. Installed.
Cybershaolin
11-25-2007, 05:19 PM
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?
haytham
11-26-2007, 07:33 PM
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?
Had this issue but found it connected to java. Try to disable the java and see.
FCS-Webmaster
01-17-2008, 09:47 PM
Installed and works like a charm on vb 3.6.8.
exportforce
02-19-2008, 02:40 PM
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:
<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>
instead of
<if condition="$attachment['counter'] > 0"> - <a href="#" onclick="whodownloaded($attachment[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>
Just instead of 6, 7, 9 the Number of the Usergroups you want to use.
You can also use less or more groups, not restricted :)
MarahibSat
02-25-2008, 08:30 PM
<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>
thx exportforce, I did these changes but still didn't work for me here is what I have in my whodownloaded templates, who can show me where to put exportforce codes so can be limited to some usergroups, thx in advance
$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>
exportforce
02-29-2008, 02:24 PM
As I wrote, instead of inserting:
<if condition="$attachment['counter'] > 0"> - <a href="#" onclick="whodownloaded($attachment[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>
(Thats what you would normally add)
you take THIS:
<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>
And instead of 6, 7, 9 put your usergroup ID's into the code :)
Hmm, installed it all correctly on 3.6.8 but it's not showing who downloaded it..
J98680Bxxxxx
04-09-2008, 11:04 AM
Installed and working fine on vB 3.7 RC2 :up:
Actually, in vB UserCP there is a link "Attachments" which lists all attachments uploaded by a user.
Any idea how we could extend this mods in order to display the list of attachments downloaded by a given user in his/her UserCP?
Thanks in advance for any hint. I have been looking at the source code for the file misc.php, but cannot figure out how to proceed. :(
somasimple
06-18-2008, 04:06 AM
Hi all,
I was unable to find the code below in global.js
/**
* 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
);
}
J98680Bxxxxx
06-18-2008, 04:49 AM
Hi all,
I was unable to find the code below in global.js
...
You may want to checkout this mod (https://vborg.vbsupport.ru/showthread.php?t=93167) instead.
:up:
somasimple
06-18-2008, 06:18 AM
I need a hack that functions with 3.7.1 PL1
yahoooh
08-04-2008, 07:20 AM
any one can confirm if it is working with vb 3.7
Makc666
08-11-2008, 05:49 AM
any one can confirm if it is working with vb 3.7
Yes, it works.
sateurope
09-08-2008, 06:00 AM
No longer working with last update.
Global JS is altered and needed text to find is no longer there:confused:
haytham
09-23-2008, 10:06 AM
Well...any fixes?
perfphysio
10-15-2008, 06:06 PM
is there an upgrade for 3.7.3. It seems the ./clientscript/vbulletin_global.js is now somewhat different.
somasimple
10-16-2008, 03:49 AM
This one works with 3.7.3 (tested)
https://vborg.vbsupport.ru/showthread.php?t=93167
perfphysio
10-16-2008, 06:43 AM
Many thanks Bernard :)
AnotherJacob
02-18-2009, 06:48 PM
is this working for v3.8.1 ?
Fraxter
03-22-2009, 01:20 PM
is this working for v3.8.1 ?
Yes it works.
@PV: An option which enables the exact download time would be very usefull. :)
Hornstar
04-15-2009, 02:16 AM
I don't think this one is optimized for 3.8.x anymore. Is anyone interested in taking over this if the coder has stopped supporting it?
Fraxter
06-27-2009, 03:59 PM
Thanks a lot for this great update. :) :up:
Allan
07-20-2010, 05:41 PM
No upgrade for vB4 ?
danem
07-04-2011, 01:06 PM
Почему в настройках групп пользователей что бы включить этот модуль, его надо выключить?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.