vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Pickpocket in Lesane Store (https://vborg.vbsupport.ru/showthread.php?t=38383)

GenSec 05-20-2002 04:20 PM

Quote:

Originally posted by Roxie
The only line that is similar to that is :

Quote:

if ($bbuserinfo[posts]<5 {
// don't allow new users to steal -- they need to have more than $100!

I changed to 5, still not working.

Did you change it to
Quote:

if ($bbuserinfo[posts]<5) {
in both two places?

Roxie 05-20-2002 05:07 PM

This is what I have:

Quote:

// ###################### Start steal Lookup ###########
if ($action=="steal") {
if ($bbuserinfo[posts]<50) { // victim should have more than $50
eval("standarderror(\"".gettemplate('store_steal_c annot')."\");");
}
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");
$storeid=$contest[id];
$title=$contest[title];
$cost=$contest[costs];
eval("dooutput(\"".gettemplate("store_steal_lookup ")."\");");
}
// ###################### Start steal How Much? #######################
if ($action=="stealmoney") {
if ($bbuserinfo[posts]<5) { // don't allow new users to steal -- they need to have more than $100!
eval("standarderror(\"".gettemplate('store_steal_c annot')."\");");
}
$getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep,usergroupid FROM user WHERE username='".addslashes(htmlspecialchars($stealuser name))."'");
if ($getduser[storep]<50) { // victim should have more than $100
eval("standarderror(\"".gettemplate('store_steal_p oor')."\");");
}
if ($getduser[usergroupid]=="6") { // don't steal from admin
eval("standarderror(\"".gettemplate('store_givetit le_noadmin')."\");");
}
if (empty($getduser[username])) {
eval("standarderror(\"".gettemplate('store_donate_ dontexist')."\");");
}
else {
$storeadmin = $DB_site->query_first("SELECT * FROM storeadmin");
$storename=$storeadmin[storename];
$pointname=$storeadmin[pointname];
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");

eval("dooutput(\"".gettemplate("store_steal_money" )."\");");
}
}


GenSec 05-20-2002 05:20 PM

Roxie
I'm on your board
Let's tune it right there

ULTIMATESSJ 05-20-2002 06:06 PM

i'm still getting this error

Database error in vBulletin 2.2.5:

Invalid SQL: UPDATE user SET storep=storep-100,KARMA=KARMA-20 WHERE userid='1'
mysql error: Unknown column 'KARMA' in 'field list'

mysql error number: 1054

Date: Monday 20th of May 2002 03:03:52 PM
Script: http://www.animexplosion.com/forums/forums/store.php
Referer: http://www.animexplosion.com/forums/store.php

I have the karma hack installed

GenSec 05-20-2002 06:12 PM

Quote:

Originally posted by ULTIMATESSJ
i'm still getting this error

Database error in vBulletin 2.2.5:

Invalid SQL: UPDATE user SET storep=storep-100,KARMA=KARMA-20 WHERE userid='1'
mysql error: Unknown column 'KARMA' in 'field list'

mysql error number: 1054

Date: Monday 20th of May 2002 03:03:52 PM
Script: http://www.animexplosion.com/forums/forums/store.php
Referer: http://www.animexplosion.com/forums/store.php

I have the karma hack installed

Do you have in user table the field "KARMA"?

ULTIMATESSJ 05-20-2002 08:13 PM

Quote:

Originally posted by GenSec

Do you have in user table the field "KARMA"?

if u mean in phpmyadmin, no i don't

GenSec 05-21-2002 05:18 AM

Then use nokarma version.
There are a lot of karma hacks. In my case table user includes field with name KARMA. If you have any other similar field (points, rating... etc.) try to change KARMA to this one.

ULTIMATESSJ 05-21-2002 02:26 PM

Quote:

Originally posted by GenSec
Then use nokarma version.
There are a lot of karma hacks. In my case table user includes field with name KARMA. If you have any other similar field (points, rating... etc.) try to change KARMA to this one.

can you explain what i gotta do then, sorry bout this but i am a compete newbie at this stuff

GenSec 05-21-2002 02:56 PM

Just delete
PHP Code:

,KARMA=KARMA-$priz 

everywhere from queries.

Or try to find in your karma hack what field was added to user table. Look instrustions to your hack.

Roxie 05-21-2002 10:11 PM

All of a sudden it stopped working for me. It let's me put in the name to steal from but then it says I am too young> :(


All times are GMT. The time now is 06:31 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.01218 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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