vForums Support > Programming & Coding :: Code Requests & Support :: > Image by staff display name
Image by staff display name - Posted By dog199200 (dog199200) on 20th Jan 10 at 5:36am
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.
Re: Image by staff display name - Posted By Michael (wrighty) on 20th Jan 10 at 12:27pm
You just want an image by people's name?
Based on group or username?
Re: Image by staff display name - Posted By dog199200 (dog199200) on 20th Jan 10 at 12:32pm
based by group, it just be group 1 and 2 (Administrator and GM).
Re: Image by staff display name - Posted By Michael (wrighty) on 20th Jan 10 at 11:35pm
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
Re: Image by staff display name - Posted By dog199200 (dog199200) on 21st Jan 10 at 12:33am
lol its ok, i've been busy today with college stuff
got myself 3 Placement tests to do
Re: Image by staff display name - Posted By dog199200 (dog199200) on 25th Jan 10 at 2:28am
umm
?
Re: Image by staff display name - Posted By Michael (wrighty) on 25th Jan 10 at 8:14pm
<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...
Post any problems.
Re: Image by staff display name - Posted By dog199200 (dog199200) on 25th Jan 10 at 8:36pm
ok that works great, ty
now i just got to duplicate the effect in php for the site LOL shouldn't be hard
Re: Image by staff display name - Posted By Michael (wrighty) on 25th Jan 10 at 8:53pm
Ha. No should be ok!