News:

Create A Forum Installed

Author Topic: Is it possible to do this?  (Read 329 times)

0 Members and 0 Guests are viewing this topic.

Offline Ba'al

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 1
    • View Profile
Is it possible to do this?
« 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:

Share on Facebook Share on Twitter


Offline CreateAForum

  • Administrator
  • *****
  • Posts: 6968
  • Karma: 321
    • View Profile
Re: Is it possible to do this?
« Reply #1 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.
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

Offline Ba'al

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 1
    • View Profile
Re: Is it possible to do this?
« Reply #2 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?

Offline CreateAForum

  • Administrator
  • *****
  • Posts: 6968
  • Karma: 321
    • View Profile
Re: Is it possible to do this?
« Reply #3 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>
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

Offline Ba'al

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 1
    • View Profile
Re: Is it possible to do this?
« Reply #4 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