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.


Post Reply  Post Thread 

Group manager in miniprofile

Post Bank
Posting Manager
******

Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Download FileShield free from PermissionResearch!
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.

Signin to Remove this Post

godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #1

Group manager in miniprofile


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 Smile

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.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 Wink


30-09-2007 04:30 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Online/Offline in profile&miniprofile (IPB 1.3) godkillah 0 206 04-11-2007 09:08 PM
Last Post: godkillah
  'I am new' notice in miniprofile godkillah 0 127 30-09-2007 04:32 AM
Last Post: godkillah

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump:

Sign In to Remove Ads

Download 1000's of web templates. Unlimited access!
World's Best Web Hosting
Resources

Recommended Sites:



Visit our Sponsors!

Current time: 07-01-2009, 05:55 AM


Copyright © 2002-2009 MyBB Group
Powered By MyBB