![]() |
Quote:
Other than that, what you describe is a design feature: you cannot switch to a slave/master account if you're not logged on as one of those accounts. The sessions timing out rather quickly in 1.0 then caused what you experienced ;) So with 1.1 as now sessions switched to are there to stay until you log out specifically (I think a year it is, by default), this shouldn't happen after the upgrade and logging in once. |
Quote:
I'd like to expand the possible uses of the hack in the first post :D |
Quote:
Not having worked with vBindex myself... if it makes use of vB's global.php, then it stands to reason you can intro the $master_account variable in the vBindex template as well, to have the dropdown appear ;) If you can confirm that works or not, then if it doesn't I'll work on the integration when I have the time. |
Quote:
|
I nominate this for the hack of the month.
|
Why thankee kind Sir Lionel *bows*
Much obliged :) Next month's HotM hopefully, if it comes to pass, this month drawing to a close fast. The way things currently look here I'll have v1.2 ready end of next week, or sometime the week thereafter, with the improvements I outlined in the first post (for that version). (Edit: might've been unclear I thanks Lionel, since it showed up on a pagebreak ;)) |
Quote:
HTML Code:
<if condition="$showmemberwelcome"> versions: vBulletin Version 3.0.3 & vBindex Version 3.0.0 RC5 |
I had a feeling it just might do that, excellent :D
vBindex v3.0.0. RC5 will go up on the compatible hacks list shortly. Cheers for testing that combo, bondjetta. D'you reckon the "Become:" should be phrased in the next version? Edit: vBi is now listed as compatible in the first post. |
Quote:
I don't mind the Become, it seems fitting (at least for my purposes)...and FYI i combined it with Nex's admincp cookie hack and it's working fine w/ vbindex & admin-cookie (i know you tested it, just a further test ;))...and helps me TREMENDOUSLY considering I normally have 3-4 tabs going at once w/ different user id's :D |
Great idea, my friend ;) I can see how this is going to be uberly useful for many people. Now get it installed for me :p (Im in uni, doing it myself is not an option from here)
Thanks Ianomedic :p |
Quote:
Edit: make that two browsers + IE :devious: |
Quote:
|
Updated to v1.1, but I still get the error logging out message doing the method I explained.
I switch from "Oblivion Knight" to "Test Account", I then try to instantly switch back from "Test Account" to "Oblivion Knight" and the userid when logging out is parsed as 0 which gives the error logging out message. Is that something that can be fixed, or a design flaw in the way that vB handles user sessions? |
Do you have any unusual cookie/session settings in vB? That being shorter than usual timeout, things like that.
For some reason the session has expired when you switch back to Oblivion Knight. I'll look into this for 1.1.1 or 1.2 *nods* If it can be fixed, which I believe it can, then it's likely not going to be a drastic change to the code I introduced in login.php. :) |
Nope.. My cookie settings are all default I believe.!
Time-Out for Cookie: 900 Path to Save Cookies: / Cookie Domain: GZIP HTML Output: Yes GZIP Compression Level: 1 Add Standard HTTP Headers: No Add No-Cache HTTP Headers: Yes Remove Redirection Message Pages: Yes Could it have anything to do with this setting: Simultaneous Sessions Limit This is currently on 0 (disable).. |
If a limit is disabled... then probably not. As it is I'm fairly certain I'll have this problem worked out tomorrow, in which case I'll up the version to 1.1.1. for maintenance release. The other improvements as charted in the first post will still be for v1.2.
|
I have same problem too. Logs me out (timeout) or prevents me from login out. I noticed it does so when I go in admincp and spend sometime in there
|
@Lionel: Should be fixed in 1.1.1., released tomorrow/today (midnight here now) sometime if it goes according to plan. I'm going to more closely model the switch code creating the cookie to vB's own login code.
|
regardless of inconveniences, I'll never uninstall that hack...
|
Alrighty then :D
The session expiration problem has been solved, maintenance version 1.1.1. released. For those who have v1.1. already installed there is an attachment with the upgrade instructions, switch_11_to_111.txt. Anyone installing from the new installation instructions (switch_111.txt) will end up with v1.1.1., which has the same fix applied. Both of these files can be found in this thread's first post. No updates to this hack are expected to take place until v1.2., introducing new features (and less overhead). |
Quote:
|
Hiya Bondjetta,
I addressed that in the upgrade notifcation, sent when I hit that button at the top of the thread (well for coders anyway) ;) "Anyone on v1.0 is asked download the installation instructions, switch_111.txt, and perform the steps concerning login.php and global.php (after removing v1.0's addition to these)." But you're right... it's good to address it here as well. The only changes from v1.0 to v1.1 are to global.php and login.php. From v1.1 to v1.1.1 is login.php only. So from what I understand is your global.php is on version v1.0 of the hack still. Please download the new install instructions and swap out global's part of the hack. I'll add a 10_to_111.txt in the morning, it's 3:36am here at the moment. Logic dictates I really should try that thing called sleep sometime soon. :p v1.2 is due probably around the 12th of next month, but ultimately when ready. The installation/upgrade instructions for that one will be a tad tougher, but i'll try to keep them as easy as possible. |
Quote:
updated global and login :D thanks! |
As attached to the first post.
https://vborg.vbsupport.ru/attachmen...chmentid=21405 Now I'm really going off to bed, lol. Having checked out your forums, I'll register there tomorrow. Buddhism is exactly my cup of coffee. :D |
Quote:
|
Very sorry to say that cookie is not holding. Same thing is still happening. After a time, it will not switch and won't allow you to log out unless you go back to home page.
|
My observation: that happens when I log in as admin, stay in there for a while... Maybe that has to do with conflicting permissions?
|
Lionel, is this with v1.1 of the hack, or v1.1.1?
With the latest version I've switched about a good deal to regular accounts, then waited a couple of hours on the admin account and the session is still alive. This is even after closing the browser and navigating back later. As such, does this still happen to anyone else using v1.1.1? This version does exactly what it's supposed to do for me, which considering the changes I introduced today I would expect it to. Programmatically it does almost exactly the same thing when switching as vB would do if you logged out, then logged in straight thereafter (taking out the redirect inbetween, basically). |
Quote:
so far it's sticking for me...it did log me out once, but i decided to clear all my forum cookies and try it over just in case something was "off". |
The upgrade went smooth, and v1.1.1 appears to be working great for me.!
Thanks for your hard work and support Ianomed.. :) |
Excellent, good to hear that, bondjetta and knight. :D
|
Just to note that this adds 2 queries to every page, for every user listed in that particular users account master field. So currently it's not advisable to use this feature for many users..
Will this be optimised in v1.2? |
v1.1 already added the two queries, to make sure no wrong ID was matched.
Indeed, it will be optimised. In v1.2 it will use all of zero extra queries per page for those online users who don't have extra accounts. For those online with a linked account (either as the slave account or master account) it'll use a query for each of the additional accounts to resolve the name, and another for the usergroup formatting/colouring. Possibly I'll be able to optimise that in itself as well. The username can only be changed in two places, I think, ACP and the userCP (if allowed)... so tapping in there to update a cached username for the slave accounts would remove one of those two queries per alternate account. And a setting for the mod to disable the usergroup colouring in the menu would skip that extra query. It would of course also stop colouring the username ;) Possibly this too I could cache *thinks* There is the matter of usergroup promotions which would have to be tapped in ontop of the regular usergroup changes, so for the time being I'll more likely make this group formatting a thing you can switch off in v1.2 onwards. In other words v1.2 will intro two fields to the user table, one for determining if you're the master account to any slaves, if that's empty it'll check if the 'is_slave_of' field is empty as well. If this is the case the script will do nothing more. These fields will be pulled out of the usertable during the init stage, it shouldn't take an extra query :) As for caching the username in this setup... that data can be serialised into the 'is_master_of' and 'is_slave_of' fields as appropriate, so it will store the userid you can switch to as well as it's name. To then further speed it up that colouring can be switched off, people know what account name does what (I should hope). I've added it to the hack for consistency to start with, really. |
this is happening to me with the latest 1.11. But don't go by me as I had my who's online issue in the past.
|
Lionel, I can you try this with a different browser than you normally use? Preferably one you haven't used on your forum yet. Mozilla if you use IE, or vice-versa would do. If this then works, we know it's some cookie debris, and cleaning out the cookies you have for your forum should fix it for you.
If you don't want to go as far as clearing the cookies for your site, you can start with logging out manually via the regular way once, then logging into the master account on your normal browser. If this then doesn't work you're left with only the removal of cookies. This all of course if you do at all allow a cookie to be set? Dumb question probably, but better to rule out. So far of all boards who reported back to me one way or the other on 1.1.1, there's 7 on which the timeout problem is gone, to your 1 board where it's not... This really does lead me to believe it's either a residue of your former hacks somehow, or a browser issue. Since you stated you're happy to run the mod with this 'hitch' you experience I'll try in return to help debug the problem for you best I can. If you know of anything in your setup that would cause this incompatibility I will see if there's something I can do about it, without causing inconvenience to those it works for. |
Thank you. I just installed fireworks. Let us see how it goes. I'll report later on
|
Watch out, you may like Mozilla so much you'll end up a convert as well ;)
It's happened to Caiman recently after he first tried it. Disclaimer: This message is in no way sponsored by Mozilla.org, they just do that mojo that they do so well. |
Quote:
and i have no problem advertising for firefox :D that program is fantastic! :D |
Hey Ianomed: bad news....i'm getting logged out too. :( not sure what the trigger is, i cleared all etc.com cookies (i'm at work now, FF 0.1.1PR) and every...i'd say 10ish minutes i'm getting knocked out. Mind you I run 2-3 tabs minimum for ETC (2 backend, 1-2 front end) depending on what i'm doing. Might that have some adverse affects?
|
me too. In both firefox and IE. This after I deleted all cookies
|
All times are GMT. The time now is 07:35 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|