ThemeBoy
Forum Replies Created
-
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] CalendarHi Matt,
I’d be happy to help you with this. Could you tell me a bit more about what you’d like to achieve?
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Couple of questions pleaseHi Kev,
For the highlighting you can use this CSS:
.sp-league-table tbody tr:first-child td, .sp-league-table tbody tr:nth-child(2) td { background: #9f9; } .sp-league-table tbody tr:last-child td, .sp-league-table tbody tr:nth-last-child(2) td { background: #f99; }The dashed lines aren’t making much of a difference because there is already a solid border added by your theme.
I’ll look into the player links and will keep you posted.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Fatal error…@jakours2 Send us a message via https://sportspresspro.com/support/ and I’d be happy to look at it ๐
@teh1aeq Thanks for your feedback. Looks like positions were being sorted by slug only in player lists. To enable the same sorting in player galleries, please see this commit:
https://github.com/ThemeBoy/SportsPress/commit/5b169e42a9299a2f7fa2f5d99f2ddd71f9e6b0be
You can make this change by editing templates/player-gallery.php.
The next update will contain this fix as well ๐@alle There are some requirements for statistics to show up:
1. The event date should be in the past.
2. An outcome should be selected for each team.
3. The season and league should be the same as that of the player list.Let me know if you still experience issues.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Formulas not work@teecrisp Could you paste the output of SportsPress > System Status below? (please use the “code” button)
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Tables and Pools@raymond9 Thank you for your question, and welcome to WordPress!
I would recommend using “Leagues” to organize the divisions and pools within each festival. You could create 4 “parent” leagues which would encompass the 2 pools within each division.
From SportsPress > Leagues, add a league called “Pro”. Then, create another league called “Pro Pool 1” but this time, select “Pro” as the parent. Create “Pro Pool 2” as well, also using “Pro” as the parent.
The structure will now look like this:
Pro โ Pro Pool 1 โย Pro Pool 2Repeat for the 3 other leagues. Your league structure will now look like:
Club โ Club Pool 1 โย Club Pool 2 Pro โ Pro Pool 1 โย Pro Pool 2 Semi Pro โ Semi Pro Pool 1 โย Semi Pro Pool 2 Social โ Social Pool 1 โย Social Pool 2Now that the leagues are set up, let’s also add a Season for this year’s festival. Go to SportsPress > Seasons and create a new season called “2014” for example.
Let’s also create the teams. Go to Teams > Add New and add all of the teams in the festival. Be sure to select the current season, the division, and the pool. For instance, “Pro” and “Pro Pool 1”. This will make the team selectable when adding matches, and later, league tables.
We’re ready to add events. When creating events, be sure to select the season (2014) and both the parent league (division) and the pool. For instance, “Pro” and “Pro Pool 1”. That way, the statistics from that event will count toward the “Pro” division while also being able to filter by “Pro Pool 1”.
You’ll probably want to create separate pages and/or widgets to show the team standings within each pool in each division. To do this, go to Teams > League Tables and create a new league table. Select “Pro Pool 1” as the League and “2014” as the season, then select all of the teams in that pool. The values will automatically populate each time an event result is published.
The league table you just created can also be displayed in a widget. Go to Appearance > Widgets and drag the “SportsPress League Table” widget to your main sidebar area. Then, select the league table you just created, and optionally turn on/off any of the columns to create a shorthand table.
You can also create a page displaying league tables, player lists, and any other content. Copy the “Shortcode” you see when editing the league table and paste it into a new page (Pages > Add New). It’s that simple ๐
Feel free to let me know if you get stuck and I’d be happy to help.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Couple of questions pleaseHi Kev,
This code will add a dotted line below the first 2 rows and above the last 2 rows:
.sp-league-table tbody tr:nth-child(2) td { border-bottom: 1px dashed #000; } .sp-league-table tbody tr:nth-last-child(2) td { border-top: 1px dashed #000; }If you need to change where the lines appear, you can edit the number in the parentheses after nth-child and nth-last-child.
For centering text in the event list, use this code:
`
.sp-event-list th, .sp-event-list td {
text-align: center;
}All frontend text can be modified via SportsPress > Settings > Text tab, including “Article” and “Recap”.
There is a setting in SportsPress > Settings > Players tab called “Link players” which can be unticked to disable linking to player pages from player lists, which are also used on team pages.
Hope this helps!
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Fatal error…@jakours2 Thanks for the info. I’ll look into any compatibility issues with this plugin.
@teh1aeq Thanks for your feedback. I’ll definitely look into how Joomleague implements background colors in table rows. I have a feeling we might be able to achieve this using CSS.
Regarding the dashed line code, it looks like the nth-child selector is applying to the 8th row, not the 12th. Also, unless you only want to apply the style to a specific page, it’s ok to remove the .page-id-142 to simplify it. For example:
.sp-league-table tbody tr:nth-child(1) td { border-bottom: 1px dashed #000; /* below 1st */ } .sp-league-table tbody tr:nth-child(12) td { border-top: 1px dashed #000; /* above 12th */ }Player positions will be sorted alphabetically by slug, so if you change the slugs of each position (by adding a number before, for instance), they will be reordered.
Hope this helps!
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Promotion and relegation borders@ross The current version requires users to login to the WP admin to make edits. We’ll definitely consider adding front-end editing in a future update.
The next release will be version 1.2. One of the major improvements in this version is the addition of a shortcodes menu in page content editors.
We’ll also be releasing a mini-site with extensive documentation at the same time ๐
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Fatal error…@jakours2 Hmm… I haven’t seen this warning before. Are any other plugins installed?
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Sort squad of players@ttemplate have you updated the plugin to version 1.1.8?
@andrewlynch Looks ok, but I’d like to compare the values with the other variables. Could you paste the entire output, or even just the Configuration section?
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Total number of sum@opopop Player lists will only display each player separately. We’ll look into adding a “Total” row option in a future update.