tiaxgame
Graham very good by aichat.wap.sh/forum
grahams_second_account
Graham Like this post has a mod marker
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