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)

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


All times are GMT. The time now is 02:26 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.01276 seconds
  • Memory Usage 1,771KB
  • 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
  • (5)bbcode_php_printable
  • (3)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