Integration with Wordpress MU / BuddyPress

Open / wp-content / themes / default / footer.php ( "default" is the template name change this with your template name, if you are using BuddyPress make changes to the bp-sn-parent template footer )

add to the end just before </body></html> the code:

 <script type="text/javascript" src=""></script>
<script type="text/javascript" >
autoLogin('<? echo wt_get_user_name(); ?>');
function wt_get_user_name()
global $userdata;
return $userdata->user_login;

} ?>