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)

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)


All times are GMT. The time now is 03:52 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.01278 seconds
  • Memory Usage 1,758KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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