The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Whodownloaded_IP with Dates Details »» | |||||||||||||||||||||||||
Welcome to Mr Blunt's "Whodownloaded_IP" Series for vBulletin 3.5.2
This is FREE CODE AND CAN BE used, abused, and released as desired!! I only ask it REMAIN FREE - unless maybe you compensate me as well?? If any code looks familiar, I'm sorry and ASSURE YOU it's coincidence!! Paypal Donations are graciously accepted if you like this script. I'm just a broke amateur who enjoys writing free stuff (for now). Donations goto my - Help Rebuild My PC Fund. But the script is free if your broke too ... So enjoy it either way!! mr_blunt@sbcglobal.net Please email me for comments, questions, or anything else on your mind. Put the exact word "Whodownloaded" in subject to get by my spam filters! My nick "Mr Blunt" is also at www.vbulletin.org & www.vbulletin.com Support thread: https://vborg.vbsupport.ru/showthread.php?t=93167 IMPORTANT KEY NOTES: This script REQUIRES vBulletin 3.5.0 or above and was tested with vb 3.5.2 Failure to upload all files to server WILL PRODUCE DATABASE ERRORS. Install "Product" file as a "PRODUCT" ... not as a "PLUGIN" or "STYLE". Features of Whodownloaded_IP:
JUST IN CASE YOU HAVE ANY OF MY OLD vb3.0.x VERSIONS: Uninstall any "NON-IP" version before installing this. vBulletin PHP FILE: attachment.php -- (307 versions edited this) 3rd Party PHP FILE: whodownloaded.php vBulletin TEMPLATE: postbit_attachment vBulletin TEMPLATE: headinclude 3rd Party TEMPLATE: whodownloads 3rd Party TEMPLATE: whodownloadsbit 3rd Party TEMPLATE: whodownloads_error 3rd Party TEMPLATE: whodownloads_error_nop vBulletin DATABASE TABLE: user 3rd Party DATABASE FIELD: user.downloads
Test it and come back to the file's vbulletin.org forum support thread and CLICK INSTALL so I can alert you when this hack gets important updates. NO, I DO NOT SPAM!!! Alerts will only be sent AFTER major changes!! Whodownloaded_IP Uninstallation Procedures:
And the order of steps is important, so please be careful. Whodownloaded_IP Files To Upload:
File Name: product_blunts_whodl_ip.xml Product ID: blunts_whodl_ip Title: Whodownloaded_IP Version: 1.2.0 3rd Party PLUGIN: Whodownloaded IP - Enable Bitfields 3rd Party PLUGIN: Whodownloaded IP - Enable Viewing 3rd Party PLUGIN: Whodownloaded IP - Enable Logging 3rd Party MASTER PHRASES: 65 Phrases with 'blunts_whodl_' prefix 3rd Party MASTER TEMPLATE: blunts_whodownloaded_ip_main 3rd Party MASTER TEMPLATE: blunts_whodownloaded_ip_namebit 3rd Party MASTER TEMPLATE: blunts_whodownloaded_ip_datebit 3rd Party DATABASE TABLE: blunts_whodownloaded_ip 3rd Party DATABASE FIELD: blunts_whodownloaded_ip.whodownloaded_ipid 3rd Party DATABASE FIELD: blunts_whodownloaded_ip.userid 3rd Party DATABASE FIELD: blunts_whodownloaded_ip.username 3rd Party DATABASE FIELD: blunts_whodownloaded_ip.filename 3rd Party DATABASE FIELD: blunts_whodownloaded_ip.fileid 3rd Party DATABASE FIELD: blunts_whodownloaded_ip.ipaddress 3rd Party DATABASE FIELD: blunts_whodownloaded_ip.alt_ip 3rd Party DATABASE FIELD: blunts_whodownloaded_ip.dateline 3rd Party DATABASE FIELD: usergroup.bluntswhodlpermissions 3rd Party DATABASE FIELD: settinggroup.blunts_whodl 3rd Party DATABASE FIELD: settings.blunts_whodl_popisactive 3rd Party DATABASE FIELD: settings.blunts_whodl_poplarge 3rd Party DATABASE FIELD: settings.blunts_whodl_popsmall 3rd Party DATABASE FIELD: settings.blunts_whodl_logwhat Whodownloaded_IP Style File Contents: File Name: style_blunts_whodl_ip.xml OVERWRITES these 4 standard vBulletin templates: vBulletin Template: modifyattachmentsbit (November 1st, 2005) vBulletin Template: postbit_attachment (Aug 20th, 2005) vBulletin Template: postbit_attachmentmoderated (Aug 20th, 2005) vBulletin Template: postbit_attachmentthumbnail (Aug 20th, 2005) Use these manual template edit instructions if you use other hacks!! Template: modifyattachmentsbit FIND THIS: Code:
<div class="smallfont">$post[postdate] <if condition="!$show['detailedtime']"><span class="time">$post[posttime]</span></if></div> Code:
<if condition="$show['blunts_whodl_width']"><div class="smallfont"><input type="button" class="button" value="$vbphrase[blunts_whodl_who_downloaded]" tabindex="1" onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]fid=$post[attachmentid]','blunts_whodownloaded_ip','toolbar=no, scrollbars=yes, resizable=yes, width=$show[blunts_whodl_width], height=450, top=50, left=50'); return false;" title="$vbphrase[blunts_whodl_who_downloaded]: $post[attachmentid]" /></div></if> Template: postbit_attachmentmoderated FIND THE LAST: Code:
</tr> Code:
<td><if condition="$show['blunts_whodl_width']"><input type="button" class="button" value="$vbphrase[blunts_whodl_who_downloaded]" tabindex="1" onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]fid=$attachment[attachmentid]','blunts_whodownloaded_ip','toolbar=no, scrollbars=yes, resizable=yes, width=$show[blunts_whodl_width], height=450, top=50, left=50'); return false;" title="$vbphrase[blunts_whodl_who_downloaded]: $attachment[attachmentid]" /></if></td> FIND THE LAST: Code:
<if condition="$show['br']"><br /><br /></if> Code:
<if condition="$show['blunts_whodl_width']"> <if condition="is_browser('ie', '5.5')"> <input type="button" class="button" value="$vbphrase[blunts_whodl_who_downloaded]" tabindex="1" onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]fid=$attachment[attachmentid]','blunts_whodownloaded_ip','toolbar=no, scrollbars=yes, resizable=yes, width=$show[blunts_whodl_width], height=450, top=50, left=50'); return false;" title="$vbphrase[blunts_whodl_who_downloaded]: $attachment[attachmentid]" style="writing-mode:tb-rl" /> <else /> <a href="blunts_whodownloaded_ip.php?$session[sessionurl]fid=$attachment[attachmentid]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="button" src="$stylevar[imgdir_attach]/blunts_whodl_vertical.bmp" alt="$vbphrase[blunts_whodl_who_downloaded]" border="1" title="$vbphrase[blunts_whodl_who_downloaded]: $attachment[attachmentid]" /></a> </if> </if> v-1.0.0 - July 29th, 2005:
mr_blunt@sbcglobal.net Supporters / CoAuthors Show Your Support
|
Comments |
#82
|
||||
|
||||
Installation went well, permissions set, plugin enabled in the main. But nothing is showing up on the attachments
I'm running vB 3.5.2 , it it not compatible? Edit: Apparently the image I was using was too small in resolution or something.. . that's why I saw nothing, it works now with large images and zip etc :tired: |
#83
|
|||
|
|||
Quote:
2) Upon installation, you won't have any data in the table, so login to your forum and download one from any thread. Afterwards, come back to the admincp and see if the download appears in the quick search. If you have some crons setup do only update things like once an hour .... then of course you'll have to wait for that period of time. 3) If you had a previous 3.0.x version, and your expecting to see the old data immediately, that's not how my v1.1.0 is setup. I made importing an "option" which you will be able to use after you gain access to the search engine (by downloading one file to start things). If #2 & #3 don't solve the mystery, then it's probably #1. |
#84
|
||||
|
||||
Ahh, please read the edit of my previous post, now I feel bad for having you type all that up...
It's up and running fine During installation it told me I had previously installed it on 3.0.x, I don't even remember that far back! :speechless: |
#85
|
|||
|
|||
Don't worry about my typing bro.
I talk a lot. Glad it's all good. Feedback would be helpful. I always like to hear ideas, good and bad. And I like to fix things. |
#86
|
|||
|
|||
Quote:
I am sole owner. I have all the permissions. I can execute requests SQL from my admincp in my config.php $config['SpecialUsers']['canrunqueries'] = '1'; it's me ok other thing to make for this permission? |
#87
|
|||
|
|||
There definately appears to be compatibility issues with 3.5.2. Here's what I get when someone downloads the file:
Code:
Database error in vBulletin 3.5.2: Invalid SQL: INSERT INTO blunts_whodownloaded_ip (userid, username, filename, fileid, ipaddress, alt_ip, dateline) VALUES (1427, '', '', 2661, '', '', 1134139939); MySQL Error : Error Number : Date : Friday, December 9th 2005 @ 09:52:19 AM Script : http://myforum/forum/attachment.php?attachmentid=2661&d=1133518215 Referrer : http://myforum/forum/showthread.php?t=6349 IP Address : x.x.x.x Username : blabla Classname : vb_database Code:
<br /><strong>Warning</strong>: mysql_real_escape_string(): 7 is not a valid MySQL-Link resource in <strong>/includes/class_core.php</strong> on line <strong>657</strong><br /><br /><strong>Warning</strong>: mysql_real_escape_string(): 7 is not a valid MySQL-Link resource in <strong>/includes/class_core.php</strong> on line <strong>657</strong><br /><br /><strong>Warning</strong>: mysql_real_escape_string(): 7 is not a valid MySQL-Link resource in <strong>/includes/class_core.php</strong> on line <strong>657</strong><br /><br /><strong>Warning</strong>: mysql_real_escape_string(): 7 is not a valid MySQL-Link resource in <strong>/includes/class_core.php</strong> on line <strong>657</strong><br /><br /><strong>Warning</strong>: mysql_query(): 7 is not a valid MySQL-Link resource in <strong>/includes/class_core.php</strong> on line <strong>395</strong><br /><br /><strong>Warning</strong>: mysql_error(): 7 is not a valid MySQL-Link resource in <strong>/includes/class_core.php</strong> on line <strong>837</strong><br /><br /><strong>Warning</strong>: mysql_errno(): 7 is not a valid MySQL-Link resource in <strong>/includes/class_core.php</strong> on line <strong>855</strong><br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
#88
|
|||
|
|||
I have vb 3.5.2 also and i get the exact error!!
Its not showing who has downloaded what either, when i click Who Downloaded, it says 2 downloads of File but no names or IP's also it is not logging downloads at all, and the Quick Search Engine is not finding anything.... Bashy Quote:
|
#89
|
|||
|
|||
I also have upgarded to vB3.5.2. I get the same error.
so, I have de-installed the Whodownloaded Plugin and tried to reinstall it. But i get th following error message: Quote:
Mr.Blunts: Can you have a look at it and release a new version of "WhoDownloaded" ??? Many, many, many thanks. |
#90
|
|||
|
|||
I get the error too.
I'll probably have it fixed by morning. PLEASE DO NOT UNINSTALL!!! PLEASE DO NOT UNINSTALL!!! PLEASE DO NOT UNINSTALL!!! PLEASE DO NOT UNINSTALL!!! JUST "DISABLE" THE PRODUCT!!! You do NOT have to worry about anything if you do this. |
#91
|
|||
|
|||
Thanks Mr. Blunt
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|