Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | |
Ross Administrator
    
![[Avatar]](http://uploads.virtualforums.co.uk/forums/pokemon/vforums-qr1.png) Posts: 3,709 Status: Offline Gender: Male Age: 9 1⁄4 Joined:
Additional Groups: Support Team
  
pmwwwgtalkvForum | Re: VIP image in display name (26th Aug 08 at 8:38am UTC) | | Hi, is there any chance you can post your forums URL so I can set this up for you? | |
|
|
Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | |
Ross Administrator
    
![[Avatar]](http://uploads.virtualforums.co.uk/forums/pokemon/vforums-qr1.png) Posts: 3,709 Status: Offline Gender: Male Age: 9 1⁄4 Joined:
Additional Groups: Support Team
  
pmwwwgtalkvForum | Re: VIP image in display name (30th Aug 08 at 7:59pm UTC) | | Hi,
Is this the kind of thing you were thinking of?
 Code: JavaScript - <script type="text/javascript">
- /* VIP Image Before Display Name */
-
- var vip_image = "http://i266.photobucket.com/albums/ii280/Ryuzaki_Master/vip.png";
- var vips = Array(
- 'admin',
- 'nekosakurachan' // no comma on last list
- );
-
- var a = get('a','tag');
- for(i=0; i<a.length; i++) {
- if(a.item(i).href.match(/view_profile\/user\/(\w+)(\/|$|#)/)){
- var user = RegExp.$1;
- for(v=0; v<vips.length; v++) {
- if(vips[v] == user) {
- a.item(i).innerHTML = "<img src=\""+ vip_image +"\" alt=\"VIP\" />" + a.item(i).innerHTML;
- }
- }
- }
- }
-
- </script>
It would go in the global footer and you'd just enter the user names into the bit which looks like this:
var vips = Array( 'admin', 'nekosakurachan' // no comma on last list ); | |
|
|