![]() |
Like I said, I have no clue. But obviously all the commands have worked. I think this is a server side issue, and not really an issue with the hack, perhaps. I don't know what version of PHP or MySQL I'm running offhand, and I'm not up to finding out just yet. :D
|
]53 hacks installed and only one doesn't work... :(
[high]* wooolF[RM] goes back in the corner and cries... :p[/high] |
Useful...
This will be a Hack I install soon! Satan |
Great hack and great idea!
As nakkid did, I enabled it only to Admin/Mods. Besides, as suggested here, Quote:
A table containing attachid/userid as key, then a counter for multiple-times downloaded attachments, and as requested dateline and ipaddress of the lastest download by that user. First look, I should use code like this in attachment.php to add values to that table: PHP Code:
whodownloaded.php file (and templates) to read such a table... What do you think about ? Bye |
Well, I'm not opposed to it, if that's what you mean. :) The hack is free for anyone to use and modify as they please.
|
Great work.
Looking good on 2.2.2 |
I installed this hack and now when people reply to a post there post is put on top of the posts instead of below. I know that in the admin cp there is an option for this but it is not the problem. Any one know what is?
Also, most of the new post indicators are always on now as well, and it never changes. TIA |
Hmm. Sounds like you might've accidently changed or deleted a line somewhere...
|
]grrrrrrrr... still can't get it to work... :(
|
ok... this is my last try...
|
Quote:
TIA |
This is a nice hack and I have installed it using vbhacker. Worked fine except I did the attachment.php manually. I got the same errors as a few others here, but managed to sort it out by reading these posts - thanx!!
Now, I get one error I hope someone can help out with. I am on 2.2.5 and get this when clicking on the link "who downloaded this?": ---- Database error in vBulletin 2.2.5: Invalid SQL: SELECT u.userid, u.username FROM user u WHERE u.downloads LIKE "1%" OR u.downloads LIKE "%1%" OR u.downloads LIKE "%1" ORDER BY u.username ASC mysql error: Unknown column 'u.downloads' in 'where clause' mysql error number: 1054 --- Now, If I view my ....whodownloaded.php in the browser it looks just fine... Any hints are appreciated! Edited: I think the above is due to a "parse error in line 56" in the attachment.php..... because of it I do not manage to get any downloads when clicking on the attachment link. Hence, the above sql error shows because no one downloaded yet?? How do I get rid of the parse error.... I have checked the coding in the attachment.php.... |
I tried to install this using vbhacker and now i am getting errors.
When i try click on who downloaded this i get the following errors Database error in vBulletin 2.2.4: Invalid SQL: SELECT downloads FROM user WHERE userid = 1 mysql error: Unknown column 'downloads' in 'field list' mysql error number: 1054 Date: Sunday 21st of April 2002 12:30:18 PM Script: http://www.gamblingforums.net/vbport...php?postid=857 Referer: http://www.gamblingforums.net/vbport...hp?threadid=56 When using vbhacker everything went ok except for the attachment.php part which i did manually. Now i cant even download the attachment attachment link http://www.gamblingforums.net/vbport...hp?threadid=56 |
Yes!... I now managed to get rid of the sql error I got when clicking on the link "who downloaded this?" (see post #52).
By running the whodownloaded_query in the whodownloaded_query.txt file!!!! ofcourse..... (I really thought vbhacker took care of everything) I am a novice.. so I am using Firefly's hack for running a query..not myphpAdmin. The above should apply for more than me ;) Now... that parse error.... |
Well, I can't know what's wrong with line 56 until I see it. :) Liines 50-60 should help...
|
Thank you TWTCommish!
I have attached the attachment file here.... I am never sure if I manage to spread the lines over several lines... you know. :rolleyes: Thanks again. Edit: here is the error: Parse error: parse error in ...../forums/upload/attachment.php on line 58 |
I have the same JS error.. I have checked my templates and it seems to be correct....
|
I should have read the whole thread it works great now
Thanks |
bandersen: please remove that file. I don't think you're allowed to post entire vBulletin files on here. You can only post parts of them. I'll download it so I can take a look, but I don't think it's allowed to be up there...
|
Sorry... I didnt know. It's gone.
|
Okay, on lines 53-57, you have this:
PHP Code:
PHP Code:
|
I tried... sorry.. didnt do it. Maybe there are more errors right before and after these lines? same coding there....
|
Right after the code I just gave you, take this part OUT:
PHP Code:
|
I've tried that.... Yahooooo... it works!!!
thanks a lot :) Just one more thing..... :laugh: (just happy I got to see an image!).. it's not counting. If I click on the attachment; I can see it and my name shows up in the box... but the line below the link still shows 0 downloads. Admin not included in the counts... or something? here's my test page/post if you care to take a look: link Thanks again! |
For some reason it works now! 1 download, but box says 2. It's ok. Wonderful.
|
What if a guest downloads?
How do you prevent guests from downloading... or identify that "guests" downloaded.... (when I download without being logged in... it counts, but no new names/guest). I was planning to have downloadable demos located in its own forum, then use this script to see who downloaded. |
is there any way to make only admins and mods view this?
|
When I run the query I get the following error messages:
Quote:
Does deleting the existing "downloads" column affect my forum in any way? |
As I told you in a PM, if you're getting that error, then the query has already been run and you can skip to the next step.
|
thanks for the reply. But now when I click on any attachments in my forum, I cant download them. I'm getting a
Parse error: parse error in /home/sites/site22/web/forums/attachment.php on line 55 Also I'm getting a runtime error whenever I move anywhere in my forum. |
The first problem likely stemmed from an error in the code change in the attachment.php file. You might want to try that step again to make sure you got it right.
As for the other problem: do you mean a JavaScript error? If so, what's it say? |
sometimes I get syntax errors when moving from one forum to another.
line: 126 char: 100 Error: Syntax error Code: 0 I just also double checked in my attachment.php and its still doing the same thing. Whenever I click on the WHO DOWNLOADED THIS link I get the following error: Runtime error has occured. Do you wish to debug? When I click on an attachment I get the following error: Parse error: parse error in /home/sites/site22/web/forums/attachment.php on line 55 |
I need more information here. :) Examples of the error. What changes you made, etc. The JavaScript provided with this hack works just fine as far as I can tell, unless it conflicts with something else you've done, or unless it's been placed in the wrong place, etc.
|
I just uninstalled it. I've had the same problem with two forums now.
|
It seems that my whodownloadsbit does not work. :(
Old Donwloads are shown with "No Downloads found" like explained in the anouncement. But a new Attachement, attached after installing this hack, just show the table with Total Downloads: 2 User Close Window But the Users are not shown. Any help? thx Jean |
All you have to do is put the javascript for the attachment on showthread template instead of in phpinclude. That way it won't clash with his 'who posted' hack which you'd put that script into forum home main and forum display main.
|
How did you do that, Floren? :)
Quote:
|
Great hack, does working on 2.2.7 :D
Thank ya! |
Did anyone figure out what to use so admin/mods can only use this?
Thanks |
Hi
Please please give us more data in the who downloaded this box. Accept usernames i would like to get at least dates of downloads!!! (Sorting by the date would be very nice!) Regards BusteR |
All times are GMT. The time now is 04:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|