Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ok i really need help... Details »»
ok i really need help...
Version: , by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-30-2002 Last Update: Never Installs: 0
 
No support by the author.

well seeing how jelsoft cant suport me due to hacks im asking here


my views are broke, its the database itself thats messed up, it was just not counting views until a day or so ago when our php got upgraded, now when you view a topic then go to anthor page 1/3 of the time it will give this error


Quote:
Database error in vBulletin 2.2.5:

Invalid SQL: UPDATE LOW_PRIORITY user SET views=views+1 WHERE userid='88'
mysql error: Unknown column 'views' in 'field list'

mysql error number: 1054

Date: Thursday 30th of May 2002 05:05:02 AM
Script: http://www.kousetsu.net/forums/forum...=9503#post9503
Referer: http://www.kousetsu.net/forums/index.php?
and under the error box it says

Quote:
HTTP/1.1 200 OK Date: Thu, 30 May 2002 05:05:09 GMT Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_perl/1.24_01 PHP/4.1.2 FrontPage/5.0.2 mod_ssl/2.8.1 OpenSSL/0.9.6 X-Powered-By: PHP/4.1.2 Content-Length: 71267 Keep-Alive: timeout=15, max=98 Connection: Keep-Alive Content-Type: text/html

i really need help on this one, is there a query i can run or soemthing to repair the database?, i dont have telnet acess but i do have phpmyadmin

url to forums: http://www.kousetsu.net/forums

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-30-2002, 05:48 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't have a views column in your user table, which is normal. That query must be from some kind of hack. The normal showthread query updates the thread table.
PHP Code:
if ($noshutdownfunc) {
  
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
  
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";

Reply With Quote
  #3  
Old 05-30-2002, 06:08 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

welll thanks for the reply, i cleared some things up for me, however im still not sure about how to go about fixing it, can you give me some more info or can i send you my files so you can look into it for me?
Reply With Quote
  #4  
Old 05-30-2002, 06:11 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can't send me your files. That's not allowed. I posted the correct queries. I don't know how that other one got in your showthread.php. Did you install some hack that tracks users views of threads or something?
Reply With Quote
  #5  
Old 05-30-2002, 06:18 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry i thought i saw someone do that before, my forum is heavly hacked, ill have to look into it, i do have that querie. lemme search that file
Reply With Quote
  #6  
Old 05-30-2002, 06:20 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is all i can file while searching views

PHP Code:
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  
$pagenumber=1;
}
if (
$bbuserinfo['userid']!=0) {
  if (
$noshutdownfunc) {
    
$DB_site->query("UPDATE user SET views=views+1 WHERE userid='$bbuserinfo[userid]'");
  } else {
    
$shutdownqueries[]="UPDATE LOW_PRIORITY user SET views=views+1 WHERE userid='$bbuserinfo[userid]'";
  }
}
if (
$noshutdownfunc) {
  
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
  
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";

Reply With Quote
  #7  
Old 05-30-2002, 06:23 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if it helps i also get this when applying the "fix" for views found here

http://www.vbulletin.com/forum/showt...ht=view+counts

and the error i get after applying that fix when trying to view a topic

Quote:
Database error in vBulletin 2.2.5:

Invalid SQL: UPDATE user SET views=views+1 WHERE userid='88'
mysql error: Unknown column 'views' in 'field list'

mysql error number: 1054

Date: Saturday 18th of May 2002 09:49:07 AM
Script: http://www.kousetsu.net/forums/foru...hp?threadid=322
Referer:
Reply With Quote
  #8  
Old 05-30-2002, 06:27 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This code has to be part of a hack:
PHP Code:
if ($bbuserinfo['userid']!=0) {
  if (
$noshutdownfunc) {
    
$DB_site->query("UPDATE user SET views=views+1 WHERE userid='$bbuserinfo[userid]'");
  } else {
    
$shutdownqueries[]="UPDATE LOW_PRIORITY user SET views=views+1 WHERE userid='$bbuserinfo[userid]'";
  }

If you want to run that you need to add a views column to your user table. The alternative is to delete it or comment it out. The code above and below it is normal and will work.
Reply With Quote
  #9  
Old 05-30-2002, 06:32 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok! ^_^ thanks, time to kill that code and see witch hack it was from
Reply With Quote
  #10  
Old 05-30-2002, 06:35 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh i see it was from that views hack for members i decided not to install, guess i forgot to whipe the scripts ^_^
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:49 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.04360 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete