vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Image by staff display name - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
Image by staff display name (20th Jan 10 at 5:36am UTC)
Resolved
here is a interesting code request, would it be possible to get a code that will add an image by the name of staff? I not only want to use different color of name per user groups that i chose, but i want to be able to add a small little image, no bigger by 10px by 10px by the staffs name with the [sup][/sup] tags. If the code can't be done its honestly no big deal, but i'd like to use the name image on the forum for the staff as I am in the game.

Also the [noubbc][/noubbc isn't a needed effect, its completely option if it can't be done.
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Image by staff display name (20th Jan 10 at 12:27pm UTC)
You just want an image by people's name?
Based on group or username?
dog199200
Guest
Re: Image by staff display name (20th Jan 10 at 12:32pm UTC)
based by group, it just be group 1 and 2 (Administrator and GM).
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Image by staff display name (20th Jan 10 at 11:35pm UTC)
I'm not ignoring this, just off to bed shortly, had a rough day after a rough night. So will get to it tomorrow during my free {Smile}
dog199200
Guest
Re: Image by staff display name (21st Jan 10 at 12:33am UTC)
lol its ok, i've been busy today with college stuff {Unsure} got myself 3 Placement tests to do {Unsure}
dog199200
Guest
Re: Image by staff display name (25th Jan 10 at 2:28am UTC)
umm{Confused} ?
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Image by staff display name (25th Jan 10 at 8:14pm UTC)
<script type = 'text/javascript'>
var l = ["", "http://av.wservice.co.uk/av.png", ""];
for(i = 0; i < l.length; i++)
     for(x = get('a', 'tag'), n = 0; n < x.length; n++)
          if(x[n].className.match(new RegExp("group" + i)) && l[i] != '')
               x[n].innerHTML = "<img src = '" + l[i] + "'>" + x[n].innerHTML;
</script>


Global Footer - Edit the red part, it's in order of group, with the first URL being the group1 one. The first one is group0, which is members. If it's blank then it's not going to add an image etc... {Smile}

Post any problems. {Smile}
dog199200
Guest
Re: Image by staff display name (25th Jan 10 at 8:36pm UTC)
{Tongue Out} ok that works great, ty {Smile} {Tongue Out} now i just got to duplicate the effect in php for the site LOL shouldn't be hard
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Image by staff display name (25th Jan 10 at 8:53pm UTC)
Ha. No should be ok! {Smile}
 Printable View

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