Code:
- <script>
- var UG;
- for(i = 0; i <= vf_usergroup.length; i++){
- UG += 'group' + vf_usergroup[i]
- if(i != vf_usergroup.length){
- UG += ' ';
- }
- }
- document.write('Logged in as: <a href="/action/view_profile/user/' + vf_username + '" class="' + UG + '">' + vf_displayname + '</a>');
- get('user_table','id').style.display = 'none';
- </script>
The only problem I am having is with group# class, right now the output is a normal link
Code:
- <script>
- var UG = 'group' + vf_usergroup.join(' group');
- document.write('Logged in as: <a href="/action/view_profile/user/' + vf_username + '" class="' + UG + '">' + vf_displayname + '</a>');
- get('user_table','id').style.display = 'none';
- </script>
Try that!![]()
Works
![]()
Glad to know.