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)

vB-Host.com 06-06-2003 11:05 PM

/me bumps thread

Since I installed this I can't do anything with a user in the admin cp.. I have someone who lost there password and no longer has the e-mail address they registered with and when I go to update his password I get the same error as above.. please help!

legendarysk8er 06-07-2003 12:09 AM

What a great idea, make them suffer! I might install this later if I feel like it..

superman 06-07-2003 10:55 PM

Must try this, it's a good idea, so the user thinks he isn't banned, then won't make a new acc, cool :D

KelteN 06-08-2003 07:29 AM

Nice Hack!

Zzed 06-10-2003 09:15 PM

Thank you guys for all your kind words. :)

Steve W. 06-13-2003 06:55 AM

In the instructions it says to find:

Quote:

while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {

if ($postdone[$post[postid]]) {
$counter--;
continue;
} else {
$postdone[$post[postid]]=1;
}
$postbits .= getpostbit($post);
}
Instead of that, I have:

Quote:

while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {

if ($postdone[$post[postid]]) {
$counter--;
continue;
} else {
$postdone[$post[postid]]=1;
}

$post[postcount] = ++$postcount;
$post[totalposts] = $totalposts;
$postbits .= getpostbit($post);
}
Probably ebcause of another installed hack. Is there any way I can add the info to what I have already?

Steve W. 06-13-2003 07:01 AM

Oh, and instead of:

Quote:

$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".addslashes(htmlspecia lchars($ausername))."'$pwdinclude,email='".addslas hes(htmlspecialchars($email))."',styleid='$usersty leid',parentemail='".addslashes(htmlspecialchars($ parentemail))."',coppauser=$coppauser,homepage='". addslashes(htmlspecialchars($homepage))."',icq='". addslashes(htmlspecialchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))."',signature='".addsl ashes($signature)."',adminemail=$adminemail,showem ail=$showemail,invisible=$invisible,usertitle='".a ddslashes($usertitle)."',customtitle=$customtitle, joindate=$joindate,cookieuser=$cookieuser,nosessio nhash=$nosessionhash,daysprune='$daysprune',lastvi sit=$lastvisit,lastactivity=$lastactivity,lastpost =$lastpost,posts='$posts',timezoneoffset='$timezon eoffset',emailnotification=$emailnotification,rece ivepm='$receivepm',emailonpm='$emailonpm',ipaddres s='".addslashes($aipaddress)."',pmpopup=IF(pmpopup =2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");
I have:

Quote:

$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".addslashes(htmlspecia lchars($ausername))."'$pwdinclude,email='".addslas hes(htmlspecialchars($email))."',styleid='$usersty leid',parentemail='".addslashes(htmlspecialchars($ parentemail))."',coppauser=$coppauser,homepage='". addslashes(htmlspecialchars($homepage))."',icq='". addslashes(htmlspecialchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))."',signature='".addsl ashes($signature)."',adminemail=$adminemail,showem ail=$showemail,invisible=$invisible,usertitle='".a ddslashes($usertitle)."',customtitle=$customtitle, joindate=$joindate,cookieuser=$cookieuser,nosessio nhash=$nosessionhash,daysprune='$daysprune',lastvi sit=$lastvisit,lastactivity=$lastactivity,lastpost =$lastpost,posts='$posts',profileview='$profilevie w',timezoneoffset='$timezoneoffset',emailnotificat ion=$emailnotification,receivepm='$receivepm',emai lonpm='$emailonpm',ipaddress='".addslashes($aipadd ress)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");
:(

pdblizzard 06-13-2003 03:20 PM

Zzed, I just installed this hack and I have to tell you, it's awesome! You have just reduced my stress level about 10000%. My offline family thanks you for that! :ogre:

Even though it works, I must have done something wrong though. I can get around it by making the change to the user "miserable" field directly in the database, but maybe you can tell me what I did wrong.

When I use the user.php page to click them "on" to miserable, and then update, the change doesn't actually save in the database. I get no error message. The database field "miserable" is not changed.

Everything else works fine however, when I update the field manually. Any thoughts?

(YOU ROCK!)

Zzed 06-13-2003 05:52 PM

Steve make it look like this ;)

Quote:

while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {

if ($postdone[$post[postid]]) {
$counter--;
continue;
} else {
$postdone[$post[postid]]=1;
}

$post[postcount] = ++$postcount;
$post[totalposts] = $totalposts;

$onlinestat = "";
if(($post[miserable] == 1) || ($post[stunned] & 4)){
if(($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) {
$onlinestat = "$onlinestat<br><font color=\"red\"><b>Miserable User</b></font>";
}
}

$post[posts]="$post[posts]$onlinestat";

$postbits .= getpostbit($post);
}
Quote:

$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".addslashes(htmlspecia lchars($ausername))."'$pwdinclude,email='".addslas hes(htmlspecialchars($email))."',styleid='$usersty leid',parentemail='".addslashes(htmlspecialchars($ parentemail))."',coppauser=$coppauser,homepage='". addslashes(htmlspecialchars($homepage))."',icq='". addslashes(htmlspecialchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))."',signature='".addsl ashes($signature)."',adminemail=$adminemail,showem ail=$showemail,invisible=$invisible,usertitle='".a ddslashes($usertitle)." ',customtitle=$customtitle,joindate=$joindate,cook ieuser=$cookieuser,nosessionhash=$nosessionhash,da ysprune='$daysprune',lastvisit=$lastvisit,lastacti vity=$lastactivity,lastpost=$lastpost,posts='$post s',profileview='$profileview', timezoneoffset='$timezoneoffset',emailnotification =$emailnotification,receivepm='$receivepm',emailon pm='$emailonpm',ipaddress='".addslashes($aipaddres s)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup'), miserable=$miserable WHERE userid=$userid");

Zzed 06-13-2003 05:56 PM

Quote:

Today at 09:20 AM pdblizzard said this in Post #148
Zzed, I just installed this hack and I have to tell you, it's awesome! You have just reduced my stress level about 10000%. My offline family thanks you for that! :ogre:

Even though it works, I must have done something wrong though. I can get around it by making the change to the user "miserable" field directly in the database, but maybe you can tell me what I did wrong.

When I use the user.php page to click them "on" to miserable, and then update, the change doesn't actually save in the database. I get no error message. The database field "miserable" is not changed.

Everything else works fine however, when I update the field manually. Any thoughts?

(YOU ROCK!)

Thank you for your kind words. :)

Check your pm's please. :)


All times are GMT. The time now is 08:17 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.01403 seconds
  • Memory Usage 1,753KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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