Create A Forum - Support Forums
Support => Style Support => Topic started by: Ba'al on November 07, 2018, 11:49:33 am
-
Is it possible to replace the text in the users info panel in a thread ie: Administrator,Global Moderator and Moderator with images
Examples:
-
Not easily would require a javascript code to do so. You can have a custom rank icons though.
-
Not easily would require a javascript code to do so. You can have a custom rank icons though.
I saw that in the star file, can more be added via upload?
-
Somewhat you would still have to use an image swap code added to your footer example
<script type='text/javascript'>
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "https://cdn.smfboards.com/ranks/dl_ranks2/rank_0.gif" , "https://yourrankfilefile.com/image.gif" ]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
-
Somewhat you would still have to use an image swap code added to your footer example
<script type='text/javascript'>
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "https://cdn.smfboards.com/ranks/dl_ranks2/rank_0.gif" , "https://yourrankfilefile.com/image.gif" ]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
I saw the ones in the star file so i grabbed a few of those for now but i will keep trying to figure this out lol