Easy way to post upcoming schedule on league homepage?

However you play online - Java, Vassal, Email, Cyanide etc - talk about it here.
This is also the place for discussing the various tools for managing leagues, teams and so on.

Moderator: TFF Mods

Post Reply
jcopersito
Rookie
Rookie
Posts: 12
Joined: Sat Mar 11, 2017 9:08 pm

Easy way to post upcoming schedule on league homepage?

Post by jcopersito »

I am maintaining a site for our local leagues. www.trubbl.com

I am trying to determine if there is an easy way to create a box on the right column containing upcoming games. Is it possible to control which round is displayed? Or maybe display a certain number of games upcoming sorted by round?

I would want this to display just above the recent games box I currently have (sliding all boxes down).

any advice would be greatly appreciated!

Reason: ''
Tim
Da Tulip Champ II
Posts: 3458
Joined: Wed Oct 16, 2002 4:18 pm
Location: Heidelberg, Germany
Contact:

Re: Easy way to post upcoming schedule on league homepage?

Post by Tim »

Looking at the code in sections.php it looks like the output is prepared already and can be adjusted by changing the settings file. Theoretically it should work by adding the marked part below (without the // lines) to the local settings file, i'll have to test to confirm it though.

(also see http://www.nicholasmr.dk/obblmwiki/inde ... l_settings)

Code: Select all

/*********************
 *   Front page: latest games boxes
 *********************/
$settings['fp_latestgames'] = array(
    # This will display a latest games box for the node (league, division or tournament) with ID = 1
    array(
        'id'     => $get_lid, # Node ID
        'box_ID' => 7,
        // Please note: 'type' may be either one of: 'league', 'division' or 'tournament'
        'type'   => 'league', # This sets the node to be a league. I.e. this will make a latest games box for the league with ID = 1
        'title'  => 'Recent Games (League)', # Table title
        'length' => 5, # Number of entries in table
    ),
//start added section
    array(
        'id'     => $get_lid, # Node ID
        'box_ID' => 8,
        // Please note: 'type' may be either one of: 'league', 'division' or 'tournament'
        'type'   => 'league', # This sets the node to be a league. I.e. this will make a latest games box for the league with ID = 1
        'title'  => 'Upcoming Games (League)', # Table title
        'length' => 5, # Number of entries in table
        'upcoming' => true,
    ),
//end added section
);

Reason: ''
Image
"In NUFFLE we trust!" - Retired Inquisitor of Nuffle.
Father of the Halfling Scribe
Admin of the Kurpfalz Cup
Tim
Da Tulip Champ II
Posts: 3458
Joined: Wed Oct 16, 2002 4:18 pm
Location: Heidelberg, Germany
Contact:

Re: Easy way to post upcoming schedule on league homepage?

Post by Tim »

Tested the above, it works :D

You'll have to edit localsettings\settings_1.php

With the box_ID value you can control the sequence of the boxes. Change 'length' value for more entires.

Reason: ''
Image
"In NUFFLE we trust!" - Retired Inquisitor of Nuffle.
Father of the Halfling Scribe
Admin of the Kurpfalz Cup
Post Reply