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)

Koutaru 03-28-2004 05:14 PM

Quote:

Originally Posted by marcel-ea
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?!?!?!

Were you trying to log into another admin's account?

I have a quick question, if I wanted Login As User as a phrase, how would I add that?

I added login_as_user as a phrase in group 28 which is the cpuser group but it's not loading? The phrase thing still confuses me a bit

influence 04-01-2004 01:56 PM

so umm if you log in as another user, im guessing if someone do a IP search of all the most recent IP# address this user already use to find out if this user have other account, im guesing the admin name will show up right?

Hurricane 04-11-2004 05:08 PM

Quote:

Originally Posted by Koutaru
I have a quick question, if I wanted Login As User as a phrase, how would I add that?

I added login_as_user as a phrase in group 28 which is the cpuser group but it's not loading? The phrase thing still confuses me a bit


Add a phrase in the group of "Control Panel User Management Phrases" and call it login_as_user. Then add the phrase you want it to have.

In the hack where you see:
Code:

                        "user.php?$session[sessionurl]do=loginasuser&userid=$userid"
                                => "Login as User",

Replace with this:

Code:

                        "user.php?$session[sessionurl]do=loginasuser&userid=$userid"
                                => $vbphrase['login_as_user'],

Hope This Helps.

marcel-ea 04-12-2004 06:18 AM

Quote:

Originally Posted by Koutaru
Were you trying to log into another admin's account?

I have a quick question, if I wanted Login As User as a phrase, how would I add that?

I added login_as_user as a phrase in group 28 which is the cpuser group but it's not loading? The phrase thing still confuses me a bit

Si i try this :D

deathemperor 04-17-2004 01:11 AM

does vb3 have this on default ? if yes then how can I do that ?

blubber12 04-17-2004 01:20 AM

In User control, choose the user you wish to log in as. On tht page there is a drop down at the top for various user controls...At the very bottom of that list is "log in as user" Click that and you will be logged in.

deathemperor 04-18-2004 06:43 AM

were you showing me how to login as user using this hack ? then you should re-read my post that I want to login as User by using vb3 default function yet only if it does have

blubber12 04-18-2004 05:07 PM

Sorry, no I was answering post #32...somehow at the time, that was the last post I saw.

And to answer your question, no..vb3 does not have this as default

the Sandman 04-23-2004 10:43 PM

I installed this carefully, but when I try to login as another user I just get logged in as myself. Then, when I leave that page, I get logged out. I replaced the original admincp/user.php file, then tried installing the hack again... same result. :ermm:

welo 04-25-2004 02:05 AM

Installed and it works fine; it's just a little difficult to locate.

Maybe in future versions add it to the ACP > Users menu directly? Then when that option is clicked it displays a list of users (X# per page, perhaps sortable by usergroup) then allows you to select one?

FWF 05-07-2004 07:39 AM

nice

*installs*

JaNa 05-07-2004 04:29 PM

Quote:

Originally Posted by Dan
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.

I'm sure the admins people pick are people they trust :P

Anyways, Useful hack. I'm gonna install it after school.

[high]* JaNa Clicks Install[/high]

Logikos 05-10-2004 05:45 AM

Quote:

Originally Posted by the Sandman
I installed this carefully, but when I try to login as another user I just get logged in as myself. Then, when I leave that page, I get logged out. I replaced the original admincp/user.php file, then tried installing the hack again... same result. :ermm:

Same thing happens to me on vb 3.0.0 and i'm accepting all cookies, any ideas?

Renat_ 05-21-2004 01:41 PM

Very useful hack, thanks!! :)

*install

Logikos 05-21-2004 09:03 PM

Quote:

Originally Posted by Renat_
Very useful hack, thanks!! :)

*install

[high] * Logikos clicks uninstall snice this don't work.[/high]

Boofo 05-21-2004 09:27 PM

Quote:

Originally Posted by Live Wire
[high]* Live Wire clicks uninstall snice this don't work.[/high]

Click the install button again and head over to my site and I will help you get it working. It is really great and easy and it DOES work. ;)

Keyser S?ze 05-23-2004 01:43 AM

let me say a few things, if ur going to use this for "testing" purposes tis is a waste, u want to test something open a new window and have a test account made and login as that

if ur trying to use this to spy on ur members which is wrong anyway this is not the hack for u, as any PMs u read show up as a already read PM and if u do this u show up as being logged in on the forums

so i just dont understand how this hack has any use (other than to spy on members)

gopherhockey 05-23-2004 01:37 PM

... and if you are going to spy on members, it would make sense not to have the system update items you read or update the time you were on. Users will know as their New Posts (since last online) will be all messed up, and if you read things they will be marked.

I don't know why, but if someone does need this capability it should have some type of invisible mode for things like this.

I was interested in this only because some of my members are lazy and don't check the forums often - and they send me emails asking me to post for them... I have done this in the past as myself but want to "post as" - I'll look to see if there is a specific hack that can handle that...

Mijae 05-31-2004 02:04 AM

It wont work. It just logs me out!

Merjawy 06-02-2004 06:20 PM

My 3 cents here

thank for the hack I used it in vB2 and the admin and I loved it, we don't spy, but many users have issues...

there many ways around the concerns I read here but I won't comment :)

I n s t a l l

MrNase 06-03-2004 06:15 PM

Works like a charm :)

You should add to the instruction that you must use the number which is on the top of your vb files :)

Battle_Ring 06-03-2004 07:04 PM

i have my license number in and it still aitn workign for me it jusat logs me out

monstergamer 06-03-2004 07:41 PM

thanx, now i can see some of the problems that members have that i dont see. :D

[high]* monstergamer clicks install[/high]

Battle_Ring 06-03-2004 08:36 PM

i have my license number in and it still aitn workign for me it jusat logs me out

uppin for help

monstergamer 06-03-2004 09:07 PM

Quote:

Originally Posted by Battle_Ring
i have my license number in and it still aitn workign for me it jusat logs me out

uppin for help

make sure it is you License # and not your customer number

i made that mistake the first time lol

Battle_Ring 06-03-2004 09:09 PM

it is do i need the # in there too?

monstergamer 06-03-2004 09:19 PM

Quote:

Originally Posted by Battle_Ring
it is do i need the # in there too?

if you go to the members area at http://www.vbulletin.com/members/
you should see you License # / URL
right under that is your license number

PHP Code:

 if ($_REQUEST['do'] == 'loginasuser')
{
$_hack_canlogin ""// comma separated list of allowed userids. leave blank for all admins
 
if($_hack_canlogin!=""){
$_hack_canlogin explode(",",$_hack_canlogin);
if(
is_array($_hack_canlogin) and !@in_array($bbuserinfo[userid],$_hack_canlogin)){
print_cp_no_permission();
}
}
$user $DB_site->query_first("SELECT userid,password,usergroupid FROM " TABLE_PREFIX "user WHERE userid='".$_REQUEST['userid']."'");
if(
$user['usergroupid']==6){
print_cp_no_permission();
}
// delete the current session
$DB_site->query("DELETE FROM " TABLE_PREFIX "session WHERE userid = $bbuserinfo[userid]");
// also all cookies
$prefix_length strlen(COOKIE_PREFIX);
foreach (
$_COOKIE AS $key => $val)
{
$index strpos($keyCOOKIE_PREFIX);
if (
$index !== false)
{
$key substr($key$prefix_length);
if (
trim($key) == '')
{
    continue;
}
vbsetcookie($key''1);
}
}
// now set cookies for the desired user
vbsetcookie('userid'$user['userid']);
vbsetcookie('password'md5($user['password'] . 'YOUR VB License # ( 8 DIGITS I THINK ) HERE'));
// back to forumhome
Header("Location: ../index.php");
// finished :)
exit;


REPLACE YOUR VB License # ( 8 DIGITS I THINK ) HERE with your LICENSE #

then paste under

PHP Code:

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


Battle_Ring 06-03-2004 09:31 PM

thats what i have

Battle_Ring 06-04-2004 04:50 PM

someoen help me with this pleaseeeeeeeee

Battle_Ring 06-06-2004 02:56 AM

im still lookign for help with this

Battle_Ring 06-07-2004 10:50 PM

man whats it take to get some help on this

Bahawolf2 06-07-2004 10:58 PM

Maybe not posting 4 times...?

Make sure your license number is entered, and not your customer number.
I had the same exact problem as you, until I took the license number and replaced it.

Battle_Ring 06-07-2004 11:03 PM

sorry i been tryign for help for 4 days

i tried that think you could help i could send you the file

Battle_Ring 06-08-2004 12:24 AM

ill send anyoen the file neeeded if they are willign to help me

Battle_Ring 06-08-2004 03:25 PM

Hello Hello anyone out there

neocorteqz 06-09-2004 02:17 AM

Quote:

Originally Posted by Battle_Ring
ill send anyoen the file neeeded if they are willign to help me

if i recall, thats not allowed. thats why you haven't had a response. I may be wrong though.

Battle_Ring 06-09-2004 02:58 PM

ok ill do whatever is allowed

i just need someoen to help me :-(

MRWARGOD 06-12-2004 04:05 PM

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.

mtha 06-28-2004 12:05 PM

Quote:

Originally Posted by Battle_Ring
ok ill do whatever is allowed

i just need someoen to help me :-(

lol, dont be crying

zip your file and upload to your server, send the link to me, I will take a look for ya :>

vishalsachar 06-28-2004 04:36 PM

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?


All times are GMT. The time now is 12:18 PM.

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.01414 seconds
  • Memory Usage 1,836KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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