Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Admin Log In As User Details »»
Admin Log In As User
Version: 3.0, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.x Rating:
Released: 08-02-2006 Last Update: 10-27-2007 Installs: 989
Uses Plugins Template Edits
 
No support by the author.

Admin Log In As User 3.0


PLEASE CLICK ON THIS LINK TO DOWNLOAD AND FOR SUPPORT FOR THIS HACK: https://vborg.vbsupport.ru/showthread.php?t=168819

Version 3.0 was created for both vb3.6 and vb3.7. I will no longer give support in this thread for this hack. Please click 'install' in the vb3.7 section for notifications about updates.

Supporters / CoAuthors

Show Your Support

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

Comments
  #32  
Old 08-27-2006, 02:06 AM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1
One of the teplate edits.
Sorry Abe1

Quote:
Admin Log In As User version 2.0

FOR UPGRADE AND FRESH INSTALLATIONS!

1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

2) Do the template edits

in header:

find:
--------------------------------------------------------------------
<!-- logo -->
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php$session?[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphra se[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------



in MEMBERINFO:

find:
--------------------------------------------------------------------
<td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
</if>
<if condition="$show_admin_log_as_user_link">
<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&amp;admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></td>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------

Done.
None sessionid


Regards, Stoebi
Reply With Quote
  #33  
Old 08-27-2006, 02:15 AM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, sessionurl in the header.
Reply With Quote
  #34  
Old 08-27-2006, 04:00 AM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1
sorry, sessionurl in the header.
Thx a lot Abe1

Quote:
Originally Posted by Ninth Dimension
When I log in as a user, and try to view someone elses member profile page, it only shows the page of the person you're logged into. I realise this might not be the most important thing that needs fixing, but I figured I'd let you know anyway.
I can't reproduce it. I've logged in as testuser for example and i can see the member profile page from the other registered user (blabla, stoebi, tester) on my test forum.

Edit:
I can reproduce it only if i want to see the profile pages from admins.

For example:
Webmaster = Admin
Webmaster logged in as Stoebi
As Stoebi i want to see the profile page from me (Webmaster), and i see my own profile page (Stoebi not the page from Webmaster)

Another example:
Stoebi is now Superadministrator and is logged in as user blabla, but as user blabla now i can't view the profile page from Stoebi and Webmaster.
I see my own profile page (blabla)


Regards, Stoebi
Reply With Quote
  #35  
Old 08-27-2006, 12:11 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stoebi
Thx a lot Abe1



I can't reproduce it. I've logged in as testuser for example and i can see the member profile page from the other registered user (blabla, stoebi, tester) on my test forum.

Edit:
I can reproduce it only if i want to see the profile pages from admins.

For example:
Webmaster = Admin
Webmaster logged in as Stoebi
As Stoebi i want to see the profile page from me (Webmaster), and i see my own profile page (Stoebi not the page from Webmaster)

Another example:
Stoebi is now Superadministrator and is logged in as user blabla, but as user blabla now i can't view the profile page from Stoebi and Webmaster.
I see my own profile page (blabla)


Regards, Stoebi
Do you need to log in as another user just to see your profile page?
Reply With Quote
  #36  
Old 08-27-2006, 12:30 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tred adding a $ to the start of [sessionurl], but it then just shows $[sessionurl] in the URL. Are you sure it's not meant to be something like $something[sessionurl], maybe $_SESSION[sessionurl] or something like that?
Reply With Quote
  #37  
Old 08-27-2006, 01:21 PM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1
Do you need to log in as another user just to see your profile page?
You need to logged in as Abe1 for example to your ACP.
Then log in as another User, for example Testuser and try to look at your (Abe1) profile.


Quote:
Originally Posted by Ninth Dimension
I've tred adding a $ to the start of [sessionurl], but it then just shows $[sessionurl] in the URL. Are you sure it's not meant to be something like $something[sessionurl], maybe $_SESSION[sessionurl] or something like that?
My HEADER, it works fine now:
Code:
find:
--------------------------------------------------------------------
<!-- logo -->
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
	<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php?$session[sessionurl]log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------


Regards, Stoebi
Reply With Quote
  #38  
Old 08-27-2006, 02:00 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stoebi, much better, thank you
Reply With Quote
  #39  
Old 08-28-2006, 03:47 PM
darksoulz darksoulz is offline
 
Join Date: Jul 2005
Location: Lochbuie, CO
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what's not working right, but in our case when you click the link to login as a different user, we get the header line saying we are logged in as the other user and click to log back in to our account. But everything else is showing up like we're not logged in at all most of the time. It seems to randomly show it as logged in as that user sometimes, but most of the time not. The only thing I can think of is maybe a conflict with another addon? Cant think of what it could be though.
Reply With Quote
  #40  
Old 08-30-2006, 10:03 PM
PassLab.net's Avatar
PassLab.net PassLab.net is offline
 
Join Date: Aug 2006
Location: LonDoN
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

perfect, installed
Reply With Quote
  #41  
Old 08-31-2006, 06:26 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It does still not work - and i have updated today. I can use a other Account but if i click on "Private Messages" the System wants me to log in. :/
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:59 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.08911 seconds
  • Memory Usage 2,321KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (7)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
  • (1)pagenav_pagelinkrel
  • (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