Roland
Joined: May 12, 2004
|
  Posted:
Sep 24, 2014 - 10:38 |
|
Any chance one could convert this script to making bbcode for embedding to group page?
http://www.pvv.ntnu.no/~brill/fumbbl/?page=tp&sub=list
What I want is a nice looking table with top active players in a league:
insert team IDs -> get bbcode list sorted by spp
EDIT: wrong script |
|
|
Garion
Joined: Aug 19, 2009
|
  Posted:
Sep 24, 2014 - 10:40 |
|
|
Roland
Joined: May 12, 2004
|
  Posted:
Sep 24, 2014 - 10:40 |
|
Garion wrote: | there is a BB code converter on that site. |
yeah, but it's only for matches, right?
EDIT: do, misread... yeah I could try that |
|
|
Garion
Joined: Aug 19, 2009
|
  Posted:
Sep 24, 2014 - 10:41 |
|
nope linked it above. just put the html in and convert it to BB code. |
_________________
|
|
Roland
Joined: May 12, 2004
|
  Posted:
Sep 24, 2014 - 10:46 |
|
well, it sort of worked... but it's very bulky with all the code |
|
|
Roland
Joined: May 12, 2004
|
  Posted:
Sep 24, 2014 - 10:55 |
|
and my browser crashed...
there's too much code, I just want the top 10-20 players and not searching by matches, but by team instead |
|
|
Garion
Joined: Aug 19, 2009
|
  Posted:
Sep 24, 2014 - 11:12 |
|
the code will be huge for that sort of thing. put exactly what you want and I will see what I can do. Do you mean top 10 - 20 players of a team or in a group? |
_________________
|
|
Roland
Joined: May 12, 2004
|
  Posted:
Sep 24, 2014 - 11:42 |
|
http://www.pvv.ntnu.no/~brill/fumbbl/saves/liR2ZmMt.SKEg.html
it's the teams:
694567 670341 666912 426425 404386 310026 766334 721799 442006 306092 116188 65811 780566 779920 779758 765161 656434 454118 780791 780753 780721 780318 779106 772090
however, since it is going to be BBcode, I will need to update it now and then, so a good routine would be nice.
Haven't found a good one yet!
and alternatiive would be linking to that page, but it would be nice to have in in the group info tab. |
|
|
Garion
Joined: Aug 19, 2009
|
  Posted:
Sep 24, 2014 - 11:59 |
|
what info do you want with the top 25 players? just the spp or what? |
_________________
|
|
Roland
Joined: May 12, 2004
|
  Posted:
Sep 24, 2014 - 12:08 |
|
Games Cp Td It Cs Mvp Spp
have you founf a simple solution? |
|
|
Garion
Joined: Aug 19, 2009
|
  Posted:
Sep 24, 2014 - 12:27 |
|
no, there is no simple solution. If it was me I would create a table on my group page, then run that script when you need to and just manually put in the bits you want, it wouldnt take long. Or you could do what I did to get the code below. Which was run that script, copy and paste the HTML. delete everything other than the top 20 players, remove all css etc... so just HTML is left. then stick it in the BBcode converter and tidy it up
Code: |
[table][tr][th]Name[/th][th]Team[/th][th]SPP[/th][th]CP[/th][th]TD[/th][th]INT[/th][th]CAS[/th][th]MVP[/th][th]PASS[/th][th]RUSH[/th][th]BLOCK[/th][th]FOUL[/th][th]TD/CP[/th][th]CAS/CP[/th][th]TD/CAS[/th][th]Triple[/th][th]All[/th][th]Games[/th][/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/heblitzer1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=8198537]Ethelion[/url][/td]\
[td][img]https://fumbbl.com/i/336997[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=666912]-Tearful Actors-[/url][/td]
[td]177[/td]\
[td]19[/td]\
[td]27[/td]\
[td]0[/td]\
[td]16[/td]\
[td]9[/td]\
[td]72[/td]\
[td]398[/td]\
[td]397[/td]\
[td]0[/td]\
[td]19[/td]\
[td]16[/td]\
[td]16[/td]\
[td]16[/td]\
[td]0[/td]\
[td]57[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/heblitzer1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=8198536]Leonir[/url][/td]\
[td][img]https://fumbbl.com/i/336997[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=666912]-Tearful Actors-[/url][/td]
[td]169[/td]\
[td]0[/td]\
[td]3[/td]\
[td]0[/td]\
[td]65[/td]\
[td]6[/td]\
[td]0[/td]\
[td]19[/td]\
[td]466[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]3[/td]\
[td]0[/td]\
[td]0[/td]\
[td]56[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/vampire1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=8029475]The Coünt[/url][/td]\
[td][img]https://fumbbl.com/i/337011[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=656434]Blüd Büggers[/url][/td]\
[td]157[/td]\
[td]11[/td]\
[td]22[/td]\
[td]2[/td]\
[td]23[/td]\
[td]6[/td]\
[td]12[/td]\
[td]306[/td]\
[td]435[/td]\
[td]0[/td]\
[td]11[/td]\
[td]11[/td]\
[td]22[/td]\
[td]11[/td]\
[td]2[/td]\
[td]74[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/wethrower1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=1911295]pOOh!?[/url][/td]\
[td][img]https://fumbbl.com/i/337010[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=116188]pOOh TeAm ![/url][/td]\
[td]147[/td]\
[td]38[/td]\
[td]18[/td]\
[td]0[/td]\
[td]5[/td]\
[td]9[/td]\
[td]32[/td]\
[td]247[/td]\
[td]105[/td]\
[td]0[/td]\
[td]18[/td]\
[td]5[/td]\
[td]5[/td]\
[td]5[/td]\
[td]0[/td]\
[td]58[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/uwight1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=4190371]Pelle Prippen[/url][/td]\
[td][img]https://fumbbl.com/i/337008[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=65811]Vingakers Valnader[/url][/td]
[td]135[/td]\
[td]2[/td]\
[td]7[/td]\
[td]0[/td]\
[td]36[/td]\
[td]8[/td]\
[td]1[/td]\
[td]48[/td]\
[td]410[/td]\
[td]0[/td]\
[td]2[/td]\
[td]2[/td]\
[td]7[/td]\
[td]2[/td]\
[td]0[/td]\
[td]59[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/vampire1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=8463133]Coüntess Grevé[/url][/td]\
[td][img]https://fumbbl.com/i/337011[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=656434]Blüd Büggers[/url][/td]\
[td]132[/td]\
[td]23[/td]\
[td]22[/td]\
[td]0[/td]\
[td]9[/td]\
[td]5[/td]\
[td]99[/td]\
[td]590[/td]\
[td]195[/td]\
[td]1[/td]\
[td]22[/td]\
[td]9[/td]\
[td]9[/td]\
[td]9[/td]\
[td]0[/td]\
[td]55[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/vampire1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=8029486]Coünt Grevé[/url][/td]\
[td][img]https://fumbbl.com/i/337011[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=656434]Blüd Büggers[/url][/td]\
[td]128[/td]\
[td]4[/td]\
[td]4[/td]\
[td]0[/td]\
[td]46[/td]\
[td]4[/td]\
[td]0[/td]\
[td]87[/td]\
[td]495[/td]\
[td]1[/td]\
[td]4[/td]\
[td]4[/td]\
[td]4[/td]\
[td]4[/td]\
[td]0[/td]\
[td]73[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/hecatcher1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=8228255]Rinlaen[/url][/td]\
[td][img]https://fumbbl.com/i/336997[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=666912]-Tearful Actors-[/url][/td]\
[td]115[/td]\
[td]12[/td]\
[td]23[/td]\
[td]0[/td]\
[td]7[/td]\
[td]4[/td]\
[td]13[/td]\
[td]428[/td]\
[td]144[/td]\
[td]1[/td]\
[td]12[/td]\
[td]7[/td]\
[td]7[/td]\
[td]7[/td]\
[td]0[/td]\
[td]50[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/rtpestigor1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=9133352]Cyco[/url][/td]\
[td][img]https://fumbbl.com/i/337005[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=721799]Svenskar som Steppar i SL[/url]\[/td]\
[td]112[/td]\
[td]7[/td]\
[td]29[/td]\
[td]0[/td]\
[td]4[/td]\
[td]2[/td]\
[td]32[/td]\
[td]713[/td]\
[td]137[/td]\
[td]0[/td]\
[td]7[/td]\
[td]4[/td]\
[td]4[/td]\
[td]4[/td]\
[td]0[/td]\
[td]39[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/hecatcher1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=8684224]Lethil II[/url][/td]\
[td][img]https://fumbbl.com/i/336997[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=666912]-Tearful Actors-[/url][/td]\
[td]104[/td]\
[td]9[/td]\
[td]15[/td]\
[td]0[/td]\
[td]5[/td]\
[td]8[/td]\
[td]3[/td]\
[td]214[/td]\
[td]123[/td]\
[td]0[/td]\
[td]9[/td]\
[td]5[/td]\
[td]5[/td]\
[td]5[/td]\
[td]0[/td]\
[td]42[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/umummy1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=3593706]Lasse Liten[/url][/td]\
[td][img]https://fumbbl.com/i/337008[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=65811]Vingakers Valnader[/url][/td]\
[td]102[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]41[/td]\
[td]4[/td]\
[td]0[/td]\
[td]11[/td]\
[td]601[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]72[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/helineman1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=8223764]Araian II[/url][/td]\
[td][img]https://fumbbl.com/i/336997[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=666912]-Tearful Actors-[/url][/td]\
[td]99[/td]\
[td]27[/td]\
[td]9[/td]\
[td]0[/td]\
[td]5[/td]\
[td]7[/td]\
[td]44[/td]\
[td]271[/td]\
[td]64[/td]\
[td]1[/td]\
[td]9[/td]\
[td]5[/td]\
[td]5[/td]\
[td]5[/td]\
[td]0[/td]\
[td]48[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/wethrower1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=2563654]KaNGa!?[/url][/td]\
[td][img]https://fumbbl.com/i/337010[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=116188]pOOh TeAm ![/url][/td]\
[td]95[/td]\
[td]61[/td]\
[td]6[/td]\
[td]0[/td]\
[td]3[/td]\
[td]2[/td]\
[td]187[/td]\
[td]295[/td]\
[td]71[/td]\
[td]1[/td]\
[td]6[/td]\
[td]3[/td]\
[td]3[/td]\
[td]3[/td]\
[td]0[/td]\
[td]37[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/snowtroll1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=8644821]Ruskendrull[/url][/td]\
[td][img]https://fumbbl.com/i/337002[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=694567]Örebros Snapphanar[/url][/td]\
[td]94[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]37[/td]\
[td]4[/td]\
[td]0[/td]\
[td]6[/td]\
[td]313[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]43[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/kmthrower1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=5250534]Lilla Torg[/url][/td]\
[td][img]https://fumbbl.com/i/336998[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=426425]Malmo Mayhem[/url][/td]\
[td]93[/td]\
[td]3[/td]\
[td]20[/td]\
[td]0[/td]\
[td]5[/td]\
[td]4[/td]\
[td]9[/td]\
[td]458[/td]\
[td]137[/td]\
[td]3[/td]\
[td]3[/td]\
[td]3[/td]\
[td]5[/td]\
[td]3[/td]\
[td]0[/td]\
[td]46[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/rtrotter1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=3704721]Docent Död[/url][/td]\
[td][img]https://fumbbl.com/i/337005[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=310026]Flogsta Vårdcentral[/url][/td]\
[td]91[/td]\
[td]0[/td]\
[td]2[/td]\
[td]0[/td]\
[td]25[/td]\
[td]7[/td]\
[td]0[/td]\
[td]28[/td]\
[td]592[/td]\
[td]1[/td]\
[td]0[/td]\
[td]0[/td]\
[td]2[/td]\
[td]0[/td]\
[td]0[/td]\
[td]82[/td]\
[/tr]\
[tr]\
[td][img]https://fumbbl.com/FUMBBL/Images/PlayerIcons/tomb_guardian1.gif[/img][url=https://fumbbl.com/FUMBBL.php?page=player&player_id=5080200]Turning Torso[/url][/td]\
[td][img]https://fumbbl.com/i/336998[/img][url=https://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=426425]Malmo Mayhem[/url][/td]\
[td]87[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]36[/td]\
[td]3[/td]\
[td]0[/td]\
[td]0[/td]\
[td]443[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]51[/td]\
[/tr][/table]
|
|
_________________
|
|
Roland
Joined: May 12, 2004
|
  Posted:
Sep 24, 2014 - 12:32 |
|
thx! yeah I could live with the manual updating.
however, it seems to be too many "\", which ones could it be?
https://fumbbl.com/p/notes?op=view&id=879
EDIT: table is at the bottom of the page.
EDIT2: solved it! thx |
|
|
Garion
Joined: Aug 19, 2009
|
  Posted:
Sep 24, 2014 - 12:38 |
|
huh weird - looks fine in my team bio, stick it on the group page and see how it turns out.
If you do need to remove the "\" then it will be there ones here - Code: | td]87[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]36[/td]\
[td]3[/td]\
[td]0[/td]\
[td]0[/td]\
[td]443[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\
[td]0[/td]\ |
so you will need to remove them from after all the td /td bits.
edit: cool what was wrong? |
_________________
|
|
the_Sage
Joined: Jan 13, 2011
|
  Posted:
Sep 24, 2014 - 12:43 |
|
+karma to Garion:
coach of flings and ogres, and helper of bbcoders. =) |
_________________ Content: Twitch / Youtube ; Updates: Facebook / Twitter
(because big banners are compensating) |
|
Roland
Joined: May 12, 2004
|
  Posted:
Sep 24, 2014 - 12:44 |
|
Garion wrote: | edit: cool what was wrong? |
it was spaces after each "\" that needed to be removed, not the "\"'s themselves. |
|
|
|