williamleonard / obblm

Automatically exported from code.google.com/p/obblm
1 stars 0 forks source link

Global Boxes on the Front page #389

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not sure if this is the right place. It's a bug just me playing with things
and getting errors spouted out again. It was handy enough to set the gobal
boxes up, removed the tour 'id' from the leaders array in the local
settings file, but removing it results in these errors:

Notice: Undefined index: id in /home/rerolln1/public_html/ebbl/sections.php
on line 360

See: http://www.albabowl.co.uk/ebbl/

It's looking for the id field and it's not there naturally. Had a look at
that line in the sections.php but again the code is well beyond me so i'm
not sure how to alter it to stop the errors. (I've no background in this).
Working fine, just looks ugly.

If we later change this to league only stats (for example if becoming a Hub
so there are several leagues and global stats are not the best option) can
the 'type' option be uses with 'leader' boxes or only 'latest games'?
_______

Would it be reasonable/too much to add into a global 'type' (as well as the
tour, div and league) option into the local settings.php for all all the
the front page boxes. (So there are tours, divs, leagues and global). For
example, even with a Hub, we likely would want to display the top 5 SPP
stars across all leagues on the front page of each league. Bit of
competition between them/generate some inter league discussion. Not sure
how many others would want such a feature though, may be too specific to us
to be worthwhile.

Thanks with any help again. With this I believe we're pretty much finished
(all teams now input and other issues resolved) with implementation and
about to kick off our first season with OBBLM. :)

Cheers,

A

Original issue reported on code.google.com by arkz...@hotmail.com on 16 Mar 2010 at 1:11

GoogleCodeExporter commented 9 years ago
Don't crack your head on this one, a few have mailed me about it, and I'll add
support for all node types in leaders and stadings boxes for the FP.

The error you experience IS due to you not having altered the code correctly in
sections.php. Just look up the line number from the error, that's where the 'id'
field is referenced.

Original comment by Nimda...@gmail.com on 17 Mar 2010 at 8:18

GoogleCodeExporter commented 9 years ago
Good to know it's coming! The following solved the global issue for now:

$players = Stats::getRaw(T_OBJ_PLAYER, array(T_OBJ_PLAYER => 'Player'),
$box['length'], array('-'.$f), false)

Not sure of that's 'proper' (again i have zero knowledge) but the errors are 
gone and
and nothing seems broken. :)

Original comment by arkz...@hotmail.com on 17 Mar 2010 at 3:06

GoogleCodeExporter commented 9 years ago
Oh and if you'll be changing/looking at this section anyway.... (incessant 
requests,
I know, sorry). Could the Box also show the team the player plays for (in the 
case of
leader boxes) so at the top of the box:

Name Team # Value (or again make team an option).

Problems may come with number of characters I guess thus requiring the team 
name to
trail/hide if at the age and a set width for each column. (which perhaps makes 
the
boxes much more complex and this idea a bit much work?). Thought I'd throw it 
out
anyway. (we're down to minor tweaks being suggested to us over at the league,
everyone is loving the setup!)

Cheers,

A

Original comment by arkz...@hotmail.com on 17 Mar 2010 at 5:08

GoogleCodeExporter commented 9 years ago
r685

Original comment by Nimda...@gmail.com on 21 Mar 2010 at 12:14

GoogleCodeExporter commented 9 years ago
If you want a global standings box you need to set the 'type' = 'league' and 
set 'id'
= null

Original comment by Nimda...@gmail.com on 21 Mar 2010 at 12:22

GoogleCodeExporter commented 9 years ago
r686 has support for leaders boxes having player team names.

Original comment by Nimda...@gmail.com on 21 Mar 2010 at 12:37