vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > User Table Modification

User Table Modification - Posted By Marc (cr0w) on 26th Mar 08 at 3:26am
This will change the "Logged In as:" portion of the user table to whatever you'd like. {Smile}

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* User Table Modification by Cr0w (2008) */
  4.  
  5. var changeTo = "Welcome, #user#!"; // Message to display
  6.  
  7. // No more edits
  8. if(vf_username != "guest"){
  9.     var lia = get('user_table','id').getElementsByTagName("font")[0];
  10.     lia.innerHTML = changeTo.replace("#user#","<a href='/action/view_profile'>"+vf_displayname+"</a>");
  11. }
  12. //-->
  13. </script>
 


Global footers. {Smile}

Re: User Table Modification - Posted By blanka (blanka) on 27th Mar 08 at 11:24pm
Nice code you made there Marc. Very useful code that i am sure many vforumers will take use of this. {Smile}

Re: User Table Modification - Posted By Marc (cr0w) on 28th Mar 08 at 1:48am
 
Nice code you made there Marc. Very useful code that i am sure many vforumers will take use of this. {Smile}


Thanks blanka. {Smile}