Create A Forum - Support Forums

Support => Style Support => Topic started by: Ba'al on November 07, 2018, 11:49:33 am

Title: Is it possible to do this?
Post 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:

Title: Re: Is it possible to do this?
Post by: CreateAForum on November 07, 2018, 01:07:10 pm
Not easily would require a javascript code to do so. You can have a custom rank icons though.
Title: Re: Is it possible to do this?
Post by: Ba'al on November 07, 2018, 01:15:03 pm
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?
Title: Re: Is it possible to do this?
Post by: CreateAForum on November 07, 2018, 01:20:55 pm
Somewhat you would still have to use an image swap code added to your footer example
Code: [Select]
<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>
Title: Re: Is it possible to do this?
Post by: Ba'al on November 07, 2018, 01:26:38 pm
Somewhat you would still have to use an image swap code added to your footer example
Code: [Select]
<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