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
Login as User Details »»
Login as User
Version: 1.00, by Hotte Hotte is offline
Developer Last Online: Jan 2006 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-02-2004 Last Update: Never Installs: 180
 
No support by the author.

what it does:
this hack allows you to login as any user from the admincp.

files to edit:
1 (admincp/user.php)

installation time:
< 5 minutes

Edit: added an option to restrict this hack to certain userids

Show Your Support

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

Comments
  #82  
Old 06-28-2004, 05:05 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MRWARGOD
great hack but i would like to make two observations:
1. i'm the forums owner and therefor superadmin, how do i log into other admins?
2. it should automatically log me out of the user when i click a admin cp link.
besides that it's great.
As far as i can see, anyone in the admin group even if they are not in the config.php file as superadmin, you can not login as them.


about #2, that would be a nice feature.
Reply With Quote
  #83  
Old 06-28-2004, 06:03 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vishalsachar
Hi guys, this is my first hack and i can't get it to work!

I have modified the code and added my leased licensed number beginning with a #

Now i log into my admin cp -- what do i do now?

I click users, but can't find anything. Any ideas?
DO NOT begin with a #

it should be

vbsetcookie('password', md5($user['password'] . '12345678'));


where 12345678
is your licence number (8 letters)

then you click to a user to "edit" this user, then you click on the quick link on top, there's something called "login as user"


Quote:
1. i'm the forums owner and therefor superadmin, how do i log into other admins?
It doesnt matter if you are superadmin or not, as long as you can access to the member list in ACP

$_hack_canlogin = ""; // comma separated list of allowed userids. leave blank for all admins

If you have this field filled, you have to be "that person" indicated here, in order to use the function.

If you leave blank, all admins (usergroup=6) can use the function, and he can login as anyone else, except other admin.

If you want to login to other admins, you have to change this lines:

if($user['usergroupid']==6)
{
print_cp_no_permission();
}

maybe just remove it.
Reply With Quote
  #84  
Old 06-29-2004, 10:52 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack and works very well. Thx for sharing!
Reply With Quote
  #85  
Old 06-29-2004, 10:46 PM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yay, works now!
Reply With Quote
  #86  
Old 06-29-2004, 11:13 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha
DO NOT begin with a #

it should be

vbsetcookie('password', md5($user['password'] . '12345678'));


where 12345678
is your licence number (8 letters)

then you click to a user to "edit" this user, then you click on the quick link on top, there's something called "login as user"


It doesnt matter if you are superadmin or not, as long as you can access to the member list in ACP

$_hack_canlogin = ""; // comma separated list of allowed userids. leave blank for all admins

If you have this field filled, you have to be "that person" indicated here, in order to use the function.

If you leave blank, all admins (usergroup=6) can use the function, and he can login as anyone else, except other admin.

If you want to login to other admins, you have to change this lines:

if($user['usergroupid']==6)
{
print_cp_no_permission();
}

maybe just remove it.

Or maybe use the userid instead of the usergroupid??
Reply With Quote
  #87  
Old 07-03-2004, 10:34 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay.. perhaps I'm blind... I've installed but I see no option anywhere to log in as a user. Where's it at?

Edit Found it. But it would be nice if the log in opened without the admin frameset or in a new window. I can adjust that here. But it might be somethign to include in the hack.
Reply With Quote
  #88  
Old 07-04-2004, 07:25 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack

/me clicks install
Reply With Quote
  #89  
Old 07-06-2004, 04:52 PM
rms-2004 rms-2004 is offline
 
Join Date: Jan 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

VERY nice hack. Thanks!
Reply With Quote
  #90  
Old 07-12-2004, 02:50 PM
Wifey Wifey is offline
 
Join Date: Mar 2004
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I had this before and when I downgraded then reupgraded I got rid of it. Now when I try to log in as a user it takes me to my account. How do I fix this?

edit: *kicks cookies* I cleared my cookies and temp files and it's working. le sigh
Reply With Quote
  #91  
Old 07-14-2004, 02:52 PM
blubber12 blubber12 is offline
 
Join Date: Nov 2003
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having similar problems. I did a clean install of 303 and recoded the user files, and still I get logged in under my account. I cleaned all cookies and files as well..and I know I have the proper license number included. any clues?
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 08:50 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.05218 seconds
  • Memory Usage 2,308KB
  • 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
  • (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
  • (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