Skysa toolbar advanced login
-
I’m trying to figure out how to implement the advanced login for the skysa toolbar.
You can find out more about it at https://www.skysa.com
This is the script they provide as a guideline to feed login information to the bar. This is allows for seamless login to the chat room and instant messaging feature. This script is placed into the footer to call the user information to the bar.
<script type="text/javascript"> var _SKYAUTH = { loginUrl:'REPLACE WITH FULL LOGIN URL', memberNick:'REPLACE WITH CONTEXT CODE TO GET MEMBER USER NAME', memberId:'REPLACE WITH CONTEXT CODE TO GET MEMBER ID', profileUrl:'REPLACE WITH MEMBER PROFILE URL', photoUrl:'REPLACE WITH MEMBER PHOTO URL' }; </script>
This is what I’ve come up with so far, but I don’t know anything about php or how wordpress handles function calls
<script type="text/javascript"> var _SKYAUTH = { loginUrl:'https://xxxxx.com/wp-login.php', memberNick:'<?php echo wp_get_current_user( $display_name ) ?>', memberId:'<?php echo wp_get_current_user( $user_id ) ?>', profileUrl:'<?php echo wp_get_current_user( $user_url ) ?>', photoUrl:'' }; </script>
I spent time digging through the codex, but I haven’t been able to hack together anything accidentally. I think I’m using the correct functions but I’m pretty sure that my syntax is totally screwed up. I’d love for some help from any one who has experience with login calls and passthroughs. I’ve had working on other, older software (Simple Machines Forum), so I know there is a way, I just don’t know how to wrangle wordpress into working with this.
- The topic ‘Skysa toolbar advanced login’ is closed to new replies.