PDA

View Full Version : Profile Enhancements - Quick Account Switch


akanevsky
11-27-2006, 10:00 PM
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*===================================*\
|| Quick Account Switch
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jul 03, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*===================================*/

DESCRIPTION

This modification gives users the ability to easily switch between linked accounts. Accounts can be linked by administrators via admincp or by users via usercp as long as these users know the passwords for both accounts. Optionally, you can disallow users to link and unlink accounts from the usercp.

STATISTICS

File Uploads: 1
Products to Install: 1


FEATURES


Adds AdminCP and UserCP controls to link and unlink accounts.
Allows to easily switch between linked accounts from the navbar.
Allows to disable the public UserCP controls and leave just the AdminCP part.


VERSION HISTORY

1.1.0
[+] Compatible with vBulletin 3.5.x - 3.8.x.
[+] Removed all template modifications.
[+] Added option to disable usercp controls for linking accounts.

1.0.1
[+] The modification is now officially compatible with vBulletin 3.6.
[+] The hack has been optimized and now performs much less queries than before.
[+] Users now can link accounts without an administrator as long as they know the passwords for both accounts.

1.0.0
Initial Release (Port of Quick Account Switch by Ianomed (https://vborg.vbsupport.ru/showthread.php?t=70971))

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=217771)

akanevsky
11-28-2006, 09:29 PM
<font size="3">First Post Reserved.</font>

Mecho
11-28-2006, 09:36 PM
Thanks . sounds good .

thedvs
11-28-2006, 09:48 PM
the old 3.5.4 upwards version works on v3.6.4 too

Valter
11-28-2006, 09:53 PM
Thanks for update.

What about option to allow or not users to link accounts without administrator?

Btw you are missing upgrade info.

voteforbird
11-28-2006, 10:03 PM
Very cool, thank you.

akanevsky
11-28-2006, 10:10 PM
the old 3.5.4 upwards version works on v3.6.4 too

You are correct. The 3.5 version, however, was not posted in the 3.6 section.

What about option to allow or not users to link accounts without administrator?

-> Please see the changelog. Thanks.

Sorry, the upgrade instructions are as follows (I assumed you reverted everything since 3.6 upgrade):
Re-upload the files.
Re-upload product xml.
Cancel previous template modifications, do the new ones instead.

projectego
11-28-2006, 11:19 PM
Cool hack. Thank you. :)

Slave
11-29-2006, 02:37 AM
Hi :)

Nice hack .. a couple of things ..

When you enter an incorrect username in the UserCP you get an error message "Could not find phrase 'badlogin_strikes'" .. perhaps use the same '5 goes and your out' type protection as vBMS does on normal account login?

The "Quick Account Switch" drop down menu in the welcome box doesn't seem to work on vBa CMPS pages. Do you know what is needed to get this to work?

Thanks :)

Slave
11-29-2006, 02:58 AM
The "Quick Account Switch" drop down menu in the welcome box doesn't seem to work on vBa CMPS pages. Do you know what is needed to get this to work?

Looks like adding "switchbit" to "Portal Output Global Variables" in vBa's Default settings page did the trick :)

Slave
11-29-2006, 03:10 AM
Oh, and if you have things like vBGallery or vBlogetin installed you need to edit the .xml to put your full URL in front of one instance of login.php in one of the templates before installing the product.

Seems to work on all pages then :)

ragtek
11-29-2006, 05:43 AM
Psionic Vision thx for your great work

your products are great!

HellRazor
11-29-2006, 10:19 AM
Thanks Psionic for the update and new features! :)

Suggestion for a new hack that would be similar (but not the same) as this:

Alias System:

1. Allow members to have an admin-defined number of alias names to post under.
2. Forums would have the option to allow users to post under an alias. Alias forums would have a dropdown of all the member's alias' in the "Post From" box.
3. Each alias would also be able to have its own seperate avatar.

The reason this would be useful is that a lot of roleplaying game forums have a forum set aside for users to post "in character". An alias would allow them to post under the name and with the avatar of their character without needing a seperate user account.

akanevsky
11-29-2006, 06:04 PM
Hi :)

Nice hack .. a couple of things ..

When you enter an incorrect username in the UserCP you get an error message "Could not find phrase 'badlogin_strikes'" .. perhaps use the same '5 goes and your out' type protection as vBMS does on normal account login?

The "Quick Account Switch" drop down menu in the welcome box doesn't seem to work on vBa CMPS pages. Do you know what is needed to get this to work?

Thanks :)

That phrase is present in vBulletin by default. I don't know what you did with it. :)

Psionic Vision thx for your great work

No problem, but please click install.

Roms
11-30-2006, 01:06 AM
This is a great idea. They used something similar on ezboard and I've always missed it here. :) (I'll click install if i end up using it. :) )

Snake
11-30-2006, 07:44 PM
Wow! This is GREAT! :D

Caerydd
12-29-2006, 11:19 AM
So just to check, to use in a CMS that is intergrated withe vbulletin I just need to call the $switchbit variable? None of the others I found in the plugin, live psi_qas ?

And also which line of the plugin to input the full url, as my CMS runs in root, and my vbulletin runs in a /forums subfolder.

This worked great otherwise, but I really need it to work every where the navbar appears!

akanevsky
12-29-2006, 12:20 PM
So just to check, to use in a CMS that is intergrated withe vbulletin I just need to call the $switchbit variable? None of the others I found in the plugin, live psi_qas ?

Yes.

Saskia
12-29-2006, 02:01 PM
Just upgraded from 3.5. Nice work! I especially like the option of allowing users to link their profiles by themselves, good integration.

I placed it all in a custom profile page, because that was of better use for my forums and just changed the location of one of the plugins, the two redirect links to the appropriate profile page and changed the link in the qas_userbit template. Works like a charm!

This was definetly something that a lot of my users highly valued when I installed it. So thank you!

/me clicks install.

The dman
12-29-2006, 02:15 PM
This looks like just what I've been looking for but before I install it I wanted to know if I can set it so only the mods or administrators can use this?

Caerydd
12-30-2006, 07:13 AM
Hmm, well no joy at present getting it to work outside the forum pages, and I had to reset the system/reinstall it after fiddling around with the source code :(

Other than that, works great and my users love it! Now all I need is something built on this to integrate it into our premium features that allows one to have more than one account >>

Also, perhaps some way of viewing all accounts that are mapped at all in this system.

buileminh
01-02-2007, 01:35 PM
Thanks for this nice hack!
Suggestion: Only certain group(s) can use this feature

voteforbird
01-06-2007, 12:04 AM
Does this script lay a cookie entitled "userid"?

akanevsky
01-06-2007, 01:37 PM
Does this script lay a cookie entitled "userid"?

No.

scan-pa
01-07-2007, 12:48 AM
Anthony,

Great mod, but can you please add a feature for only certain groups to be able to access this function?

stomph
01-28-2007, 04:51 PM
Anthony,

Great mod, but can you please add a feature for only certain groups to be able to access this function?

I simply enclosed the whole modification to the USERCP template with:
<if condition="in_array($bbuserinfo['usergroupid'], array(2, 6, 7))">
and:
</if>

Now only users from the groups 2, 6 and 7 will see the hack in UserCP.

Mastar
01-30-2007, 04:23 PM
Anyone got it working on Vb3.64?

akanevsky
01-30-2007, 06:23 PM
Anyone got it working on Vb3.64?

This works on 3.6.4. 3.6.0 is the minimum version required in the 3.6.x series.

Caerydd
01-30-2007, 06:40 PM
I simply enclosed the whole modification to the USERCP template with:
<if condition="in_array($bbuserinfo['usergroupid'], array(2, 6, 7))">
and:
</if>

Now only users from the groups 2, 6 and 7 will see the hack in UserCP.

This only seems to work with 'primary' usergroups, either that or it doesn't work for a more than three numbers in an array?

I have users awarded a usergroup as their secondary usergroups, and want the ability to link available to them then.

akanevsky
01-30-2007, 07:26 PM
This only seems to work with 'primary' usergroups, either that or it doesn't work for a more than three numbers in an array?

I have users awarded a usergroup as their secondary usergroups, and want the ability to link available to them then.

Please use is_member_of($bbuserinfo, 2, 6, 7) in the conditional instead of what he posted.

Mastar
01-30-2007, 08:12 PM
Psionic Vision for some reason it isn't working on my board.

akanevsky
01-30-2007, 09:32 PM
Psionic Vision for some reason it isn't working on my board.

What exactly isn't working? Sorry, I don't know how to read minds yet.

wolfyman
02-07-2007, 03:01 PM
oh good lord this is cool :D

ragtek
02-10-2007, 04:17 PM
is it possible that this hack is defect / not safe?

i have a problem that sometimes (until now 2 times) a user logged in with a other account
i mean:
i log in as ragtek but i'm logged in as another user which is neither linked with me, nor has been on the computer before.

wolfyman
02-10-2007, 04:33 PM
that doesn't sound good.

if the wrong person accidentally logged in as admin.... uh oh.

Anybody got any strong opinions on this?

akanevsky
02-10-2007, 04:46 PM
is it possible that this hack is defect / not safe?

i have a problem that sometimes (until now 2 times) a user logged in with a other account
i mean:
i log in as ragtek but i'm logged in as another user which is neither linked with me, nor has been on the computer before.

That's not something that could be caused by this hack.

ragtek
02-10-2007, 07:43 PM
allright
than i must check the other plugins

Gsmdenis
03-05-2007, 07:39 PM
no bad, supported

BR.,

bluesoul
04-23-2007, 04:38 PM
Looks like adding "switchbit" to "Portal Output Global Variables" in vBa's Default settings page did the trick :)

This gets me about halfway, but when I go to switch users from the vBA portal it takes me to a white page with "No Input File Specified." It also leaves off the /forum/ in the URL (it tries to access http://www.wifom.net/login.php?do=qas_switch&userid=168 instead of http://www.wifom.net/forum/login.php?do=qas_switch&userid=168), but login.php is included in all 3 Replacement lists.

dutchbb
05-02-2007, 01:45 PM
I can link an account but the drop down menu in the navbar doesn't work. And yes I did every step correct.

nymyth
05-03-2007, 11:22 AM
^^yeah i have this problem now too, after i upgraded to 3.6.5

Fixed:

There was a change in the navbar code from the older version:

<if condition="$show['qas_switch']"> -- this is what it is now

<if condition="$show['switch']"> -- this is what it was before....

Works fine now....

dutchbb
05-03-2007, 05:07 PM
I can see the drop down button but it doesn't show a menu when clicked. It's the correct one with the 'qas_switch'

lostgirl815
06-18-2007, 05:26 AM
If you only change the templates on one style, will the ID switch only be available on that style?

akanevsky
06-18-2007, 11:34 AM
If you only change the templates on one style, will the ID switch only be available on that style?

Since you make the template changes to a specific style, the chooser will, of course, only appear on that style. Unless you have nested styles and the children's version is unmodified.

lostgirl815
06-18-2007, 06:53 PM
Great! That's what I was hoping.

akanevsky
06-18-2007, 06:58 PM
Great! That's what I was hoping.

However, if the person knows the URL's from the chooser, those URL's can be used regardless of the style.

lostgirl815
06-18-2007, 07:04 PM
That's fine - they'd still need to be registered to know about it in the first place.

I'll mark this installed, although I haven't installed it yet. (That'll take awhile to figure out.) :)

akanevsky
06-18-2007, 07:05 PM
That's fine - they'd still need to be registered to know about it in the first place.

They won't know about it unless they are linked from the admincp. Or approved via request from usercp. :)

lostgirl815
06-18-2007, 07:08 PM
Perfect! :) This is a great hack, I really missed that feature changing from EZ to vBulletin!

lostgirl815
06-24-2007, 02:01 AM
Any chance someone will take pity on me and tell me what this means?

Example: If you need to copy ./admincp/thehack.php to ./somefolder/thehack.php, it would mean that you need to copy a file, called thehack.php from the admincp subfolder of the package you have downloaded to the somefolder subdirectory of your forum engine.

Where's the admin subfolder? Where's the subdirectory of my forum engine? What's a forum engine?

raiderlax
06-24-2007, 03:57 AM
Does this work on 3.6.7???

ragtek
06-24-2007, 06:00 AM
yes

why you don't try it yourself?

akanevsky
06-24-2007, 02:03 PM
The forum engine is the whole vBulletin software package.
The subdirectory of your forum engine is where you've uploaded vBulletin files when you installed it.
The admin subfolder is the folder called "admin" in the place where you've uploaded vBulletin files.

rayw
06-25-2007, 03:13 AM
This is great mod. Thanks a lot! :D

Please use is_member_of($bbuserinfo, 2, 6, 7) in the conditional instead of what he posted.

I've just set this up for Admins and Mods (usergroups 6 and 7) and it works great.

*Clicks Installed

rayw
06-25-2007, 04:11 AM
Is there a way to add the post count of each user that is in the drop-down menu? I've tried adding $post[posts] but it doesn't display anything?

Thanks :)

lostgirl815
06-25-2007, 07:30 AM
Anybody???? I've uploaded the product, I've changed the templates, but I don't know what this means:

Example: If you need to copy ./admincp/thehack.php to ./somefolder/thehack.php, it would mean that you need to copy a file, called thehack.php from the admincp subfolder of the package you have downloaded to the somefolder subdirectory of your forum engine.

Where am I supposed to be where I would see this folder? In cPanel? In the admin panel? I don't see it! And nobody who says they'll install Mods for a price is answering their PMs.

rayw
06-25-2007, 08:00 AM
Anybody???? I've uploaded the product, I've changed the templates, but I don't know what this means:

Where am I supposed to be where I would see this folder? In cPanel? In the admin panel? I don't see it! And nobody who says they'll install Mods for a price is answering their PMs.

I had no idea what it meant either, so I skipped that part. Everything appears to be working perfectly fine though.

lostgirl815
06-25-2007, 08:03 AM
Thank you for your reply! Could you tell me, where are you switching IDs? I see the form to link them, I don't see anything for switching them. (I'm perfectly happy to leave it out if it worked for you.)

--------------------never mind, figured that out ----------------

You're right - it works without that file upload, whatever it was. Thank you again!

Trana
06-26-2007, 02:10 AM
I installed this and after a day or so all of the users who had a linked account started getting major errors in IE which caused the browser to close. Anyone else experience something like this?

Thanks.

ragtek
06-26-2007, 09:57 AM
i have no problems with this hack

lostgirl815
06-26-2007, 06:12 PM
So far so good here, although I never did upload that other file.

nymyth
06-26-2007, 06:19 PM
any luck with this and VBAdvanced?

kjhkjh
07-05-2007, 03:01 AM
I'm still having a problem with one of the template changes:

Can't find
<!-- / PAGENAV POPUP -->

in navbar


I've searched and can't find it there, i guess another mod may have changed it, like the mood mod, or number of new threads... does anyone have advice on this?

Plus the info on uploading that file as the other memmebrs have mentioned above was sketchy... can anyone clear this up?

Tanks

nymyth
07-05-2007, 12:37 PM
I'm still having a problem with one of the template changes:

Can't find


in navbar


I've searched and can't find it there, i guess another mod may have changed it, like the mood mod, or number of new threads... does anyone have advice on this?

Plus the info on uploading that file as the other memmebrs have mentioned above was sketchy... can anyone clear this up?

Tanks
Look for a block of code similar to this - It should be near the bottom of the navbar template

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

Put the code after it.

nymyth
07-05-2007, 12:39 PM
So far so good here, although I never did upload that other file.
There isnt another file for that. I think he uses his html install page for all his mods, and some of them require the addition of a custom php page to be uploaded to your server.....for this hack you can just ignore it

Peace

kjhkjh
07-05-2007, 12:41 PM
thanks myth...

turned out my navbar template didnt have that block of code, but i saw that it did originally exist in the default template, so I pasted it back in... fingers crossed it doesn't affect my other mods.

Thanks again

rainyleaves
09-13-2007, 05:36 PM
Awesome mod.

But I think this mod have little bug.
I get database error when I didn't input username and password and click 'Link Account' button.

Database Error

Please try the following:

* Load the page again by clicking the Refresh button in your web browser.
* Open the ****.net home page, then try to open another page.
* Click the Back button to try another link.
I think this mod have not standard error page like this.
'You didn't input username or password!'

Please... Anybody who can fix?
Thanks.

bazzup
09-13-2007, 07:12 PM
Excellent mod don't know why we have'nt installed this before, as me and my better half are both admin on our forums

rnmcd
09-19-2007, 01:59 AM
Oh, and if you have things like vBGallery or vBlogetin installed you need to edit the .xml to put your full URL in front of one instance of login.php in one of the templates before installing the product.

Seems to work on all pages then :)

Can someone explain what Slave is talking about. I have vBGallery installed and am considering installing vBlog.

Thanks.

rainyleaves
10-08-2007, 05:56 PM
Looks like adding "switchbit" to "Portal Output Global Variables" in vBa's Default settings page did the trick :)
Thanks!!

HellBoy
11-12-2007, 10:22 AM
Great, this is just what I was looking for! :)

rayw
03-06-2008, 09:21 AM
Anyone have this running on 3.7 by any chance???

rayw
03-06-2008, 07:47 PM
Ok, it does work with 3.7 but the code in the navbar is a little different. Apart from that, the product installs perfectly as far as I can tell.

plothook
04-26-2008, 02:31 AM
Anyone else having problems with this and the new security tokens in 3.6.10?

The problem shows up when you make new linkages, but the actual switching still works perfectly.

plothook
04-26-2008, 05:34 AM
found the problem
edit template USERCP and find where you added (when you added this product):
<input type="hidden" name="s" value="$session[sessionhash]" />
and after it, add
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />


-----------------------------------------------------------------------
EDIT: The above is all you need to fix the issue, but what I ended up doing was take all the code out of USERCP and made a new template called qas_usercp

and then added a plugin for this product at usercp_complete with the following code
eval('$template_hook["usercp_main_pos6"] = "' . fetch_template('qas_usercp') . '";');

and changed the code in the cache_templates plugin for this product to:
$globaltemplates[] = 'qas_switchbit';
if (THIS_SCRIPT == 'usercp') {
$globaltemplates[] = 'qas_usercp';
$globaltemplates[] = 'qas_userbit';
}

And then I reverted template USERCP - reverted templates are good. Once less template to review at the next upgrade!

VPI97
04-26-2008, 04:35 PM
plothook - Could you be a little more specific with what you did to fix the issue? I'm having a little trouble following along.

Thanks

Edit - Nevermind, I figured it out

lostgirl815
05-25-2008, 11:11 PM
Has anybody tried this on 3.7 yet?

Veer
06-04-2008, 10:41 PM
any update?

Veer
06-14-2008, 08:54 AM
Doesn't work with vb 3.7.0

Getting error:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

Any help?

lostgirl815
06-15-2008, 06:19 AM
Thanks for posting that. Rats! I used that one for a lot of games.

Project Boredom
06-22-2008, 07:51 PM
This (http://www.vbulletin.com/forum/showthread.php?t=268468)thread shows you how to validate your security information, for people who were having trouble with the hack.

So you can change all the templates at once, I went to styles and templates>search in templates>find and replace in templates, had it find the first line of text in the url above and replace it with that line and the add on line. Make sure you click to permanently replace rather than test replace otherwise your changes won't stick.

Good luck and happy hack use!

BTW, this works on a 3.7 board guys. :D

lostgirl815
07-06-2008, 01:12 PM
Thanks for that!

Project Boredom
07-06-2008, 11:59 PM
NP. I figure if I can figure it out, I might as well share with everyone else. :D

SAReefer
10-06-2008, 01:08 PM
this hack is not working on my 3.7.3 anybody know why?

FireFish
10-27-2008, 05:40 AM
This (http://www.vbulletin.com/forum/showthread.php?t=268468)thread shows you how to validate your security information, for people who were having trouble with the hack.

So you can change all the templates at once, I went to styles and templates>search in templates>find and replace in templates, had it find the first line of text in the url above and replace it with that line and the add on line. Make sure you click to permanently replace rather than test replace otherwise your changes won't stick.

Good luck and happy hack use!

BTW, this works on a 3.7 board guys. :D
Yep, that did it for me.
It's working fine.

Thanks.

lostgirl815
11-10-2008, 09:59 PM
Anybody have this working on 3.7.3?

RedeemedWarrior
02-05-2009, 01:20 PM
working great on 3.8.1 once you fix the templates

Elenna
02-09-2009, 10:46 PM
Brilliant!! Thank you, this is EXACTLY what my users were looking for.

lostgirl815
06-24-2009, 12:05 AM
Has anyone figured out a way to put the switch thingy on the post form? Because that would be really really handy.

Elenna
06-27-2009, 04:45 AM
Can you explain where you'd like to see that option? I'm not sure where you mean.

lostgirl815
06-27-2009, 05:09 AM
When you're composing a post you know that area in the upper right that says "you are logged in as ___ " ? That's where I mean.

akanevsky
07-03-2009, 12:49 PM
Why couldn't you just switch up top and then use the post form?

lostgirl815
07-03-2009, 05:36 PM
There's no reason why not, I was just wondering if it was possible. (I wasn't criticizing, just wondering.) It's a great, handy Mod. :)

akanevsky
07-03-2009, 07:22 PM
There's no reason why not, I was just wondering if it was possible. (I wasn't criticizing, just wondering.) It's a great, handy Mod. :)

I understand you are not criticizing (and it would be perfectly fine even if you did), I was just curious as to why you would need the switch to be in the form if it's already on every page.

It is certainly possible and too difficult, maybe I will implement it later. :)

P.S. This hack was just updated to eliminate all template edits and make it compatible with 3.7.x+.

lostgirl815
07-03-2009, 07:38 PM
Well don't laugh, but suppose you were having the board version of a costume party, and you had more than one 'costume,' it would be handy to be able to switch as you were replying to posts. It's no big deal, I just wondered. In any case thanks for this Mod, which has been invaluable for games. :)

akanevsky
07-03-2009, 07:47 PM
Well don't laugh, but suppose you were having the board version of a costume party, and you had more than one 'costume,' it would be handy to be able to switch as you were replying to posts. It's no big deal, I just wondered. In any case thanks for this Mod, which has been invaluable for games. :)

Using a board for costume party sound interesting.

lostgirl815
07-03-2009, 10:27 PM
Oh it can be a lot of fun! And it's a handy thing to do for special events/holidays. Especially Halloween. Everyone wears a 'costume' and at the end of the night people guess who they really are before they 'reveal' themselves. Awards for best costume, best character and so on. It's one of my staples. :)

Elenna
07-05-2009, 04:39 PM
Thanks very much for the update!

Lostgirl - that sounds like fun! :) Thanks for the idea. ;) May just have to try that.

Joseph Witchard
07-05-2009, 10:51 PM
I understand you are not criticizing (and it would be perfectly fine even if you did), I was just curious as to why you would need the switch to be in the form if it's already on every page.

It is certainly possible and too difficult, maybe I will implement it later. :)

P.S. This hack was just updated to eliminate all template edits and make it compatible with 3.7.x+.

So can this be used for 3.8.3 now?

akanevsky
07-06-2009, 10:22 AM
So can this be used for 3.8.3 now?

Yep.

Joseph Witchard
07-06-2009, 07:36 PM
This is exactly what I've been needing. Thanks:) Keep up the great work!

HellBoy
01-10-2010, 03:05 PM
Are there any plans to make a vBulletin 4.0 compatible version of this mod?

iNate19
11-18-2014, 11:56 PM
I need this for vB 4.2.2

Max Taxable
11-18-2014, 11:57 PM
I need this for vB 4.2.2https://vborg.vbsupport.ru/showthread.php?t=237286

Next to last post in the thread has this.