Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Everything Else LittleBigPlanet 2
#1

How to get total levels amount counter script from LittleBigPlanet.com?

Archive: 5 posts


Hello, sacknation!

I don't know is this right section for this kind of questions, so if I put it in wrong place just replace it. And sorry for my not very good English, I am from Russia and I hope that you understand me

All we know that we can published widgets from lbp/me on your own sites with list of cool levels and so on.

But what about total levels amount? We can see it inside game and on littlebigplanet.com site. I found this code part about it:


<div id="communitystats">
<a href="/en-us/community" class="community-levels">
<span style="display: none;">3539660</span>
</span>
</a>
2011-02-26 11:57:00

Author:
Domik12
Posts: 838


Hello, sacknation!

I don't know is this right section for this kind of questions, so if I put it in wrong place just replace it. And sorry for my not very good English, I am from Russia and I hope that you understand me

All we know that we can published widgets from lbp/me on your own sites with list of cool levels and so on.

But what about total levels amount? We can see it inside game and on littlebigplanet.com site. I found this code part about it:


<div id="communitystats">
<a href="/en-us/community" class="community-levels">
<span style="display: none;">3539660</span>
</span>
</a>
2011-02-26 14:29:00

Author:
fodawim
Posts: 363


Thanks! It was simple, but I didn't understand it! Big thanks from Russia (and bottle of vodka by email, just send me your address )

P.S. If I just remove this "display: none" I will have the same black page. Can someone explain me how I used code above or Ajax/json link to get total levels number on my web page?
2011-02-26 15:02:00

Author:
Domik12
Posts: 838


Bot remember to not flood the server with requests, do it in speed of human browsing one per few minutes should do

PS it soon cross 4mil
2011-02-26 15:44:00

Author:
Shadowriver
Posts: 3991


Bot remember to not flood the server with requests, do it in speed of human browsing one per few minutes should do

YES because LBP.me runs on the same servers as LBP & LBP2, so if you crash it you crash the game!

EDIT: to get that working, just simply include jQuerie on your page.
(in your <head></head> tags add this <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
2011-02-26 16:08:00

Author:
fodawim
Posts: 363


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.