![]() |
1. A suggestion: to store the dowload info into a new table instead of creating a new field in the user table.
2. The new whodownloaded table could contain the following info: - attachmentid - userid - dateline - ip 3. This way, we can also find out how many a particular user downloaded the same attachment, the date & time downloaded or the ip address (if needed for control purpose) 4. Moreover this can prevent bloating the $bbuserinfo variable as the download field can get quite big |
Well, I'd thought of all that already, hence this line in my original post:
Quote:
If anyone else seconds the idea to expand this hack, say so... :) |
anyway this is a great hack, well done :)
|
hi i get a 404 error :(
|
OK I have a Mutiple Attachments hack installed... when I click on the like.. I get this error...
Code:
Invalid SQL: SELECT counter FROM attachment WHERE attachmentid = undefined |
I don't know how you got the text "undefined" there. Did you modify any of the files?
As for the 404 error: make sure you upload the whodownloaded.php file to the main forums directory! |
nice job!!
did u ever think add the download times numbers?? |
Yeah, I thought of it, but decided to just start simple. I might expand this big time later on...if I ever finish the other 3 or so hacks I'm working on. LOL.
|
great hack. :)
i'll use it but a little modified. i'll make it visible only for mods and admins. |
]Your SQL-query has been executed successfully
SQL-query : ALTER TABLE user ADD COLUMN downloads TEXT NOT NULL Clicking on link (I have downloaded file to be sure it have some records) New window pop-ups ->>> Database error in vBulletin 2.2.4: Invalid SQL: SELECT u.userid, u.username FROM user u WHERE u.downloads LIKE "56%" OR u.downloads LIKE "%56%" OR u.downloads LIKE "%56" ORDER BY u.username ASC mysql error: Unknown column 'u.downloads' in 'where clause' mysql error number: 1054 Date: Saturday 13th of April 2002 02:42:16 AM Script: http://blablabla/forum/whodownloaded...ttachmentid=56 Referer: Any help please?... I rechecked twice if I edited/added everything right... |
All times are GMT. The time now is 08:43 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:
|