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)

Cold Steel 09-21-2002 02:42 PM

Bump.

azork 10-06-2002 11:24 PM

Another question: is it possible to have as an option the pm system: some members receib=ve a mass of private messages and don't want it :/

bouncer18 10-14-2002 04:36 AM

Invalid SQL: UPDATE store SET sold=sold+1 WHERE id=
mysql error: You have an error in your SQL syntax near '' at line 1

any ideas?

influence 11-03-2002 03:30 PM

where is the +++++.gif graphic at?

girlzclan 11-10-2002 02:14 AM

I just installed this hack last night and my forum members absolutley LOVE IT!!

5 stars :) *****

darker1 11-13-2002 04:52 PM

quick question:

ADMINID = the forums administrator id, or create a new users called adminid and use that id?

vdinh 11-13-2002 06:20 PM

Quote:

Originally posted by darker1
quick question:

ADMINID = the forums administrator id, or create a new users called adminid and use that id?

It's the forum's adinistrator id. It won't have to be your super admin's id. Any admin id will do.

supersimon 11-16-2002 06:23 PM

Database error in vBulletin 2.2.7:

Invalid SQL: UPDATE user SET storep=storep+1000, WHERE userid='1'
mysql error: You have an error in your SQL syntax near 'WHERE userid='1'' at line 1

mysql error number: 1064

Date: Saturday 16th of November 2002 03:22:37 PM
Script: http://www.liquidflo.com/rap/rap/store.php
Referer: http://www.liquidflo.com/rap/store.php
help anyoen ???

supersimon 11-16-2002 07:30 PM

last problem solved!!!
now i get this one ??? lol


Database error in vBulletin 2.2.7:

Invalid SQL: INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid,receipt) VALUES (NULL,195,195,DMINID,'Crime','lockdown!

Sorry, you were robed for the sum 1000.


Quote:

It was very smart robbery! We didn\'t take them.
',1037482017,'LiquidFLO','',0,0,0)
mysql error: Unknown column 'DMINID' in 'field list'

mysql error number: 1054

and it steals teh persons money but it just gives me this message


Date: Saturday 16th of November 2002 04:26:57 PM
Script: http://www.liquidflo.com/rap/rap/store.php
Referer: http://www.liquidflo.com/rap/store.php

Kars10 11-16-2002 08:32 PM

This Hack is great!!
/me klicks install!

Kars10 11-17-2002 11:01 AM

Damn, when i try to steal from someone ill get a parse error.
The message (sucsess or not) appears and over the header of the forum stands this text:
Code:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/www/web7/html/area/store.php(1488) : eval()'d code on line 3
Please help me... :(

Kars10 11-17-2002 12:25 PM

...i believe it must be this line:
Code:

$money = $moneycheck[storep];
 eval("\$message = \"".gettemplate("email_steal",1,0)."\";");


Any Idea??? Where the PHP-Gurus on VB.org?? ;)

Kars10 11-21-2002 09:48 AM

Now the error went away!!
But the Private-Message only shows the Title and not the message??
My email-steal templates are correct....

Attached: Store.php

ad_uk6565 11-29-2002 04:48 AM

this is a great hack, the instructions are confusing as hell...and could be way easier to install, but once you get it figured out, it's awesome, great job :D

vdinh 01-08-2003 07:10 PM

Quote:

Originally posted by GenSec
You can't to prevent sophisticated user to use back button. But you can invent some rules. In the above case user can redoing steal up to he lost his money. To close Quick Reply box you should insert in Quick Reply hack the same string as for regular Newreply.php.

Frankly, I'm changing my pickpocketing rules to absolutely another direction, creating special thief clan.

I have been so frustrated with users using the BACK button to keep stealing although they don't have enough money at that time. Finally I figured out this code which an admin can add to the 3 templates store_steal_lookup, store_steal_accept, and store_steal_money:

< script language="JavaScript" >
history.go(1);
< /script >

Note: remove the spaces in the script tags

vdinh 01-09-2003 03:56 PM

Sorry ... wrong place.

jayneblaze 01-16-2003 01:52 AM

Well I have the Mafia and the insurance working but how do I fix

Quote:

Database error in vBulletin 2.2.9:

Invalid SQL: UPDATE user SET storep=storep+5, WHERE userid='2'
mysql error: You have an error in your SQL syntax near 'WHERE userid='2'' at line 1

mysql error number: 1064

Hiob 01-16-2003 02:12 PM

Quote:

Originally posted by supersimon
..... 195,DMINID,'Crime','....

just correct DMINID to ADMINID and replace it with you id :)
a few times in the store.php!

have fun

Hiob

underburn 01-28-2003 06:13 PM

PHP Code:

Error

SQL
-query :  

INSERT INTO store
VALUES 
(

NULL 'steal''Crime and punishment''0''0''thief.gif''It is not caught - not the thief''Y'


MySQL said


Column count doesn't match value count at row 1

Back 

For Some Reason I Cant run the queries... I tried running them through PHP My admin and the vB Addon (made by JamesUS) for running queries through the admin CP, none work :'(

Please Help :bunny:

.:.NetStartz.:. 02-03-2003 01:26 AM

I really want to install this hack, but after reading the 12 pages of tons of errors I was wondering if a final fix would be made available with all the corrections.

threadcrapper 02-17-2003 05:29 PM

with the store 2.0 hack need to change the quieries to:

PHP Code:

INSERT INTO store VALUES (NULL'steal''Crime and punishment''0''0''thief.gif''It is not caught - not the thief''Y''0');
INSERT INTO store VALUES (NULL'mafia''Safeguard''100''0''godfather.gif''We protect your money''Y''0');
INSERT INTO store VALUES (NULL'insurance''Insurance''100''0''insurance.gif''Buy insurance''Y''0'); 

there is a new colum in 2.0 (Qty)

threadcrapper 02-17-2003 06:29 PM

installed --

members are loosing thier minds :)

dnd 02-18-2003 03:50 PM

having the same problem wich cold steal had with the quick reply hack
any help?

Quote:

Originally posted by Cold Steel
I have the store hack and the pickpocket hack installed.

Users who shouldn't be able to post, still can, via this hack. Is there anyway to edit showthread.php around it?

I got it so that those "in prison" couldn't even view the thread, but all I want to do is change it so they can't see the quick reply box.


dnd 02-23-2003 07:39 PM

i wonder if what i did was right

in showthread.php the code of QR was :

PHP Code:

if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
  
show_nopermission();
}

if ((
$bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
    
$replybox='';
} elseif (!
$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
    
$replybox='';
} elseif (!
$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
    
$replybox='';
} else {
    
$textareacols gettextareawidth();
    eval(
"\$replybox = \"".gettemplate('showthread_replybox')."\";");
}

if ((!isset(
$pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  
$pagenumber=1;




i changed it to

PHP Code:

if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
  
show_nopermission();
}

if ((
$bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
    
$replybox='';
} elseif (!
$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
    
$replybox='';
} elseif (!
$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
    
$replybox='';
} elseif(
$bbuserinfo[storep]<0) {
             eval(
"standarderror(\"".gettemplate('error_prizon')."\");");
    } else {
    
$textareacols gettextareawidth();
    eval(
"\$replybox = \"".gettemplate('showthread_replybox')."\";");



Darnell 0216 03-11-2003 12:05 AM

I just installed the hack and besides the aforementioned 'bad english' and store 2.0 changes for the queries I've had no problems less one (not an interference, but as someone mentioned it appears above the header):

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/virtual/site14/fst/var/www/html/forums/store.php(1408) : eval()'d code on line 3

And my PHP editor says this when I reach that line:

mixed eval (string code_str)

auz1111 03-17-2003 04:50 PM

Quote:

05-26-02 at 09:12 PM Blue2000 said this in Post #72


ok i have done this one myself..

for anyone who wants it


find in functions.php

PHP Code:

    if (($bbuserinfo[usergroupid]==6)) {
        
$donate="<br><a href=\"javascript:showwin('admin/storeadmin.php?action=givemoneyverify&giveusername=$post[username]', 'width=550,height=250')\">Donate to user</a>";
    } else {
        
$donate='';
    } 

add under

PHP Code:

$nick="<a href=\"javascript:showwin('store.php?action=stealmoney&stealusername=$post[username]', 'width=550,height=550')\">Try to steal $$</a>"

and then add

$nick

anywhere you want it in your postbit template

1. I am having trouble stealing in sub forums with this code. any help appreciated

2. Is there any way to make a stats page where u can see who is stealing the most.

auz1111 03-17-2003 05:17 PM

one more thing... how can you change who sends out the PM when someone steals. I would like to add a police man to the board who sends out the PMs. thanks

Darnell 0216 03-18-2003 03:23 AM

Quote:

Yesterday at 02:17 PM auz1111 said this in Post #187
one more thing... how can you change who sends out the PM when someone steals. I would like to add a police man to the board who sends out the PMs. thanks
Create a new user that's going to be your police man. Everywhere you were told to place AdminID, place the userid of the police account instead.

auz1111 03-18-2003 03:28 AM

ok. i should have known that huh... thanks Darnell

dbroomjr 04-13-2003 02:49 AM

After fighting with it for an hour and reading every post here, it is working like a champ...Actually it is the users favorite on my board...I have a bunch of thieves.. lol

dbroomjr 04-13-2003 07:37 PM

:confused: Some of the members get the message that they can't steal even though they have 500 points. While others with only 100 points can steal. Any idea on what to check for these members that it is giving the messages to that have the necessary points, but still get the message?

Thanks,

David

dbroomjr 04-15-2003 01:54 AM

Quote:

Yesterday at 03:31 PM dbroomjr said this in Post #191
:confused: Some of the members get the message that they can't steal even though they have 500 points. While others with only 100 points can steal. Any idea on what to check for these members that it is giving the messages to that have the necessary points, but still get the message?

Thanks,

David

Nevermind, I figured out the problem. Even though they had the money, they didn't have enough post to steal.

Darnell 0216 05-03-2003 12:44 AM

Quote:

04-14-03 at 10:54 PM dbroomjr said this in Post #192
Nevermind, I figured out the problem. Even though they had the money, they didn't have enough post to steal.
Just for future reference there are grammatical errors and a custom template or two may be necessary since some of the restrictions link to the wrong template or a wrongly worded template. This is why alot of people are encountering the "I have x posts/dollars can't steal while someone can. Those who know their way around templates and PHP should go through the references in the coding so they know what's what and make the necessary corrections to the templates wording.

Koutaru 05-04-2003 08:54 PM

I have a request:

What code changes are neccessary in order to have a user steal only if the user they're stealing from is on the same page? Like they're browsing the same thread. It doesn't make sense to steal from a user that isn't even there when you're on.

:) thanks

KISS 05-14-2003 10:29 PM

Ok i dont know what is wrong at all....I copy that whole big thing and change all the insuranceid to 6, which is the number of the insurance user, and 7 for the godfather,and so we just put the correct number in for the 3 users right? ok if I did that right, there isn't anything eles for me to messup...because I go to the store and press to buy insurance and this error comes up but when I try to steal, it says I'm too young...does anybody know what could be wrong....and here is the error

Database error in vBulletin 2.3.0:

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

mysql error number: 1054

Date: Wednesday 14th of May 2003 07:25:41 PM
Script: http://Htownholla.com//store.php?action=mafia
Referer: http://htownholla.com/store.php?action=main

Cicada 05-15-2003 09:16 AM

i dont quite understand how to install this hack, and from reading aobut all the errors im not sure i want to install it :/

Darnell 0216 05-17-2003 07:08 PM

Quote:

05-14-03 at 07:29 PM KISS said this in Post #195
... but when I try to steal, it says I'm too young...does anybody know what could be wrong....and here is the error

Database error in vBulletin 2.3.0:

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


Part 1: Trying to steal: Like I mentioned earlier, some of the template replies are worded wrong or wrongly linked. Double check the # of post needed AND the amount of cash you have when you try to steal. Both affect your response.
Part 2: SQL Error: Your error says it all. Did you make sure to run the three necessary queries? If you don't have an insurance field, you didn't run the query or you typed it in wrong and ended up with a field named something else. This has nothing to do with the insurance user.

Quote:

05-15-03 at 06:16 AM Cicada said this in Post #196
i dont quite understand how to install this hack, and from reading aobut all the errors im not sure i want to install it :/
There are all in all only two actual errors. The ADMINID being referred to as DMINID and the queries that have to be changed according to the store version you're using. Other than that it's a great hack.

kaotic 06-01-2003 12:43 AM

Okay, I'm using the latest store hack right now. Is this hack going to cause errors with it?

jayneblaze 06-08-2003 05:39 AM

it lets me steal or not steal but it does not award or take away money

Roxie 06-29-2003 12:45 AM

What happened to gensec? He was dang helpful. :)


All times are GMT. The time now is 12:53 AM.

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.02684 seconds
  • Memory Usage 1,866KB
  • 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_code_printable
  • (6)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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