Written for IPB1.3 / invisionfree
This script might be usefully for the forums who have managers for staff groups, it adds a Group Manager: to the miniprofile.
its simple but i like it and i did learn some new things when writing this
PREVIEW:
http://z7.invisionfree.com/ZteHmanageRtehZ...php?showtopic=1
CREDITS: Godkillah for writing, Beta for inspirating me, without ya i wouldnt have got the idea to write this!
COPYRIGHT:
Phantom-Designs
TESTS: tested in Opera and IE, soz my FF is broken
Quote:
<script by="Godkillah" from="phantom-designs.net">
/* Group Managed By: script
By godkillah, copyright must remain active!
copyright phantom-designs.net */
if(location.href.match(/showtopic=/i)){a=document.getElementsByTagName("span");for(i= 0;i<a.length;i++){if(a[i].className=="postdetails" && a[i].innerHTML.match(/Posts: (\d+)/)){managedby=a[i].parentNode.parentNode.parentNode.getElementsByTag Name("a")[0].firstChild.getAttribute("manager");if(managedby!= null){a[i].innerHTML=a[i].innerHTML.replace("Posts:","Group manager: "+managedby+"<br>Posts:");}}}}</script>
|
INSTRUCTIONS: no editing on the code required, to add a manager to a group you must go to the group prefix and suffix, if you've got any tags for colors there like <span> or <font> than add
manager="NAME OF MANAGER" in it, if you havent got these tags than add some tags.
Quote:
|
Originally Posted by example tags (PREFIX) <span manager="Godkillah"> |
Quote:
|
Originally Posted by example tags (SUFFIX) </span> |
if there is no Manager at a group this will be left away from the miniprofile
