vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Login as User (https://vborg.vbsupport.ru/showthread.php?t=59556)

Hotte 01-02-2004 10:00 PM

Login as User
 
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

gmarik 01-03-2004 12:46 PM

This should be included as the default option in the final vb3!

Dan 01-03-2004 01:08 PM

Hmm.... this would be an altertinative to reading private messages. But then again if people aren't mature enough it could lead to abuse on some boards that have more than one admin.

Nice mod anyways.

Koutaru 01-03-2004 01:15 PM

:) I liked this one from vb2 because of if a user has problems with his/her account, you can help directly without knowing their password.

TheAnt 01-03-2004 01:20 PM

Nice One
*installs

Rein Masamuri 01-03-2004 01:46 PM

This would help out alot for testing permissions and the like also ^_^
Kudos!

SnowBot 01-03-2004 02:37 PM

Quote:

Originally Posted by ReinMasamuri
This would help out alot for testing permissions and the like also ^_^
Kudos!

Just what i was thinking, great job :)

HabboForum 01-03-2004 02:38 PM

Does this work for you guys? I have installed it but then when i try it, it takes me to the index page but it does not actually log me in as that user.

Hotte 01-03-2004 03:08 PM

this hack requires cookies.
do you have cookies enabled?

Xenon 01-03-2004 03:26 PM

for a quick test of permissions and other things, you can just change the bbuserinfo array from the phpinclude template :)

but this way looks better, at least if you have cookies :)

Zelda-King 01-03-2004 04:36 PM

Hmm, it'd be even better if you could specify which userids could use this (ie, only head admin). The vB2 version has that feature.

Hotte 01-03-2004 04:48 PM

Quote:

Originally Posted by Zelda-King
Hmm, it'd be even better if you could specify which userids could use this (ie, only head admin). The vB2 version has that feature.

Doesn?t make much sense, since all admins can edit the phpinclude-template (as stated by xenon).
but if you want something like that simply do the following modification to the hack (not tested):

After this:
PHP Code:

if ($_REQUEST['do']    == 'loginasuser')


add this:
PHP Code:

$_hack_canlogin "1,2,3" // comma separated list of allowed userids. leave blank for all admins
$_hack_canlogin explode(",",$_hack_canlogin);
if(
is_array($_hack_canlogin) and !in_array($bbuserinfo[userid],$_hack_canlogin)){
    
print_no_permission();



DarkJediKiller 01-03-2004 07:15 PM

Nice Job, this is good for testing forum permissions like said before ^_^ *installs*

Link14716 01-03-2004 07:56 PM

This would be a good hack... if it worked.

When you try to login as a user, it just takes you to forumhome logged out.

Link14716 01-03-2004 08:06 PM

I found the problem.

You left your own license number in the code and didn't take it out and replace with with something like [licensenumber] and didn't say in the instructions to change it to the license number of the board that is using it.

Zelda-King 01-03-2004 10:05 PM

Quote:

Originally Posted by Hotte
Doesn?t make much sense, since all admins can edit the phpinclude-template (as stated by xenon).

Ah, I hadn't thought of that. The thing is on vB2 the userid permissions were all hardcoded and I don't think the concept of using phpinclude was thought of.

What about the issue of an administrator being able to login as a super administrator?

TexasOutdoors 01-03-2004 10:20 PM

Quote:

Originally Posted by Link14716
I found the problem.

You left your own license number in the code and didn't take it out and replace with with something like [licensenumber] and didn't say in the instructions to change it to the license number of the board that is using it.

Where did you find that at? I'm having problems as well as it just takes me to the log in page. What did you have to do?

Hotte 01-03-2004 10:28 PM

the instructions are now updated

HabboForum 01-03-2004 11:01 PM

It doesn't make sense.

Link14716 01-03-2004 11:02 PM

What doesn't make sense?

HabboForum 01-03-2004 11:31 PM

"====================================

after this, put this and replace '123456' with your licence number.

==================================="

What does "this" mean? "This" could mean what i quoted, or it could mean what was above it, or it could mean what to do after you have done the edit above..

TexasOutdoors 01-03-2004 11:48 PM

Quote:

Originally Posted by HabboForum
"====================================

after this, put this and replace '123456' with your licence number.

==================================="

What does "this" mean? "This" could mean what i quoted, or it could mean what was above it, or it could mean what to do after you have done the edit above..

What Hotte's referring to is below:

// put this before print_cp_header() so we can use an HTTP header

Add the following code, and replace 123456 with your license number in the edited code.

DuffMan 01-04-2004 11:10 AM

Nice hack, very simple to install and works flawlessly.

The Quibbler 01-08-2004 07:23 PM

Nice hack! Great for testing permissions and stuff like that. *installs*

EDIT: nice hack if I could get it to work :ermm: I just get logged out, like other people here have mentioned. Any idea how I can fix that?

hagi 01-08-2004 10:33 PM

I had the same problem until I figured that I had inserted my customer number instead of the license number :p

Great hack :)

SloppyGoat 01-09-2004 09:13 PM

Nice! I wish something like this was created a long time ago! It would've saved me some hassles a few times. :)

GamerzWorld 01-10-2004 03:51 PM

How does it work. Ive installed but i dunno how to log in as the user nothing appears

GamerzWorld 01-10-2004 04:30 PM

Saw it :)

Briboy923 01-10-2004 06:19 PM

Yup Thats the issue. Remember, your license # is NOT your customer #, its the 8 digit license # that can be found at the top of your VB php files. I made that easy mistake =)

mOdEtWo 01-23-2004 07:45 PM

Quote:

Originally Posted by GamerzWorld
Saw it :)

Where did you see it? I can't seem to find it at all. I've "installed" the hack, but can't figure out WHERE I find the "Log in as user" option in ate admincp...

sonic3d 01-23-2004 08:18 PM

good job

mOdEtWo 01-24-2004 11:16 AM

Quote:

Originally Posted by mOdEtWo
Where did you see it? I can't seem to find it at all. I've "installed" the hack, but can't figure out WHERE I find the "Log in as user" option in ate admincp...

Anyone know this? I can't find the option anywhere...
:ermm:

Rampag33 01-24-2004 02:27 PM

AdminCP, Edit User Profile, Drop down menu.

VeoMorphine 02-02-2004 11:54 PM

where can i find this licence number? All i know is the custamer number.

Link14716 02-02-2004 11:58 PM

At the top of every vB3 file.

VAN 02-24-2004 04:53 AM

Works great. Thanks. :)

Wifey 03-17-2004 02:11 AM

Installed and working - thanks!

/me clicks install

Mombos 03-23-2004 06:16 PM

Excellent, works good clicked install.

but tell me how can i edit the code so that when i click 'login as user' on the drop down it opens a new internet explorer window rather than log in inside the control pannel main frame

Thanks
Mombos

Detomah 03-25-2004 12:28 AM

Great hack, installed perfectly. :D

I can seriously see this helping with a lot of those easily sorted issues that users seem to have. :)

*would have been installed earlier but i've been waiting on vb gold to avoid all those re-installs*

marcel-ea 03-26-2004 03:55 AM

Sorry, you don't have permission to access the administrative controls on this page.

If you need to access this page, ask your lead administrator to enable your permissions for this page using the Administrator Permissions section of the control panel.

I ask myself?!?!?!


All times are GMT. The time now is 02:08 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.01573 seconds
  • Memory Usage 1,792KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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