vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Store Hack (https://vborg.vbsupport.ru/showthread.php?t=41300)

wolfe 07-20-2002 03:12 PM

Store Hack
 
what the problem is i got VBB 2.2.0 and the Store hack is for VBB 2.2.4

but everything edits ok apart from this bit in the member.php i can find what to replace :D

please help

PHP Code:

OPEN ROOT/member.php(look twice on the instructions)
**********************************

Find (around line 960):

if (
$avatarid==and (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts)) {
      
// using custom avatar
      
$filename="";

      if (
$bbuserinfo['posts']<$avatarcustomposts) {
        eval(
"standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
        
// not enough posts error
        
exit;
      }

CHANGE it to:

  
    if (
$avatarid==and ($avatarallowupload or $avatarallowwebsite)) {
    
      
// using custom avatar
      
$filename="";

      if (isset(
$storeavatar)) {
      
$lala="";
      } else {
      if (
$bbuserinfo['posts']<$avatarcustomposts) {
        eval(
"standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
        
// not enough posts error
        
exit;
      }


tried changing

PHP Code:


  
if ($useavatar) {
    if (
$avatarid==0) {
      
// using custom avatar
      
$filename="";

      if (
$bbuserinfo['posts']<$avatarcustomposts) {
        eval(
"standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
        
// not enough posts error
        
exit;
      }


to:

  
    if (
$avatarid==and ($avatarallowupload or $avatarallowwebsite)) {
    
      
// using custom avatar
      
$filename="";

      if (isset(
$storeavatar)) {
      
$lala="";
      } else {
      if (
$bbuserinfo['posts']<$avatarcustomposts) {
        eval(
"standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
        
// not enough posts error
        
exit;
      }


but got an error

also i can't find

PHP Code:


Find 
(around line 1001):

} elseif (
$avatarallowupload and $bbuserinfo[posts] >= $avatarcustomposts) {

CHANGE it to:

} elseif (
$avatarallowupload) { 

and another problem is that the hack was working great for a while now when new members sign up the storep in the user table of the DB goes to NULL :( please help me out :D

shovel 07-20-2002 08:59 PM

&nbsp;&nbsp;&nbsp;&nbsp;First off, I'd consider upgrading. Also, do you have a PHP editor that has a search feature? If so just search for this one line and then you'll have to replace it:
PHP Code:

if ($avatarid==and (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts)) { 


E 07-20-2002 11:46 PM

and if u cant do that, copy it all too wordpad and search for it there

wolfe 07-21-2002 02:36 AM

i will upgrade then to VBB 2.2.4 :D


All times are GMT. The time now is 11:42 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.00964 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete