Register    Login    Forum    FAQ

Board index » Community Discussion » Digital Resources




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Easy way to post upcoming schedule on league homepage?
 Post Posted: Fri Mar 17, 2017 3:57 pm 
Rookie
Rookie

Joined: Sat Mar 11, 2017 10:08 pm
Posts: 7
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!


Top 
 Profile  
 
 Post subject: Re: Easy way to post upcoming schedule on league homepage?
 Post Posted: Mon Mar 20, 2017 4:21 pm 
Da Tulip Champ II
User avatar

Joined: Wed Oct 16, 2002 5:18 pm
Posts: 3427
Location: Heidelberg, Germany
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:
/*********************
 *   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
);

_________________
Image
"In NUFFLE we trust!" - Retired Inquisitor of Nuffle.
Father of the Halfling Scribe
Admin of the Kurpfalz Cup


Top 
 Profile  
 
 Post subject: Re: Easy way to post upcoming schedule on league homepage?
 Post Posted: Mon Mar 20, 2017 10:34 pm 
Da Tulip Champ II
User avatar

Joined: Wed Oct 16, 2002 5:18 pm
Posts: 3427
Location: Heidelberg, Germany
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.

_________________
Image
"In NUFFLE we trust!" - Retired Inquisitor of Nuffle.
Father of the Halfling Scribe
Admin of the Kurpfalz Cup


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 3 posts ] 

Board index » Community Discussion » Digital Resources


Who is online

Users browsing this forum: No registered users

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: