vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Cyb - Login To User Account (https://vborg.vbsupport.ru/showthread.php?t=116207)

Valter 05-21-2006 09:37 AM

Quote:

Originally Posted by C_P
this seems almost exactly what Abe1's hack does or at least a couple of additional limits to Abe1's hack

Code is completely different. Users can choose which one to use. ;)

New version!
v1.1 - May 21. 2006.
- Now SuperAdmin can log into other admins

Parker Clack 05-21-2006 10:39 AM

Cyb:

I added this to my postbit_legacy and postbit templates so I can login in from the pulldown menu with their username.

Look for:

Code:

        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>

and below this add

Code:

<if condition="$bbuserinfo[usergroupid]==6">
        <tr><td class="vbmenu_option"><a href="member.php?do=cyb_loginasuser&u=$post[userid]">Login As User</a></td></tr>
        </if>

Do you think you could add the option of a link if you are logged in as another username you can click on that and sign back in with your own username?

Parker

Abe1 05-21-2006 12:01 PM

Definitely VERY similar to my ‘Log in as User’ hack. The only difference is the settings that you put in which I thought were unnecessary, but may be coming in the future. My hack just does a lot better hiding that you logged in as that user.

(You can get the link to my hack in my sig.)

IrPr 05-21-2006 10:46 PM

[high]* IrPr Agrees with Abe1 :D[/high]

49er 05-21-2006 11:10 PM

Just needs fixing so you can be able to go back to your own account without having to sign back in? ;)
A "Click here to go back to your account" would be ideal. Nice hack btw. :)

Smiry Kin's 06-01-2006 06:47 AM

problem is, isnt away to log out :S!

Abe1 06-01-2006 11:55 AM

Quote:

Originally Posted by Smiry Kin's
problem is, isnt away to log out :S!

Use. My hack. There is a way to log out. You can find a link in my sig.

I-Web 06-01-2006 12:33 PM

I have currently got this one installed also abe1's and both do the same job with pro's and con's on both versions.
In this version i like the admincp options to specify who can use it but dislike the fact that is no logout option so this means tou have to logout the login as admin again.
In abe1's version i like the fact that you can login and out without having to login as adfmin each time.
But in both instances i am getting an error when i try to add a user using admincp.

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admincp/user.php(442) : eval()'d code on line 9
PS
These are installed on different forums so to avoid any conflocts that may occur by having them installed on same forum.

Valter 08-04-2006 08:26 AM

vB 3.6 version:
https://vborg.vbsupport.ru/showthread.php?t=122989

24-play 09-10-2006 11:38 AM

Quote:

Database error in vBulletin 3.6.0:

Invalid SQL:

SELECT userid, username, password, salt, styleid
FROM vb_user
WHERE userid =
LIMIT 1;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 4
Error Number : 1064
Date : Sunday, September 10th 2006 @ 01:33:31 PM
Script : http://www.forum.*****.com/index.php?do=backtoadmin
Referrer : http://forum.******.com/index.php?styleid=5
IP Address : *********
Username : ******
Classname : vb_database
I get this error when I try to click the link which takes me back to my user account, I was attempting to log back in to my account from another administrator account. Does anyone know what may be causing this please? Thanks.

Thanks,
~ Luke.


All times are GMT. The time now is 02:13 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.01249 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (3)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
  • (10)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