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)
-   -   Change Username via UserCP v2.0 (https://vborg.vbsupport.ru/showthread.php?t=24722)

Matt 11-08-2001 01:51 PM

Anyway of stopping banned users with over the amount of posts from changing their name?

Scott MacVicar 11-08-2001 02:27 PM

I haven't really had time to do more work on name logging, as far as i knew banned users shouldn't be even able to view the board never mind change their username.

Will do work on name logging tonight after working on my backend a bit more.

heretic 11-08-2001 08:33 PM

excellent hack!

|DarkManX| 11-23-2001 03:13 PM

getting this error....

Parse error: parse error in /home/***/public_html/tof/member.php on line 1467

|DarkManX| 11-23-2001 03:50 PM

ok i got it

what i did was instead of pasting this

if ($bbuserinfo[posts] >= $postuserchange) {
$oldnames=$DB_site->fetch_array($DB_site->query("SELECT * FROM namelogs WHERE userid='$bbuserinfo[userid]'"));
$diff = time() - $oldnames[lastchange];
$limit = (86400 * $dayuserchange);
if ($diff > $limit) {
eval("\$changeuser = \"".gettemplate("changeuser")."\";");
}
}


i pasted this

if ($bbuserinfo[posts] >= $postuserchange) {
$oldnames=$DB_site->fetch_array($DB_site->query("SELECT * FROM namelogs WHERE userid='$bbuserinfo[userid]'"));
$diff = time() - $oldnames[lastchange];
$limit = (86400 * $dayuserchange);
if ($diff > $limit) {
eval("\$changeuser = \"".gettemplate("changeuser")."\";");


:rolleyes: dumb mistake on my part......great hack PPN :)

Syphin 11-27-2001 02:08 AM

I keep getting this error when i change user names:

Warning: Argument to array_reverse() should be an array in /***/***/***/***/***/***/***/member.php on line 459


And this is whats on that line:

PHP Code:

      $DB_site->query("UPDATE user SET username='".addslashes(htmlspecialchars($username))."' WHERE userid='$bbuserinfo[userid]'");
      if (
$oldnames=$DB_site->fetch_array($DB_site->query("SELECT * FROM namelogs WHERE userid='$bbuserinfo[userid]'"))) {
        
$oldnames array_reverse($oldnames);
        
$oldnames explode("<~>"$oldnames[usernames]);
        if (
count($oldnames) >= 5) {
          
$oldestuser array_shift($oldnames);
          
array_splice($oldnames,4,4addslashes($bbuserinfo[username]));
        }
        else {
          
array_push($oldnames,addslashes($bbuserinfo[username]));
        }
        
$oldusers implode($oldnames"<~>");
        
$oldusers array_reverse($oldusers);   <<**>> LINE 459 <<**>>
        
$DB_site->query("UPDATE namelogs SET usernames='".addslashes($oldusers)."',lastchange='".time()."' WHERE userid='$bbuserinfo[userid]'");
      }
      else {
        
$DB_site->query("INSERT INTO namelogs (userid, usernames,lastchange) VALUES ('$bbuserinfo[userid]','".addslashes(htmlspecialchars($bbuserinfo[username]))."', '".time()."')");
      }
      
$bbuserinfo[username] = $username;
    }
  } 


Any Ideas? =/


-Syphin

Scott MacVicar 11-27-2001 05:26 PM

hmm documentation wrong?
PHP Code:

$oldnames array_reverse($oldnames);
        
$oldnames explode("<~>"$oldnames[usernames]); 

these lines are the wrong way round, should be

PHP Code:

 $oldnames explode("<~>"$oldnames[usernames]);
       
$oldnames array_reverse($oldnames); 


Syphin 11-29-2001 04:14 PM

thnx... =)

I have no clue how i messed that up tho.. lol it also said implode instead of explode... >_< oh wel, all is good now.. thnx.. :p


*and sry for the late reply*

-Syphin

DarkReaper 12-09-2001 02:48 AM

Name...logging? :(

Shadowz 12-09-2001 03:21 PM

Great Hack!!!

I was wondering can I just offer this feature to just a certaint user group?


All times are GMT. The time now is 07:23 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.01220 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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