Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-05-2001 Last Update: Never Installs: 99
 
No support by the author.

This hack has been completely rewritten, i recommend that you simply uninstall this hack and install the new version. If you don't want to do that then this is what has changed.

Table structure of namelogs, drop and readd from install file and all the coding within member.php has changed. There has been NO template changes or changes in the admin panel.

This was written in 2.2.6 and worked fine with no problems.

Scott

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 11-08-2001, 01:51 PM
Matt's Avatar
Matt Matt is offline
 
Join Date: Oct 2001
Location: UK
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyway of stopping banned users with over the amount of posts from changing their name?
Reply With Quote
  #83  
Old 11-08-2001, 02:27 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #84  
Old 11-08-2001, 08:33 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

excellent hack!
Reply With Quote
  #85  
Old 11-23-2001, 03:13 PM
|DarkManX|'s Avatar
|DarkManX| |DarkManX| is offline
 
Join Date: Oct 2001
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

getting this error....

Parse error: parse error in /home/***/public_html/tof/member.php on line 1467
Reply With Quote
  #86  
Old 11-23-2001, 03:50 PM
|DarkManX|'s Avatar
|DarkManX| |DarkManX| is offline
 
Join Date: Oct 2001
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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")."\";");


dumb mistake on my part......great hack PPN
Reply With Quote
  #87  
Old 11-27-2001, 02:08 AM
Syphin Syphin is offline
 
Join Date: Oct 2001
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #88  
Old 11-27-2001, 05:26 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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); 
Reply With Quote
  #89  
Old 11-29-2001, 04:14 PM
Syphin Syphin is offline
 
Join Date: Oct 2001
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..


*and sry for the late reply*

-Syphin
Reply With Quote
  #90  
Old 12-09-2001, 02:48 AM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Name...logging?
Reply With Quote
  #91  
Old 12-09-2001, 03:21 PM
Shadowz Shadowz is offline
 
Join Date: Dec 2001
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack!!!

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:12 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06007 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete