vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Logged in as recreate - View Topic
Topic Rating: *****
Printable View
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Logged in as recreate (10th Jan 10 at 7:37pm UTC)
Resolved
Code:
 
  1. <script>
  2. var UG;
  3. for(i = 0; i <= vf_usergroup.length; i++){
  4. UG += 'group' + vf_usergroup[i]
  5. if(i != vf_usergroup.length){
  6. UG += ' ';
  7. }
  8. }
  9. document.write('Logged in as: <a href="/action/view_profile/user/' + vf_username + '" class="' + UG + '">' + vf_displayname + '</a>');
  10. get('user_table','id').style.display = 'none';
  11. </script>
 


The only problem I am having is with group# class, right now the output is a normal link

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Logged in as recreate (10th Jan 10 at 11:10pm UTC)
Code:
 
  1. <script>
  2. var UG = 'group' + vf_usergroup.join(' group');
  3. document.write('Logged in as: <a href="/action/view_profile/user/' + vf_username + '" class="' + UG + '">' + vf_displayname + '</a>');
  4. get('user_table','id').style.display = 'none';
  5. </script>
 


Try that! {Smile}
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Logged in as recreate (10th Jan 10 at 11:25pm UTC)
Works

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Logged in as recreate (11th Jan 10 at 12:06am UTC)
{Smile}
Glad to know.
 Printable View

All times are GMT+0 :: The current time is 4:33am
Page generated in 0.1827 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums