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,199 Views)
HolySavior Feb 2 2009, 01:19 AM Post #1
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
Top 10 posters anywhere.

Red = The ID of the box you want to put it.

Quote:
 
<script type="text/javascript">
/*created by Holysavior of ZBCode */
iurl = main_url +"members/?topten"
$("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>
Edited by Reid, Jun 15 2009, 08:18 PM.
Offline Profile Goto Top
 
PIWYRCOM Feb 2 2009, 10:20 AM Post #2
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
Dan it reads Posts Today under the header but gives total posts.
(we edited it to read Total Posts.)

Can it be made to give Posts Today ?

never mind just saw it
Edited by PIWYRCOM, Feb 2 2009, 10:32 AM.
» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
HolySavior Feb 2 2009, 02:36 PM Post #3
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
fixed thanks.
Offline Profile Goto Top
 
DannyBoy Mar 28 2009, 01:08 PM Post #4


Posts:
3
Group:
Member
Member
#2,687
Joined:
Mar 28, 2009
Coding language
Everything
Where does this script go exactly ? In a thread or in a page in the Website creater thingy in admin cp?
Offline Profile Goto Top
 
Vitality Mar 28 2009, 01:12 PM Post #5
Member Avatar
Tabula Rasa

Posts:
784
Group:
Former Staff
Member
#320
Joined:
Jul 26, 2008
In the Board Template in your Admin CP. I'm guessing it works anywhere, but Below the Board is the norm.
Offline Profile Goto Top
 
DannyBoy Mar 28 2009, 01:24 PM Post #6


Posts:
3
Group:
Member
Member
#2,687
Joined:
Mar 28, 2009
Coding language
Everything
Also another question, what do i put in the div#main bit that's colord red.

It says the id of the box you want to put it in but i'm still confused, what box. Where do i get the box from :D

Damn, I sound like a n00b -_-
Offline Profile Goto Top
 
Flavius Apr 27 2009, 02:58 AM Post #7
Member Avatar


Posts:
283
Group:
Member
Member
#360
Joined:
Jul 29, 2008
Coding language
HTML/CSS
Does this make a list because I though maybe if it was possible to add it as a list in the board stats by putting it in a box after adding the "add a box to board stats code".
Posted Image
Offline Profile Goto Top
 
Reid Apr 27 2009, 07:39 AM Post #8
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
The original code sticks it at the bottom of the page.

Not exactly sure what you're asking. It creates a table at the end of the page that gives the overall top ten posters, on every page.
The Resource Board
Offline Profile Goto Top
 
jithin Jun 20 2009, 10:21 AM Post #9


Posts:
20
Group:
Member
Member
#3,016
Joined:
May 19, 2009
hi

im currently using over top 10 posters

but this apears on everypage

is it possible that i could make it appear only on the home page?
Offline Profile Goto Top
 
slayer766 Jun 20 2009, 01:11 PM Post #10
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
Which page would you want it displayed on? By "home" page do you mean the index page?
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

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