* 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-03-01 07:54 (edited 14-03-11 11:44 by Graham ) • (0)
* grahams_second_account * Graham Like this post has a mod marker
14-03-01 08:49 • (2)
* tiaxgame * Graham very good by aichat.wap.sh/forum
14-03-03 08:59 • (0)
* SupAlpuket ok. that are useful..
14-04-22 15:37 • (0)

Online: Guests: 1
Uploaded  Length  Views  Rating ||
Broken down lorry blocks A35
.description.
2024-04-26T07:49:06Z