Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Overall Top Ten Posters anywhere
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[SC] Overall Top Ten Posters anywhere
Tweet Topic Started: Feb 2 2009, 01:19 AM (1,204 Views)
jithin Jun 21 2009, 05:22 AM Post #11


Posts:
20
Group:
Member
Member
#3,016
Joined:
May 19, 2009
yes index page
Offline Profile Goto Top
 
slayer766 Jun 21 2009, 08:52 AM Post #12
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
Alright:

Code:
 
<script type="text/javascript">
/*created by Holysavior of ZBCode */
iurl = main_url +"members/?topten"
if(location.href.match(/index/i)){
$("div#main").append("<table id='topposters'><thead><th colspan='2'>Overall Top Ten Posters</th></thead><tr><th>Member</th><th>Total Posts</th></table>");
$.get(iurl,function(x) {
var idoc = document.createElement("DIV");
idoc.innerHTML = x;
$(idoc).find("tbody:contains('Member Name')").children().children().children("a[@class=member]").each( function () {
var iuser = $(this).parent().html();
var ipost = $(this).parent().next().next().next().next().html();
$("table#topposters").append("<tr><td>"+iuser+"</td><td>"+ipost+"</td></tr>");
});
});
}
</script>
Offline Profile Goto Top
 
jithin Jun 21 2009, 10:57 AM Post #13


Posts:
20
Group:
Member
Member
#3,016
Joined:
May 19, 2009
i used you code:

in the bottom is says "Top newest is loading...Please wait..." but nothing comes up
Edited by jithin, Jun 22 2009, 12:33 PM.
Offline Profile Goto Top
 
Ayush S92 Jun 16 2010, 05:44 AM Post #14


Posts:
11
Group:
Member
Member
#3,869
Joined:
Jun 16, 2010
nice code, i tried it on my board, but I would prefer it that it appears only on the portal, is there anyway to do that?
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 7:50 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy