vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Cyb - Login To User Account (https://vborg.vbsupport.ru/showthread.php?t=201286)

Sador 08-13-2009 05:25 PM

Quote:

Originally Posted by markuswarren (Post 1866220)
I did manage to work out how to do the addition to the user pop-up menu, and I've been rather lax in posting what I did, so I'll rectify that now:

Upon editing postbit_legacy look for:

$template_hook[postbit_user_popup]

then after copy and paste the following:

Code:

        <if condition="is_member_of($vbulletin->userinfo, array( 6))">
        <tr><td class="vbmenu_option"><a href="member.php?do=cyb_loginasuser&u=$post[userid]">Log In As User</td></tr>
        </if>

The conditional checks to see if the user is in the admin group and thus only presents the option to admin users.

I've been using this for a little while and it works like a charm.

Hm, for some reason this doesn't seem to work at my board. Doesn't add anything to the pop up menu.

Still, thanks for sharing.

markuswarren 08-14-2009 11:34 AM

Quote:

Originally Posted by Sador (Post 1866619)
Hm, for some reason this doesn't seem to work at my board. Doesn't add anything to the pop up menu.

Still, thanks for sharing.

Try sticking "xxxxxxxxxxx" or something that will display inside the conditional to check that this portion of it is working, as it sounds as though the conditional check might not be working.

I'm using the Matahari style by sultan themes, and it does differ, in terms of where items are located, to the default style. For example, the navbar items are not in the same location as in Default Style. Therefore it is possible that putting the code in postbit_legacy might not be where it should go, but it would make sense that it is, regardless of style being used.

Sador 08-14-2009 04:16 PM

Quote:

Originally Posted by markuswarren (Post 1867092)
Try sticking "xxxxxxxxxxx" or something that will display inside the conditional to check that this portion of it is working, as it sounds as though the conditional check might not be working.

I'm using the Matahari style by sultan themes, and it does differ, in terms of where items are located, to the default style. For example, the navbar items are not in the same location as in Default Style. Therefore it is possible that putting the code in postbit_legacy might not be where it should go, but it would make sense that it is, regardless of style being used.

Ah, I found the problem. Postbit_legacy is used only for people who are using legacy mode. So, the code was alright, just had to put it in postbit instead of postbit_legacy. Thanks for the help!

dandanch 08-21-2009 05:19 AM

doesn't seem to be working for 3.8.4 won't let you log in
to the users account do you have a fix?thanks

RedFoxy 08-24-2009 12:22 PM

Ok I found and fix the troubles about "Cyb - Advanced Forum Rules" and "Cyb - Login To User Account", to fix it you must edit "Cyb - Login To User Account - MI" and:

Find:
Code:

                                        $cyb_ltoua_link_mi = "<li class=\"thead\" style=\"float:$stylevar[right]\"><a href=\"member.php?$session[sessionurl]do=cyb_loginasuser&amp;u=$userinfo[userid]\">$vbphrase[cyb_ltua_title]</a></li>";
Replace With:
Code:

                                        $cyb_ltoua_link_mi = "<table cellpadding=\"4\" width=\"100%\" cellspacing=\"1\" border=\"0\"><tr valign=\"top\"><td class=\"thead\">$vbphrase[cybltua_hackname]</td></tr><tr valign=\"top\"><td class=\"vbmenu_option\"><a href=\"member.php?$session[sessionurl]do=cyb_loginasuser&amp;u=$userinfo[userid]\">$vbphrase[cyb_ltua_title]</a></td></tr></table>";

dandanch 08-25-2009 04:47 AM

on my 3.8.4 boards to get it working again all i did was uninstalled it and re-instilled
it should work fine..

DeanoUK 08-25-2009 08:04 AM

Installed on www.ukcigarforums.com, along with most over Cyb mods! Thanks bud!

LordDB 08-25-2009 09:21 PM

Quote:

Originally Posted by Amiga Harrison (Post 1857864)
I also get this error message in exactly the same way with this mod installed.
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/modcp/user.php(348) : eval()'d code on line 29

Worth noting is that another similar (but not as good) mod called Admin login as user also produces exactly the same error.

So I think this error must occur with any mod currently designed to log a mod/admin in as another user.

I hope you can find a fix for this. It doesn't stop either mod from working, just shows the error at the top of this search user mp page. So it can be lived with.

uninstall the version you have at present, and install this version here:

https://vborg.vbsupport.ru/showthread.php?t=177947

hypoharry 09-05-2009 10:54 PM

Amazing collection of mods on my forums now but this is the best one buy far

Dutch_Boy 09-08-2009 04:37 PM

Love it !! Thanks for the great mod !!


All times are GMT. The time now is 07:29 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.01420 seconds
  • Memory Usage 1,745KB
  • 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
  • (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