vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: VIP image in display name - 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
VIP image in display name (23rd Aug 08 at 8:04am UTC)
I need a code that will put my VIP image in the beggining of the display name of anyone that is a VIP...

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
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
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? {Smile}

Image
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: VIP image in display name (27th Aug 08 at 4:49am UTC)
Yeah, I'm using the muli color name code temorarily...

http://theanimehideout.vforums.co.uk/

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
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
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
 
  1. <script type="text/javascript">
  2. /* VIP Image Before Display Name */
  3.  
  4. var vip_image = "http://i266.photobucket.com/albums/ii280/Ryuzaki_Master/vip.png";
  5. var vips = Array(
  6.     'admin',
  7.     'nekosakurachan' // no comma on last list
  8. );
  9.  
  10. var a = get('a','tag');
  11. for(i=0; i<a.length; i++) {
  12.     if(a.item(i).href.match(/view_profile\/user\/(\w+)(\/|$|#)/)){
  13.         var user = RegExp.$1;
  14.         for(v=0; v<vips.length; v++) {
  15.             if(vips[v] == user) {
  16.                 a.item(i).innerHTML = "<img src=\""+ vip_image +"\" alt=\"VIP\" />" + a.item(i).innerHTML;
  17.             }
  18.         }
  19.     }
  20. }
  21.  
  22. </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
);

Image
 Printable View

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