vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Cyb - Login To User Account (https://vborg.vbsupport.ru/showthread.php?t=122989)

navjotjsingh 09-20-2006 11:27 AM

Quote:

Originally Posted by hutzack
Hello, Installed and quite impressed. Is there a way to edit it so you can login to other Admin accounts?

thanks

EDIT: I figured it, for others : Just open up the XML file and change the userID to something random!

Can you please explain this step...Even I would love to login as other Admin's Accounts!

Luke Brown256 09-22-2006 11:33 AM

in the latest version, you can select which users ARE able to log into administrators accounts.
But keep in mind without editing it yourself (as i did) , it only works if administrators, have their PRIMARY usergroup set as administrators.

trigon 09-26-2006 01:04 AM

Quote:

Originally Posted by Luke Brown256
Ok some new problems:

As user account 1 the original superadmin i can login as other users and alter the settings.
But my second superadmin can not alter the admin settings.
and although the link to login as other users is displayed it does not work for any of my admins except userid 1
and the alert to go back to your own account is no longer shown.
(it did show in your previous version)

have the same problem, but my admins are in the primary usergroup, what can i do to solve this problem??

coRtALoS 09-26-2006 03:12 AM

Nice mod, however a few problems.

My forum uses forum.php for the equivalent of index.php (Because of the arcade). I'm assuming your code deletes a cookie when pushing the go back to my account button. However, when you login to the acp using your real account, VB automatically switches your account you're logged in under on the forums to that account. Therefore I sometimes get the message:Eric, You are currently using Eric's account. Click here to go back to your admin account.

This causes some template errors using the method I explained as well.

Just a few things to touch up before I'll make this mod permanent on my forums. Very nice though!

trigon 09-28-2006 08:58 PM

Another Question, how can i rewrite the xml to let Co-Admin use this (UsergroupID9).
Tried different versions but nothing works.
A little help would be very fine.

Luggruff 10-20-2006 09:20 AM

Two things I'm really wondering hard about, and that nobody else in this thread seems to care about at all:

-If I log in to a users account, and that user is currently logged on.. what happens?
-If I post on behalft of another user, can other admins see that I was the "real" poster or not? If not, implement it! (it's necessary that noone ever can be totally anonymous, in situations where someone might get a split nerv and post stuff on behalft of someone else, as a result of a grudge against a sertain user or whatever)

Fix this, and I'll install it in a jiffy! :D

Luke Brown256 10-20-2006 10:37 AM

1) nothing really happens you are still both logged in.
2) No there is no way to do that, the only way to check would be the check the IP address which is a pretty sure indicator, and have faith in your admins.
If you think you admins WOULD do something like that, then they shouldnt be admins for on and shouldnt have access to this tool.

Luggruff 10-20-2006 11:00 AM

Quote:

Originally Posted by Luke Brown256
1) nothing really happens you are still both logged in.
2) No there is no way to do that, the only way to check would be the check the IP address which is a pretty sure indicator, and have faith in your admins.
If you think you admins WOULD do something like that, then they shouldnt be admins for on and shouldnt have access to this tool.

Let me quote myself:

Quote:

If I post on behalft of another user, can other admins see that I was the "real" poster or not? If not, implement it!
The question was wether this hack allowed it or not, not wether it was possible or not, because I'm almost sertain I've seen that it's possible before.

EDIT: So i installed the hack even though my concerns aren't fixed, only, when setting admins.. i get to the SMILEY guide o_0
You could just as easy have linked to the misc.php page only.. =\

Could it be that "Cyb - Advanced Forum Rules" and "Cyb - Check If Already Posted" have like 90% same name on hooks? (same name of hooks is a BIG no-no of what I've allways heard from other developers)

Luke Brown256 10-20-2006 12:16 PM

You get the smiley guide if you are NOT a superadmin.

Luggruff 10-20-2006 01:08 PM

Quote:

Originally Posted by Luke Brown256
You get the smiley guide if you are NOT a superadmin.

Want to view my config.php?

Code:

        //        ****** SUPER ADMINISTRATORS ******
        //        The users specified below will have permission to access the administrator permissions
        //        page, which controls the permissions of other administrators
$config['SpecialUsers']['superadministrators'] = '1, 2';

I'm number 2

Luke Brown256 10-20-2006 01:11 PM

Ok then just out of interest by any chance is your PRIMARY usergroup NOT Administrators.

Luggruff 10-20-2006 01:40 PM

Quote:

Originally Posted by Luke Brown256
Ok then just out of interest by any chance is your PRIMARY usergroup NOT Administrators.

Yes, I have usergroup ID 6 as primary, I as you, have read every single post of this thread and would know that to be necessary.

Oh my: Where do I change that hiddeous GREEN color on the "Forum rules" link in the navbar? o_0

EDIT: is it supposed to be:

$config['SpecialUsers']['superadministrators'] = '1, 2';
or
$config['SpecialUsers']['superadministrators'] = '1', '2';
?

EDIT2:
- Back-To-Admin does not work - Get's 404page (the other admin at my forum with userID #1 can use the system)
- Latest activity on the userprofile shows if admins log in to the account, in that other hack (on second hand, it might have been the 3.5.4 version of that hack), it doesn't (read it in the posts of that hacks thread).. would be cool if fixed!

EDIT3: The other admin at the forum with UserID #1 wrote me down in the "Set Admins" page, I can now see the link to "log in as user" in the userprofiles, though, I just get a strange vbulletin-message saying that the user is not registred and therefor there is no profile to view!

could this be more agitating?

Luke Brown256 10-20-2006 09:55 PM

kk:
'1, 2';
Is correct so that is fine.

2) i am not sure what your saying.
3) no idea for that

The hack works fine for me, as you read i modded it so it would work for admins whose primary usergroup was not administrators but that is it.

I think CYB should answer these questions.

Luggruff 10-21-2006 08:58 AM

Quote:

Originally Posted by Luke Brown256
kk:
'1, 2';
Is correct so that is fine.

2) i am not sure what your saying.
3) no idea for that

The hack works fine for me, as you read i modded it so it would work for admins whose primary usergroup was not administrators but that is it.

I think CYB should answer these questions.

Let's just hope he answeres some day then =\
And by the way, "TIP" when doing stuff like adding a link to the menu for everyone to see, either put it in a template or include the colorchange of that link in the hack options.
Especially when choosing a color like BoogerGreen o_0

EDIT1: OK I REALLY need to understand this hack!
"cybfrules_forceuser" is located in the User Profile page, though it is not a bit of code included in the memberinfo template. Wich demands me knowing HOW and WHAT is saying where that Link is going to show up (in the user profile).. I need to move the link to another spot in the Users Profiles as it just takes up too much space lying on the same row as a bunch of other links! -_-
(see picture)

Luggruff 10-23-2006 07:55 AM

Now seriously, when needed support, it is most often needed as right away as possible.
And In this case, I couldn't care less if you've written that you suck at support, you really made it your responsibility when you posted a hack with this greatly hidden parts of code that _some people_ can't uderstand where to reach, and that _need_ to reach it!

Summing it all up in one post as it seems I've got all the time in the world:
  1. I get launched to the misc.php page when trying so Set Admin
  2. I am SuperAdmin and I have Admin (usergroupID 6) as primary usergroup
  3. When the other admin at my forum (he's got userID 1 and I've got userID 2) set me as permitted admin at the Set Admin page I can see the "Log In As User" on everybody's userprofile page. Though when clicking the link, I'm told that no profile can be show since the user is not registred. Strange huh?
  4. The other admin at my forum (the one with userID 1 and that everything is working perfectly for.. well almost perfect) ..cannot log back into his admin account for some reason. He has to do that manually so to speek.
  5. In the user profile, there's a field saying "Latest activity 12:15PM" etc, that changes when an admin logs on to a users account.. wich pretty much reveals that someone has used the account. Maybe possible to put a conditional there saying "if user logged on through the "Login As User" link, do not change latest activity". Pretty much makes the hack useless if not. (I mean, something recognize that you are not the original user right, how else could the alert on the top show?)
  6. That horrifying green link for the rules in the menu, where can I change it?! I noticed it is not in the NavBar template.. and I really need to understand how it was placed there, even right between two menu-links?! As I am in the process of creating a new style and can't get nowhere before I can move that link along with the rest of the menu!!

allanh 10-23-2006 10:15 AM

lol... this hack is pure evil...but I love it :p

Luggruff 10-24-2006 07:09 PM

Ok, I feel stupid. Edited a bogus config.php file -_-
Still one problem remains: Logging back into the admin account again.
Following error follows:

Code:

Database error in vBulletin 3.6.2:

Invalid SQL:

                                SELECT userid, username, password, salt, styleid
                                FROM 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        : Tuesday, October 24th 2006 @ 04:09:25 PM
Script      : http://hlforum.org/index.php?do=backtoadmin
Referrer    : http://www.hlforum.org/index.php
IP Address  : 81.235.18.67
Username    : Luggruff
Classname    : vb_database

And yeah, ABE's hack doesn't change the "activity log" for the user you log onto.. so untill further notice, I'll use his. (your's is better though, as you can Set Admins)

Luke Brown256 10-24-2006 08:15 PM

kk that error message is most likely caused by the cookie not being set.
as you can see from the statement:
SELECT userid, username, password, salt, styleid
FROM user
WHERE userid =

no userid is specified which is causing the error.
Make sure you have cookies enabled and try again.

Luke Brown256 10-24-2006 08:25 PM

by making a slight alteration to the code i have worked out how to stop it altering when the user last logged in:
I edited Cyb - Login To Other User Account - LTU:

this section:

Code:

            vbsetcookie('userid', $cyb_target_user['userid']);
            vbsetcookie('password', md5($cyb_target_user['password'] . COOKIE_SALT));
       
            exec_header_redirect($vbulletin->options['forumhome'] . '.php');

to:
Code:

            vbsetcookie('userid', $cyb_target_user['userid']);
            vbsetcookie('password', md5($cyb_target_user['password'] . COOKIE_SALT));
       
unset($vbulletin->db->shutdownqueries['lastvisit']);
    exec_header_redirect($vbulletin->options['forumhome'] . '.php');


But like the other one they still appear logged in , in the who is online section.

Luggruff 10-25-2006 06:54 AM

Quote:

Originally Posted by Luke Brown256
by making a slight alteration to the code i have worked out how to stop it altering when the user last logged in:
I edited Cyb - Login To Other User Account - LTU:

this section:

Code:

            vbsetcookie('userid', $cyb_target_user['userid']);
            vbsetcookie('password', md5($cyb_target_user['password'] . COOKIE_SALT));
       
            exec_header_redirect($vbulletin->options['forumhome'] . '.php');

to:
Code:

            vbsetcookie('userid', $cyb_target_user['userid']);
            vbsetcookie('password', md5($cyb_target_user['password'] . COOKIE_SALT));
       
unset($vbulletin->db->shutdownqueries['lastvisit']);
    exec_header_redirect($vbulletin->options['forumhome'] . '.php');

But like the other one they still appear logged in , in the who is online section.

Looks great ^^

Quote:

Originally Posted by Abe1
Only you can see that he is online. No one else can see you online. Go look in the users profile. It will show them offline.

And yeah, I have cookies enabled.. (untill they die automaticly)

Luke Brown256 10-25-2006 12:44 PM

i am not exactly sure how he done that then, i looked through the code and there was no particular special function other than that one, which i added in.

StarBuG 10-25-2006 02:50 PM

It does not work for me.

I click on Log In As User but nothing happens.
There is no alert message, I still see the staff zone, the user does not show up in the member list -> I am not logged in as this member.

Even via the ACP, if I try to login as a user I only get to his profile but nothing else happens.

The link that is called is /member.php?do=cyb_loginasuser&u=12345

HMMM

Luggruff 10-25-2006 02:56 PM

Quote:

Originally Posted by StarBuG
It does not work for me.

I click on Log In As User but nothing happens.
There is no alert message, I still see the staff zone, the user does not show up in the member list -> I am not logged in as this member.

Even via the ACP, if I try to login as a user I only get to his profile but nothing else happens.

The link that is called is /member.php?do=cyb_loginasuser&u=12345

HMMM

Just making sure:

- Have you set yourself as SuperAdmin in /includes/config.php? (if you do not have userID 1)
- Have you added the template changes?
- Is Administrator (usergroupID 6) your primary usergroup?

And what do you mean by: Nothing happens? Everything's just as usual, with your own username in the welcome message?

StarBuG 10-25-2006 03:08 PM

I am a superadmin
I don't have added the template changes because I see the link
and yes, 6 is my admin group

With nothing happens I mean nothing happens, the site reloads and thats it.
no Username change in welcome, no user showing up in who's online except me, nothing ;)

I have no clue why not

tank14 10-30-2006 08:26 PM

I need to get some help changeing go back to admin, U have vBadvanced and it goes to the index, not index2

wjkids 11-01-2006 02:22 AM

Great Mod!
Clicked installed and have one question..
I was testing it out on a couple of users that are on my board and now in the members list even though I switched back logged off they still show up in the members list as online. I tried clearing cookies that didn't seem to do anything either. Any ideas?

Thanks in advance

tank14 11-01-2006 06:43 PM

That is blocked in abes script, but abes doesnt work for me...=(

AWJunkies 11-26-2006 08:49 PM

I have the same:
Database error in vBulletin 3.6.3:

Invalid SQL:

SELECT userid, username, password, salt, styleid
FROM allwheeljunkies_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, November 26th 2006 @ 05:22:58 PM
Script : http://allwheelnetwork.com/index.php?do=backtoadmin
Referrer : http://www.allwheelnetwork.com/index.php
IP Address : 66.91.236.50
Username : Unregistered
Classname : vb_database

Error!

I have tried on IE and FF and both do it and have cookies enabled and everything checks out. Cookie user id is not getting set for some reason. I give up and will deactivate the nav box info. If anyone figures this problem out let me know it is pain in the a s s.

jgommel 12-25-2006 04:24 PM

I've been trying to figure this out for a few days now (off and on), but can't figure out why my login name/ID does not display before the message:

, You are currently using Tesuser's account. Click here to go back to your admin account.

Code:

<phrase name="cyb_ltoua_goback"><![CDATA[{1}, You are currently using {2}'s account. Click <a href="{3}">here</a> to go back to your admin account.]]></phrase>
See the attached screenshot.

Any help would be greatly appreciated!

Valter 12-25-2006 11:40 PM

Download latest XML and import it.

Be sure hack's templates are not customized.

Be sure you have enabled cookies in your browser.

Sol_Invictus 12-26-2006 10:03 AM

Nice plugin, but I wouldn't use it. I feel that it is an invasion of users' privacy.

jgommel 12-26-2006 07:21 PM

Quote:

Originally Posted by Cybernetec (Post 1145093)
Download latest XML and import it.

Be sure hack's templates are not customized.

Be sure you have enabled cookies in your browser.


Okay, I just downloaded and imported the latest XML, checked my cookie settings etc..., and I still have the same problem: See my prior post: #69

I even went as far as checking multiple browsers...

cbiweb 12-26-2006 07:38 PM

Quote:

Originally Posted by Sol_Invictus (Post 1145219)
Nice plugin, but I wouldn't use it. I feel that it is an invasion of users' privacy.

Only if you use it for that reason. It's an excellent way to solve problems with a user's account without having to get their password from them and all that. Just make sure they know what you're up to, and don't do things like read their PMs while you're there.

Be responsible with it, and no one gets hurts.

dutchbb 12-26-2006 08:18 PM

Can you make it so that moderators can't see that the user has the same IP adress for postings as the admin. in other words: when an admin login as the user, it keeps the IP from the user, not the one from the admin. Hopefully you understand this :D

dutchbb 12-26-2006 08:30 PM

This is one of the best hacks ever :D

KURTZ 01-08-2007 03:10 AM

installed

blogtorank 01-31-2007 10:53 PM

Quote:

Originally Posted by Cybernetec (Post 1145093)
Download latest XML and import it.

Be sure hack's templates are not customized.

Be sure you have enabled cookies in your browser.


Then what would cause this if they are registered?
Quote:

No Permission Message
This user has not registered and therefore does not have a profile to view.


melscamera 02-01-2007 07:04 PM

works great - thanks

crazycajun 02-25-2007 12:09 AM

Thanks for the great mod!

tehPARADOX 02-25-2007 12:58 AM

Loving this hack, thanks a lot!


All times are GMT. The time now is 04:36 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.01347 seconds
  • Memory Usage 1,853KB
  • 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
  • (7)bbcode_code_printable
  • (14)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