Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.
Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.
Written for IPB1.3, tester on a invisionfree forum
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
<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.getElementsByTagName("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.
example tags (PREFIX) Wrote:
<span manager="Godkillah">
example tags (SUFFIX) Wrote:
</span>
if there is no Manager at a group this will be left away from the miniprofile