Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Search user by userid in AdminCP Details »»
Search user by userid in AdminCP
Version: 1.00, by mtha mtha is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 06-27-2004 Last Update: Never Installs: 15
 
No support by the author.

=============================================
Search user by userid in AdminCP
=============================================

Support Vbulletin version: 3.0.1

Features:
This tiny hack allows you to search user by userid in AdminCP, when using "Search for Users"
/forum/admincp/user.php?do=modify
It will only find the exact userid input

File to edit: 1
includes/adminfunctions_user.php

Difficulty: Very easy

=============================================
Screenshot: attached

Installation: attached

Show Your Support

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

Comments
  #12  
Old 07-15-2004, 05:57 PM
marcel-ea marcel-ea is offline
 
Join Date: Oct 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry safe this as user_s_id.php in you admincp folder

Quote:
<?php

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile: user.php,v $ - $Revision: 1.236 $');
define('NO_REGISTER_GLOBALS', 1);
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('cpuser', 'forum', 'timezone', 'user');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
require_once('./includes/adminfunctions_profilefield.php');
require_once('./includes/adminfunctions_user.php');
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminusers'))
{
print_cp_no_permission();
}
// ############################# LOG ACTION ###############################
log_admin_action(iif($_REQUEST['userid'] != 0, 'user id = ' . $_REQUEST['userid']));
// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
print_cp_header("Suchen nach UserID");
$user_res = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "user AS user WHERE userid='$_REQUEST[userid_s]' ORDER by userid DESC");

while($user_row = $DB_site->fetch_array($user_res)){
echo "
<table cellpadding=\"4\" cellspacing=\"0\" border=\"0\" align=\"center\" width=\"90%\" class=\"tborder\">
<tr>
<td class=\"alt1\" colspan=\"2\"><div class=\"smallfont\"><div style=\"float: right;\"><a href=\"user.php?do=edit&userid=$user_row[userid]\">Bearbeiten</a></div></div><div class=\"normalfont\"><b
>$user_row[username]</b></div></td>
</tr>
</table>
<br />";
}
print_cp_footer();

?>
Reply With Quote
  #13  
Old 09-09-2004, 05:55 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the txt file OK? I download it tonight and it cannot be opened by my editor.

I used Notepad and it has some text in there, but I can't read it properly.

Rgds

-----
John

CANCEL THAT, I FIGURE IT OUT.
Reply With Quote
  #14  
Old 09-10-2004, 10:02 AM
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this.is.a.godsend

*hurriedly installs, but messes up the php code and crashes his forum *
Reply With Quote
  #15  
Old 09-11-2004, 06:02 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Megareus Rex
this.is.a.godsend

*hurriedly installs, but messes up the php code and crashes his forum *
this is not a complicated hack, and it should not do any harm to your forum, except for the includes/adminfunctions_user.php when you change user's profile from AdminCP.


Hope you sort things out
Reply With Quote
  #16  
Old 10-05-2004, 08:38 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha
this is not a complicated hack, and it should not do any harm to your forum, except for the includes/adminfunctions_user.php when you change user's profile from AdminCP.


Hope you sort things out
OK, if you want to add this same functionality, in the first page of your AdminCP (where you are normally given the option to search by the user name in the Quick User Finder), do the followings:

Open file admincp/index.php, and find:

PHP Code:
    print_label_row($vbphrase['quick_user_finder'], 
Right above it, add:

PHP Code:
print_label_row($vbphrase['userid'], '
        <form action="user.php" method="post" style="display:inline">
        <input type="hidden" name="s" value="' 
$session['sessionhash'] . '" />
        <input type="hidden" name="do" value="find" />
        <input type="text" class="bginput" name="user[userid]" tabindex="1" size="30" />
        <input type="submit" value="' 
$vbphrase['find'] . '" class="button" tabindex="1" />
        </form>
        '
'''top''user[userid]'); 
Just a small mod, to make our lives easier.

Rgds
-------------
John
Reply With Quote
  #17  
Old 10-06-2004, 05:29 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
OK, if you want to add this same functionality, in the first page of your AdminCP (where you are normally given the option to search by the user name in the Quick User Finder) ...

Just a small mod, to make our lives easier.

Rgds
-------------
John
Nice, I like this spot thanks
Reply With Quote
Reply


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 12:21 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.05023 seconds
  • Memory Usage 2,273KB
  • Queries Executed 21 (?)
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
  • (2)bbcode_php
  • (4)bbcode_quote
  • (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
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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