vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Admin Log In As User (https://vborg.vbsupport.ru/showthread.php?t=228077)

Netz 12-09-2010 08:39 AM

Quote:

Originally Posted by sybakaos (Post 1998967)
Download the zip file, open the xml file with an editor and:

find
Code:

$template_hook['profile_right_first'] .= $tab_html;

replace with
Code:

$template_hook['profile_sidebar_first'] .= $tab_html;

Save the xml file and re-import with the overwrite option set to 'yes'.

Thanks mate! I think I found it!

Is there anybody who can at this information to first post or just update the product, please?

cyberchief 12-09-2010 02:52 PM

Thanks for the code edit. Here is an issue now, though. I have moved to 4.1. I made the change above... tried to import and get an error saying it is not compatible with 4.1. Just 4.0.

djbaxter 12-09-2010 03:08 PM

Quote:

Originally Posted by cyberchief (Post 2131364)
Thanks for the code edit. Here is an issue now, though. I have moved to 4.1. I made the change above... tried to import and get an error saying it is not compatible with 4.1. Just 4.0.

Open product-abe1_admin_log_as_user.xml again.

FIND at line 10:

Code:

<dependency dependencytype="vbulletin" minversion="4.0.0 alpha 1" maxversion="4.1.0 alpha 1" />
CHANGE to:

Code:

<dependency dependencytype="vbulletin" minversion="4.0.0 alpha 1" maxversion="4.9.9" />
Import product again using "overwrite".

cyberchief 12-12-2010 01:25 AM

Strange. I made the above two code modifications, and the "log in as" link is still not there.

cyberchief 12-12-2010 01:57 AM

Nevermind... figured it out. Had to set the admin options.

chocothunda 12-14-2010 03:46 AM

Mind updating this to work with 4.1 please :/

Boofo 12-14-2010 03:56 AM

It works fine with 4.1, as long as you make the template hook change and set the permissions.

wolfey 12-14-2010 10:29 AM

Cant import in 4.1

The following dependencies were not met:
1.This product is not compatible with version 4.1.0 of vBulletin. (Compatible starting with 4.0.0 alpha 1 / Incompatible with 4.1.0 alpha 1 and greater)

PSimmo 12-14-2010 11:26 AM

working on 4.1 here after doing the xml edits...thanks

wolfey 12-14-2010 12:28 PM

Can you tell me what to change?

Nevermind..got it

res6cue 12-14-2010 02:06 PM

Awesome mod, no admin should be without it!

Sforums 12-20-2010 09:45 AM

I see the link in ACP but not under member profile. Why is this?

Boofo 12-20-2010 10:30 AM

Did you make the required change from earlier in the thread?

Sforums 12-20-2010 10:44 AM

Found it, applied changes and works.
Thank you Boofo.

Phototrope 12-23-2010 12:57 PM

Didn't work on 4.0.7. Uninstalled

Boofo 12-23-2010 01:03 PM

Yes it does work on 4.0.7, IF YOU MAKE THE CHANGE.

bchertov 12-27-2010 10:41 AM

Quote:

Originally Posted by Boofo (Post 2138075)
Yes it does work on 4.0.7, IF YOU MAKE THE CHANGE.

(someone) please be kind enough to post the post number?

Boofo 12-27-2010 02:40 PM

Quote:

Originally Posted by bchertov (Post 2139531)
(someone) please be kind enough to post the post number?

Post 202 in this thread, which is a few pages back.

kroko 12-27-2010 04:28 PM

i really love this hack but can't install it. can somone tell me how to fix this so it works with the newest version of vbulletin?

RK KINGKONG 12-28-2010 02:50 AM

maybe will there be an update for vb 4.1 p2 ?

Boofo 12-28-2010 02:56 AM

Again... it works fine with the latest vb version. Read the last few posts and you will see where the fix is. If you all can't look through 16 pages, then maybe you don't need it installed.

RK KINGKONG 12-28-2010 07:54 PM

I wish i wouldve seen the fix sooner but being a noob . I guess i screwed myself . I had uninstalled it already . so now seeing the fix it says to make the changes n install as an overwrite . i got that part but now it wont let me install the original .xml saying its not compatible .:
The following dependencies were not met:
This product is not compatible with version 4.1.0 of vBulletin. (Compatible starting with 4.0.0 alpha 1 / Incompatible with 4.1.0 alpha 1 and greater)
so by uninstalling it i guess i screwed my self.

Quote:

Originally Posted by Boofo (Post 2139947)
Again... it works fine with the latest vb version. Read the last few posts and you will see where the fix is. If you all can't look through 16 pages, then maybe you don't need it installed.


Boofo 12-28-2010 08:04 PM

Quote:

Originally Posted by RK KINGKONG (Post 2140308)
I wish i wouldve seen the fix sooner but being a noob . I guess i screwed myself . I had uninstalled it already . so now seeing the fix it says to make the changes n install as an overwrite . i got that part but now it wont let me install the original .xml saying its not compatible .:
The following dependencies were not met:
This product is not compatible with version 4.1.0 of vBulletin. (Compatible starting with 4.0.0 alpha 1 / Incompatible with 4.1.0 alpha 1 and greater)
so by uninstalling it i guess i screwed my self.

In the xml file, change this:

Quote:

<dependency dependencytype="vbulletin" minversion="4.0.0 alpha 1" maxversion="4.1.0 alpha 1" />
to this:

Quote:

<dependency dependencytype="vbulletin" minversion="4.0.0 alpha 1" maxversion="" />

RK KINGKONG 12-28-2010 08:35 PM

OK I got it after making the proper xml edits and going to usergrousp/adminstrator permissions and setting it to yes , it now works thanks BOOFO for making me look deeper into this , I wasnt aware for I know absolutely nothing about this , a buddy of mine set up the site before leaving to the military and im stuck with a crash course in things i never knew anything about . LOL

RUNNING GREAT ON 4.1 PATCH 2

Boofo 12-28-2010 08:49 PM

Quote:

Originally Posted by RK KINGKONG (Post 2140335)
OK I got it after making the proper xml edits and going to usergrousp/adminstrator permissions and setting it to yes , it now works thanks BOOFO for making me look deeper into this , I wasnt aware for I know absolutely nothing about this , a buddy of mine set up the site before leaving to the military and im stuck with a crash course in things i never knew anything about . LOL


RUNNING GREAT ON 4.1 PATCH 2

Glad you got it working. ;)

Athena1984 12-28-2010 11:24 PM

Quote:

Originally Posted by Boofo (Post 2139947)
Again... it works fine with the latest vb version. Read the last few posts and you will see where the fix is. If you all can't look through 16 pages, then maybe you don't need it installed.

You shouldn't have to read through 16 pages... it should be in the first post!

Boofo 12-28-2010 11:35 PM

Quote:

Originally Posted by Athena1984 (Post 2140391)
You shouldn't have to read through 16 pages... it should be in the first post!

"Should be" and "is" aren't always the same, especially when it is clearly stated in the beginning that the mod is "not supported".

Athena1984 12-28-2010 11:39 PM

Yeah, understood but, if it is clear that people are having issues it would be easier to just post fixes that other members have found instead of letting a thread get unnecessarily long which leave users having to read through a lot of BS before finding a fix.

Anyway, I've found the fix for 4.1.x

Here and here are the posts for it for anyone who needs it.

Boofo 12-29-2010 12:00 AM

Well, when the fix has been referenced to and someone can't read one of two posts back to see it, that is getting a little lazy and ridiculous.

Athena1984 12-29-2010 01:01 AM

Yeah, you're probably right but, I'm just saying. I figured someone had posted a fix for this which is why I started to read through first. I always check the last post and go backwards if the mod is old/unsupported. Some people may start from the beginning which is a lot to sort through before getting to a solution. I really wasn't trying to be rude though... I just understand from the other stand point how irritating it can be. :)

LLent 12-29-2010 01:24 AM

i have this installed and i am starting to not see the log in as user in profile on many members how do i remedy this ...

Athena1984 12-29-2010 01:51 AM

Did you upgrade your forum to the latest release? If so, those links in post 310 should help. I just installed it today and it works like a charm. :)

LLent 12-29-2010 02:11 AM

Quote:

Originally Posted by Athena1984 (Post 2140440)
Did you upgrade your forum to the latest release? If so, those links in post 310 should help. I just installed it today and it works like a charm. :)

i am using 4.0.7 looked at your links an i am good on that but still have issue with not seeing link in user profile on some members ...in acp i see the link when i choose it redirects me back to user profile...

nul7 12-29-2010 12:20 PM

Thank you very much for the info regarding the fix for this hack.

tlwwolfseye 01-01-2011 12:07 PM

Just installed that on a Custom Theme. It installed without issues on my vB 4.1 PL2 but I dont actually see the line to click so I can login as that other user. And in the instructions there is no manual stuff that I can find which I maybe had to change to make it show on a custom theme. Probably is asked before, but how can i make it show ?

Thanks.

tlwwolfseye 01-01-2011 12:11 PM

Scratch that, found the hook and what to do. ;)
Cheers

Wolf

iBaker 01-07-2011 12:42 AM

1 Attachment(s)
Everyone keeps asking how to fix this mod for v4.1...I posted the fix back at post 202 (I was aka Wilfred1 but after asking .org twice to combine my usernames they haven't responded) so I thought it might help if I attached the complete mod with the fixes in it for use on v4.1 PL2.

Attachment 125317

For my site I have also made these two changes that you may like to also do but note they suit my site and may not suit yours.

1. Make the link look part of the list in the user profile:
Attachment 125318

Change the entire memberinfo_block_admin_log_in_as_user template to just having:
Code:

<li><img src="{vb:stylevar imgdir_siteicons}/network.png" class="inlineimg" alt="" /> <a href="member.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}&amp;admin_log_in_as_user={vb:raw userinfo.userid}" rel="nofollow">{vb:rawphrase log_in_as_user}</a></li>
In the MEMBERINFO template starting at line 262 you will find:
Code:

                    </ul>
                </div>
            </div>
          <vb:comment>sidebar</vb:comment>
          {vb:raw template_hook.profile_sidebar_first}

Replace that with:
Code:

                          {vb:raw template_hook.profile_sidebar_first}
                    </ul>
                </div>
            </div>
          <vb:comment>sidebar</vb:comment>



2. Add the link to the Member Action Drop Down

Attachment 125319

Open the memberaction_dropdown template you find almost at the bottom this block of code:
Code:

        <vb:if condition="$show['emaillink']">
        <li class="right">
            <img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" />
            <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&amp;u={vb:raw memberinfo.userid}" rel='nofollow'>
                {vb:rawphrase send_email}
            </a>
        </li>
        </vb:if>

Right below that add this block:
Code:

        <vb:if condition="is_member_of($bbuserinfo, 5,6)">
        <li class="right">
            <img src="{vb:stylevar imgdir_siteicons}/network.png" class="inlineimg" alt="" />
            <a href="member.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}&amp;admin_log_in_as_user={vb:raw memberinfo.userid}" rel="nofollow">
                Log In As This User
            </a>
        </li>
        </vb:if>

NOTE in the added block above you will need to change the usergroup ID's to the ones to match the ones your have given permissions to use the mod. For example in the above you will see bbuserinfo, 5,6 this shows that I have given permission to Usergroups 5 and 6 to use the mod.

Hope this helps so others don't have to go trolling through all the previous thread posts.

K!nG 01-07-2011 01:37 AM

i installed it when i had 4.0.8 and now m running 4.1.0 P2 and its working jst da same n perfect :)

Boofo 01-07-2011 01:42 AM

Quote:

Originally Posted by iBaker (Post 2145214)
Everyone keeps asking how to fix this mod for v4.1...I posted the fix back at post 202 (I was aka Wilfred1 but after asking .org twice to combine my usernames they haven't responded) so I thought it might help if I attached the complete mod with the fixes in it for use on v4.1 PL2.

The only fix is the profile_sidebar_first template_hook change. What other fixes are there in your zip file?

bintoro 01-15-2011 02:57 AM

Thanks and thanks to you too iBaker . It runs now.


All times are GMT. The time now is 08:58 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.01741 seconds
  • Memory Usage 1,834KB
  • 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
  • (9)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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