Index
* Graham  
This will place a marker image after the moderators name
Notes :
The script must go below the forum function on the page
To set moderators go to "view users" in the building tool forum block and click "Manage permissions" next to the users name
This script will not work on browsers that do not allow "getElementsByClassName" in javascript
<script type="text/javascript"> 
  mod_image='<img src="http://tutorial.graham.yn.lt/ff16x16/3/bullet_green.png" style="display:inline" alt="M" title="Moderator" />';
  
  smod_image='<img src="http://tutorial.graham.yn.lt/ff16x16/3/bullet_blue.png" style="display:inline" alt="S" title="Super Moderator" />';
  
  is_mod = new Array();smod = new Array(); 
  // smod = 1 = super mod
  is_mod[0] = "--------Avatar hash--------";smod[0] = 1;
  is_mod[1] = "--Or moderators user name--";smod[1] = 0;
  is_mod[2] = "--------Goes here----------";smod[2] = 1;
  is_mod[3] = "----Extend as required-----";smod[3] = 1;

  users=document.getElementById("view").getElementsByClassName("author");
  if (typeof users !== "undefined"){
  for (i = 0; i < users.length; i++){
  for (n = 0; n < is_mod.length; n++){
  user=users[i];
  if(user.innerHTML.indexOf(is_mod[n])>0){
  if(smod[n]){
  user.innerHTML=(user.innerHTML+smod_image);}
  else{
  user.innerHTML=(user.innerHTML+mod_image);}
  }}}}
</script>

Copy code
14-02-28 22:54 (edited 14-03-11 02:44 by Graham ) • (0)
* grahams_second_account * Graham Like this post has a mod marker
14-02-28 23:49 • (2)
* tiaxgame * Graham very good by aichat.wap.sh/forum
14-03-02 23:59 • (0)
* SupAlpuket ok. that are useful..
14-04-22 06:37 • (0)

Online: Guests: 1
* test no4 10
4th test
* testing 4
one two three
* retest 20
ere we go
* test 29
and just a test
Uploaded  Length  Views  Rating ||
* frmtmplt.png 18.2KB
* blog.png 6.65KB
* balls.png 7.17KB