Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-21-2002, 01:09 PM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Not a request but a Problem

Hope you can follow me on this one .

me tester board which is hack free is giving 25-27 queries as standard is that correct and thats with a clean install.

Now i take the user table from my boards database (nothing else just the user table to get members name/passwprd/email etc)

Now the queries rise to 91

How is this possible with no hacks installed and is there hope for me to reduce the queries.I dont want all the members to have to re reg but i also dont want all them queries running esp when i aint installed any hacks.

Now remember this is a fresh install and all i want is the info from main board sucah as pass /email

but when i download the user table and run it as a query here is a list of what it runs.

PHP Code:
DROP TABLE IF EXISTS user;
CREATE TABLE user (
   
userid int(10unsigned NOT NULL auto_increment,
   
usergroupid smallint(5unsigned NOT NULL,
   
username varchar(50NOT NULL,
   
password varchar(50NOT NULL,
   
email varchar(50NOT NULL,
   
styleid smallint(5unsigned NOT NULL,
   
parentemail varchar(50NOT NULL,
   
coppauser smallint(6NOT NULL,
   
homepage varchar(100NOT NULL,
   
icq varchar(20NOT NULL,
   
aim varchar(20NOT NULL,
   
yahoo varchar(20NOT NULL,
   
signature mediumtext NOT NULL,
   
adminemail smallint(6NOT NULL,
   
showemail smallint(6NOT NULL,
   
invisible smallint(6NOT NULL,
   
usertitle varchar(250NOT NULL,
   
customtitle smallint(6NOT NULL,
   
joindate int(10unsigned NOT NULL,
   
cookieuser smallint(6NOT NULL,
   
daysprune smallint(6NOT NULL,
   
lastvisit int(10unsigned NOT NULL,
   
lastactivity int(10unsigned NOT NULL,
   
lastpost int(10unsigned NOT NULL,
   
posts smallint(5unsigned NOT NULL,
   
karma smallint(5) DEFAULT '10' NOT NULL,
   
karmaability tinyint(1) DEFAULT '1' NOT NULL,
   
karmashow tinyint(1) DEFAULT '1' NOT NULL,
   
timezoneoffset varchar(4NOT NULL,
   
emailnotification smallint(6NOT NULL,
   
buddylist mediumtext NOT NULL,
   
ignorelist mediumtext NOT NULL,
   
pmfolders mediumtext NOT NULL,
   
receivepm smallint(6NOT NULL,
   
emailonpm smallint(6NOT NULL,
   
pmpopup smallint(6NOT NULL,
   
pmpopupfull smallint(6NOT NULL,
   
avatarid smallint(6NOT NULL,
   
options smallint(6) DEFAULT '15' NOT NULL,
   
birthday date DEFAULT '0000-00-00' NOT NULL,
   
maxposts smallint(6) DEFAULT '-1' NOT NULL,
   
startofweek smallint(6) DEFAULT '1' NOT NULL,
   
ipaddress varchar(20NOT NULL,
   
referrerid int(10unsigned NOT NULL,
   
nosessionhash smallint(6NOT NULL,
   
showleftcolumn smallint(6) DEFAULT '1' NOT NULL,
   
starlevel varchar(5NOT NULL,
   
starimg varchar(25NOT NULL,
   
messagepopup tinyint(2NOT NULL,
   
newsfader smallint(6NOT NULL,
   
receivebulletin smallint(5unsigned DEFAULT '1' NOT NULL,
   
inforum smallint(5unsigned NOT NULL,
   
award tinytext NOT NULL,
   
startedthreads smallint(5unsigned NOT NULL,
   
startedpubs smallint(5unsigned NOT NULL,
   
forumviewset varchar(250) DEFAULT '219|2:98|2:22|2:252|2:120|2:128|2:61|2:' NOT NULL,
   
downloads text NOT NULL,
   
storep int(9),
   
insurance varchar(20),
   
custompageviews int(20NOT NULL,
   
custompage mediumtext NOT NULL,
   
custompagename varchar(50NOT NULL,
   
enablecustompage smallint(5unsigned DEFAULT '1' NOT NULL,
   
bmallow smallint(6NOT NULL,
   
bmwarn int(10unsigned NOT NULL,
   
bmban int(10unsigned NOT NULL,
   
bmreported int(6unsigned NOT NULL,
   
timeonline int(10NOT NULL,
   
money smallint(5unsigned NOT NULL,
   
bank int(234unsigned NOT NULL,
   
savemt int(10unsigned NOT NULL,
   
warninglvl int(10NOT NULL,
   
arcadepass int(255NOT NULL,
   
journal smallint(6NOT NULL,
   
PRIMARY KEY (userid),
   
KEY usergroupid (usergroupid),
   
KEY username (username),
   
KEY referrerid (referrerid),
   
KEY inforum (inforum),
   
KEY referrerid_2 (referrerid)
); 
What can i delete and most importantly how can i delte em before running the query as obviously something here is causing the queries to rise beyond belief.

Cheers for any help.
Reply With Quote
  #2  
Old 10-21-2002, 10:38 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mr_P
Hope you can follow me on this one .

me tester board which is hack free is giving 25-27 queries as standard is that correct and thats with a clean install.
On what page? If it's index.php, it should be less than 20.

Quote:

Now i take the user table from my boards database (nothing else just the user table to get members name/passwprd/email etc)

Now the queries rise to 91
On what page of your forum? What file are you running to get this query number? Showthread.php?

Quote:

How is this possible with no hacks installed and is there hope for me to reduce the queries.I dont want all the members to have to re reg but i also dont want all them queries running esp when i aint installed any hacks.

Now remember this is a fresh install and all i want is the info from main board sucah as pass /email

but when i download the user table and run it as a query here is a list of what it runs.

PHP Code:
DROP TABLE IF EXISTS user;
CREATE TABLE user (
   
userid int(10unsigned NOT NULL auto_increment,
   
usergroupid smallint(5unsigned NOT NULL,
   
username varchar(50NOT NULL,
   
password varchar(50NOT NULL,
   
email varchar(50NOT NULL,
   
styleid smallint(5unsigned NOT NULL,
   
parentemail varchar(50NOT NULL,
   
coppauser smallint(6NOT NULL,
   
homepage varchar(100NOT NULL,
   
icq varchar(20NOT NULL,
   
aim varchar(20NOT NULL,
   
yahoo varchar(20NOT NULL,
   
signature mediumtext NOT NULL,
   
adminemail smallint(6NOT NULL,
   
showemail smallint(6NOT NULL,
   
invisible smallint(6NOT NULL,
   
usertitle varchar(250NOT NULL,
   
customtitle smallint(6NOT NULL,
   
joindate int(10unsigned NOT NULL,
   
cookieuser smallint(6NOT NULL,
   
daysprune smallint(6NOT NULL,
   
lastvisit int(10unsigned NOT NULL,
   
lastactivity int(10unsigned NOT NULL,
   
lastpost int(10unsigned NOT NULL,
   
posts smallint(5unsigned NOT NULL,
   
karma smallint(5) DEFAULT '10' NOT NULL,
   
karmaability tinyint(1) DEFAULT '1' NOT NULL,
   
karmashow tinyint(1) DEFAULT '1' NOT NULL,
   
timezoneoffset varchar(4NOT NULL,
   
emailnotification smallint(6NOT NULL,
   
buddylist mediumtext NOT NULL,
   
ignorelist mediumtext NOT NULL,
   
pmfolders mediumtext NOT NULL,
   
receivepm smallint(6NOT NULL,
   
emailonpm smallint(6NOT NULL,
   
pmpopup smallint(6NOT NULL,
   
pmpopupfull smallint(6NOT NULL,
   
avatarid smallint(6NOT NULL,
   
options smallint(6) DEFAULT '15' NOT NULL,
   
birthday date DEFAULT '0000-00-00' NOT NULL,
   
maxposts smallint(6) DEFAULT '-1' NOT NULL,
   
startofweek smallint(6) DEFAULT '1' NOT NULL,
   
ipaddress varchar(20NOT NULL,
   
referrerid int(10unsigned NOT NULL,
   
nosessionhash smallint(6NOT NULL,
   
showleftcolumn smallint(6) DEFAULT '1' NOT NULL,
   
starlevel varchar(5NOT NULL,
   
starimg varchar(25NOT NULL,
   
messagepopup tinyint(2NOT NULL,
   
newsfader smallint(6NOT NULL,
   
receivebulletin smallint(5unsigned DEFAULT '1' NOT NULL,
   
inforum smallint(5unsigned NOT NULL,
   
award tinytext NOT NULL,
   
startedthreads smallint(5unsigned NOT NULL,
   
startedpubs smallint(5unsigned NOT NULL,
   
forumviewset varchar(250) DEFAULT '219|2:98|2:22|2:252|2:120|2:128|2:61|2:' NOT NULL,
   
downloads text NOT NULL,
   
storep int(9),
   
insurance varchar(20),
   
custompageviews int(20NOT NULL,
   
custompage mediumtext NOT NULL,
   
custompagename varchar(50NOT NULL,
   
enablecustompage smallint(5unsigned DEFAULT '1' NOT NULL,
   
bmallow smallint(6NOT NULL,
   
bmwarn int(10unsigned NOT NULL,
   
bmban int(10unsigned NOT NULL,
   
bmreported int(6unsigned NOT NULL,
   
timeonline int(10NOT NULL,
   
money smallint(5unsigned NOT NULL,
   
bank int(234unsigned NOT NULL,
   
savemt int(10unsigned NOT NULL,
   
warninglvl int(10NOT NULL,
   
arcadepass int(255NOT NULL,
   
journal smallint(6NOT NULL,
   
PRIMARY KEY (userid),
   
KEY usergroupid (usergroupid),
   
KEY username (username),
   
KEY referrerid (referrerid),
   
KEY inforum (inforum),
   
KEY referrerid_2 (referrerid)
); 
What can i delete and most importantly how can i delte em before running the query as obviously something here is causing the queries to rise beyond belief.

Cheers for any help.
What do you mean by downloading the user table and running it as a query? Looking at your user table you have lots of custom hack columns, like the journal hack column, custom page column etc. So your database is not a clean install obviously.
Reply With Quote
  #3  
Old 10-21-2002, 11:23 PM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is a clean install Fresh install no hacks at all

the above is from the main board
The user table which i download seperate and re-add to the freshly installed board so members do not have to re-reg.

Queries show on main index page Erwin.

maybe im doing it wrong and its not possible to take the members on theri own from nother board and add them to a new install.I dont know these days LOL
Reply With Quote
  #4  
Old 10-21-2002, 11:26 PM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

basically what im trying to do is just to get the members from my main board without all the hacks etc is this possible.
As when i do it and download the user table as this is where members are stored i seem to bring all that junk with me as listed above.And in doing so bring the queries.
Reply With Quote
  #5  
Old 10-21-2002, 11:36 PM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry mods never noticed the PHP section does SQL problems as well.Can u move it there for me.
Thanks
Reply With Quote
  #6  
Old 10-22-2002, 12:17 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you are using an unhacked index.php? If you are, it doesn't matter about extra columns in the user table, the unhacked index.php won't be adding any additional queries.

Make sure the index.php is unhacked.
Reply With Quote
  #7  
Old 10-22-2002, 09:52 AM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep im using an unhacked board nothing added to the board fresh copy.

All i do is copy over the user table and i get an automated 92 queries from it.
Reply With Quote
  #8  
Old 10-23-2002, 11:54 PM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible for the user table to bring queries with it ?
Reply With Quote
  #9  
Old 10-24-2002, 04:45 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mr_P
is it possible for the user table to bring queries with it ?
No. When I uninstall hacks, I usually just take out the code in the PHP file and leave the extra tables and columns in my database (in case I reinstall the hacks). If the code doesn't query the database, there is no query. Which is why I am puzzled as to why you are getting so many queries with an unhacked index.php. Are you also using an unhacked global.php and phpincude template?
Reply With Quote
  #10  
Old 10-24-2002, 08:53 AM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin cheers for responce.

Yes i am using unhacked global.php and index.php.

This is a toal fresh copy no hacks whatsoever.
All i do is grab the sql table called Users from main board.
I run it on the fresh board and it runs fine.
Now when i go to the forum the queries has suddenly rose to 92.
Now this is what has puzzled me - like u say the table s etc are still there and should`nt be causing any queries at all but they must be on mine as i would`nt have that many queries.
I personaly dont think there is a fix for it and may be me out of luck and everyone may have to register again but i only posted here on the very faintest offchance someone may know of a way round like it.
Anyway cheers for feedback.
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 02:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06861 seconds
  • Memory Usage 2,347KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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