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.
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]&log_out_admin_log_in_as_user=true">$vbphra se[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------
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]&admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></td>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------
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)
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?
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?
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 -->
--------------------------------------------------------------------
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.