vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Who Downloaded This Attachment (https://vborg.vbsupport.ru/showthread.php?t=103155)

jluerken 12-18-2005 07:55 AM

Quote:

Originally Posted by drl2005
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....7&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

Quote:

Originally Posted by jluerken
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

Quote:

Originally Posted by drl2005
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?

Quote:

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

Quote:

Originally Posted by Psionic Vision
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:

HTML Code:

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

Quote:

Originally Posted by Psionic Vision
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:

HTML Code:

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



All times are GMT. The time now is 03:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01362 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete