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)
-   -   An alternative to banning: Miserable Users (https://vborg.vbsupport.ru/showthread.php?t=49810)

Boofo 03-16-2003 05:50 PM

Shouldn't that be?

PHP Code:

$DB_site->query("alter table user add miserable smallint(5) unsigned DEFAULT '0' NOT NULL;"); 


Zzed 03-16-2003 05:54 PM

I thought numeric fields are not required to be quoted but you can still quote them if you want.

Boofo 03-16-2003 06:09 PM

I don't think they are required but there are a lot of users who get db errors without them sometimes. So, it is usually better to just use them and avoid all of the "Why did I get this db error?" messages. ;)

And where is my "fix" you promised me? I'm shaking here, Zzed! ;)

Zachery 03-17-2003 02:45 AM

so i take it the changes to the mysql db are to make the user group? cuz i am abit confused about how this works

-btw still havent had time to install

Zzed 03-17-2003 05:36 AM

Quote:

Today at 08:45 PM Faranth said this in Post #86
so i take it the changes to the mysql db are to make the user group? cuz i am abit confused about how this works


-btw still havent had time to install


No. The hack adds a new field to the user table to indicate whether a user is miserable or not. The default value for miserable is 0. When a user is made miserable a value of 1 is assigned to the miserable field. ;)

Hippycrack 03-17-2003 05:48 AM

I'm still very new at hacking and I'm have a problem with this

################################################## ##########

From the MySQL prompt execute the following statement:

alter table user add miserable smallint(5) unsigned DEFAULT 0 NOT NULL;

################################################## ##########

I Create a new ,php file in your forums directory and copy the following lines in there. Save the file, execute it one time

PHP:

<?php

error_reporting(7);

require("./global.php");

$DB_site->query("alter table user add miserable smallint(5) unsigned DEFAULT 0 NOT NULL;");

?>

***and I got this error message.

Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in /www/n/nOpenworldz/htdocs/miserable.php on line 16

What do I do from here?

Zzed 03-17-2003 06:13 AM

What is the URL to your forums?

That file should be placed in the same directory that the URL points to.

midnightz 03-17-2003 11:36 AM

Hello,

Is there a fix for this hack to work with the arcade hack. It seems that the $postbits .=getpostbit($post); is where the problem is in the showthread.php. The arcde hack starts there, I tried some get arounds but had no luck, it makes your posts error with and not show up. i asked one person I know and they said they couldn't see a fix.

Helpers :)

midz

lordofgun 03-17-2003 09:04 PM

Quote:

Today at 08:36 AM midnightz said this in Post #88
Hello,

Is there a fix for this hack to work with the arcade hack. It seems that the $postbits .=getpostbit($post); is where the problem is in the showthread.php. The arcde hack starts there, I tried some get arounds but had no luck, it makes your posts error with and not show up. i asked one person I know and they said they couldn't see a fix.

Helpers :)

midz

I had the same prob. I just took that part out since i didn't care about having the arcade icons in the showthread. The arcade still works fine.

Zachery 03-18-2003 01:08 AM

do you have to manually change the data in the mysql db to make them a miserable user?


All times are GMT. The time now is 07:03 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.01367 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)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